Home
last modified time | relevance | path

Searched refs:mockCryptIface (Results 1 – 2 of 2) sorted by relevance

/openbmc/estoraged/src/test/erase/
H A Dcrypto_test.cpp52 std::unique_ptr<MockCryptsetupInterface> mockCryptIface = in TEST_F() local
55 EXPECT_CALL(*mockCryptIface, cryptLoad(_, StrEq(CRYPT_LUKS2), nullptr)) in TEST_F()
58 EXPECT_CALL(*mockCryptIface, cryptKeySlotMax(StrEq(CRYPT_LUKS2))) in TEST_F()
61 EXPECT_CALL(*mockCryptIface, cryptKeySlotStatus(_, 0)) in TEST_F()
64 EXPECT_CALL(*mockCryptIface, cryptKeyslotDestroy(_, 0)).Times(1); in TEST_F()
67 CryptErase(testFileName, std::move(mockCryptIface)); in TEST_F()
73 std::unique_ptr<MockCryptsetupInterface> mockCryptIface = in TEST_F() local
76 EXPECT_CALL(*mockCryptIface, cryptLoad(_, StrEq(CRYPT_LUKS2), nullptr)) in TEST_F()
79 EXPECT_CALL(*mockCryptIface, cryptKeySlotMax(StrEq(CRYPT_LUKS2))) in TEST_F()
83 CryptErase(testFileName, std::move(mockCryptIface)); in TEST_F()
[all …]
/openbmc/estoraged/src/test/
H A Destoraged_test.cpp54 MockCryptsetupInterface* mockCryptIface{}; member in estoraged_test::EStoragedTest
79 mockCryptIface = cryptIface.get(); in SetUp()
132 EXPECT_CALL(*mockCryptIface, cryptFormat(_, _, _, _, _, _, _, _)).Times(1); in TEST_F()
134 EXPECT_CALL(*mockCryptIface, cryptKeyslotAddByVolumeKey(_, _, _, _, _, _)) in TEST_F()
137 EXPECT_CALL(*mockCryptIface, cryptLoad(_, _, _)).Times(1); in TEST_F()
139 EXPECT_CALL(*mockCryptIface, cryptActivateByPassphrase(_, _, _, _, _, _)) in TEST_F()
162 EXPECT_CALL(*mockCryptIface, cryptDeactivate(_, _)) in TEST_F()
179 EXPECT_CALL(*mockCryptIface, cryptFormat(_, _, _, _, _, _, _, _)).Times(1); in TEST_F()
181 EXPECT_CALL(*mockCryptIface, cryptKeyslotAddByVolumeKey(_, _, _, _, _, _)) in TEST_F()
184 EXPECT_CALL(*mockCryptIface, cryptLoad(_, _, _)).Times(1); in TEST_F()
[all …]