Home
last modified time | relevance | path

Searched refs:mock_tpm_ (Results 1 – 6 of 6) sorted by relevance

/system/tpm/trunks/
Dsession_manager_test.cc48 factory_.set_tpm(&mock_tpm_); in SetUp()
76 NiceMock<MockTpm> mock_tpm_; member in trunks::SessionManagerTest
84 EXPECT_CALL(mock_tpm_, FlushContextSync(handle, nullptr)) in TEST_F()
92 EXPECT_CALL(mock_tpm_, FlushContextSync(handle, nullptr)) in TEST_F()
109 EXPECT_CALL(mock_tpm_, ReadPublicSync(kSaltingKey, _, _, _, _, nullptr)) in TEST_F()
115 EXPECT_CALL(mock_tpm_, StartAuthSessionSyncShort(_, handle, in TEST_F()
128 EXPECT_CALL(mock_tpm_, ReadPublicSync(kSaltingKey, _, _, _, _, nullptr)) in TEST_F()
139 EXPECT_CALL(mock_tpm_, ReadPublicSync(kSaltingKey, _, _, _, _, nullptr)) in TEST_F()
142 EXPECT_CALL(mock_tpm_, StartAuthSessionSyncShort(_, in TEST_F()
155 EXPECT_CALL(mock_tpm_, ReadPublicSync(kSaltingKey, _, _, _, _, nullptr)) in TEST_F()
[all …]
Dtpm_utility_test.cc52 factory_.set_tpm(&mock_tpm_); in SetUp()
94 EXPECT_CALL(mock_tpm_, in SetExistingKeyHandleExpectation()
133 EXPECT_CALL(mock_tpm_, in SetExistingPCRSExpectation()
143 NiceMock<MockTpm> mock_tpm_; member in trunks::TpmUtilityTest
155 EXPECT_CALL(mock_tpm_, StartupSync(_, _)) in TEST_F()
161 EXPECT_CALL(mock_tpm_, StartupSync(_, _)) in TEST_F()
167 EXPECT_CALL(mock_tpm_, SelfTestSync(_, _)) in TEST_F()
177 EXPECT_CALL(mock_tpm_, ClearSync(_, _, _)) in TEST_F()
184 EXPECT_CALL(mock_tpm_, ClearSync(_, _, _)) in TEST_F()
190 EXPECT_CALL(mock_tpm_, ShutdownSync(TPM_SU_CLEAR, _)); in TEST_F()
[all …]
Dscoped_key_handle_test.cc43 factory_.set_tpm(&mock_tpm_); in SetUp()
48 NiceMock<MockTpm> mock_tpm_; member in trunks::ScopedKeyHandleTest
54 EXPECT_CALL(mock_tpm_, FlushContextSync(handle, _)) in TEST_F()
76 EXPECT_CALL(mock_tpm_, FlushContextSync(old_handle, _)) in TEST_F()
80 EXPECT_CALL(mock_tpm_, FlushContextSync(new_handle, _)) in TEST_F()
88 EXPECT_CALL(mock_tpm_, FlushContextSync(handle, _)) in TEST_F()
Dpolicy_session_test.cc44 factory_.set_tpm(&mock_tpm_); in SetUp()
54 NiceMock<MockTpm> mock_tpm_; member in trunks::PolicySessionTest
108 EXPECT_CALL(mock_tpm_, PolicyGetDigestSync(_, _, _, _)) in TEST_F()
118 EXPECT_CALL(mock_tpm_, PolicyGetDigestSync(_, _, _, _)) in TEST_F()
130 EXPECT_CALL(mock_tpm_, PolicyORSync(_, _, _, _)) in TEST_F()
152 EXPECT_CALL(mock_tpm_, PolicyORSync(_, _, _, _)) in TEST_F()
163 EXPECT_CALL(mock_tpm_, PolicyPCRSync(_, _, _, _, _)) in TEST_F()
181 EXPECT_CALL(mock_tpm_, PolicyPCRSync(_, _, _, _, _)) in TEST_F()
194 EXPECT_CALL(mock_tpm_, PolicyCommandCodeSync(_, _, command_code, _)) in TEST_F()
201 EXPECT_CALL(mock_tpm_, PolicyCommandCodeSync(_, _, _, _)) in TEST_F()
[all …]
Dtpm_state_test.cc45 factory_.set_tpm(&mock_tpm_); in SetUp()
54 EXPECT_CALL(mock_tpm_, GetCapabilitySync(TPM_CAP_TPM_PROPERTIES, in SetUp()
58 EXPECT_CALL(mock_tpm_, GetCapabilitySync(TPM_CAP_TPM_PROPERTIES, in SetUp()
62 EXPECT_CALL(mock_tpm_, GetCapabilitySync(TPM_CAP_ALGS, in SetUp()
66 EXPECT_CALL(mock_tpm_, GetCapabilitySync(TPM_CAP_ALGS, in SetUp()
70 EXPECT_CALL(mock_tpm_, GetCapabilitySync(TPM_CAP_TPM_PROPERTIES, in SetUp()
75 EXPECT_CALL(mock_tpm_, GetCapabilitySync(TPM_CAP_TPM_PROPERTIES, in SetUp()
80 EXPECT_CALL(mock_tpm_, GetCapabilitySync(TPM_CAP_TPM_PROPERTIES, in SetUp()
85 EXPECT_CALL(mock_tpm_, GetCapabilitySync(TPM_CAP_TPM_PROPERTIES, in SetUp()
147 NiceMock<MockTpm> mock_tpm_; member in trunks::TpmStateTest
Dhmac_session_test.cc43 factory_.set_tpm(&mock_tpm_); in SetUp()
53 NiceMock<MockTpm> mock_tpm_; member in trunks::HmacSessionTest