/system/tpm/tpm_manager/client/ |
D | tpm_nvram_dbus_proxy_test.cc | 118 std::string nvram_data("nvram_data"); in TEST_F() local 119 auto fake_dbus_call = [nvram_index, nvram_data]( in TEST_F() 129 EXPECT_EQ(nvram_data, request.data()); in TEST_F() 148 request.set_data(nvram_data); in TEST_F() 155 std::string nvram_data("nvram_data"); in TEST_F() local 156 auto fake_dbus_call = [nvram_index, nvram_data]( in TEST_F() 170 reply.set_data(nvram_data); in TEST_F() 178 auto callback = [&callback_count, nvram_data](const ReadNvramReply& reply) { in TEST_F() 182 EXPECT_EQ(nvram_data, reply.data()); in TEST_F()
|
/system/tpm/tpm_manager/server/ |
D | dbus_service_test.cc | 214 std::string nvram_data("nvram_data"); in TEST_F() local 217 request.set_data(nvram_data); in TEST_F() 219 .WillOnce(Invoke([nvram_index, nvram_data]( in TEST_F() 225 EXPECT_EQ(nvram_data, request.data()); in TEST_F() 237 std::string nvram_data("nvram_data"); in TEST_F() local 241 .WillOnce(Invoke([nvram_index, nvram_data]( in TEST_F() 248 reply.set_data(nvram_data); in TEST_F() 255 EXPECT_EQ(nvram_data, reply.data()); in TEST_F()
|
D | tpm_manager_service_test.cc | 455 std::string nvram_data("nvram_data"); in TEST_F() local 464 define_request.set_length(nvram_data.size() - 1); in TEST_F() 468 write_request.set_data(nvram_data); in TEST_F() 475 std::string nvram_data("nvram_data"); in TEST_F() local 487 define_request.set_length(nvram_data.size()); in TEST_F() 491 write_request.set_data(nvram_data); in TEST_F() 528 std::string nvram_data("nvram_data"); in TEST_F() local 535 auto read_callback = [this, nvram_data](const ReadNvramReply& reply) { in TEST_F() 537 EXPECT_EQ(nvram_data, reply.data()); in TEST_F() 545 define_request.set_length(nvram_data.size()); in TEST_F() [all …]
|
/system/tpm/trunks/ |
D | tpm_utility.h | 276 const std::string& nvram_data, 286 std::string* nvram_data,
|
D | tpm_utility_impl.h | 132 const std::string& nvram_data, 137 std::string* nvram_data,
|
D | trunks_factory_for_test.cc | 327 const std::string& nvram_data, in WriteNVSpace() argument 329 return target_->WriteNVSpace(index, offset, nvram_data, delegate); in WriteNVSpace() 335 std::string* nvram_data, in ReadNVSpace() argument 337 return target_->ReadNVSpace(index, offset, num_bytes, nvram_data, delegate); in ReadNVSpace()
|
D | tpm_utility_test.cc | 1849 std::string nvram_data(1025, 0); in TEST_F() local 1851 index, 0, nvram_data, &mock_authorization_delegate_)); in TEST_F() 1881 std::string nvram_data; in TEST_F() local 1886 index, offset, length, &nvram_data, &mock_authorization_delegate_)); in TEST_F() 1891 std::string nvram_data; in TEST_F() local 1893 52, 0, length, &nvram_data, &mock_authorization_delegate_)); in TEST_F() 1898 std::string nvram_data; in TEST_F() local 1900 bad_index, 0, 5, &nvram_data, &mock_authorization_delegate_)); in TEST_F() 1904 std::string nvram_data; in TEST_F() local 1906 utility_.ReadNVSpace(53, 0, 5, &nvram_data, nullptr)); in TEST_F() [all …]
|
D | tpm_utility_impl.cc | 1310 const std::string& nvram_data, in WriteNVSpace() argument 1313 if (nvram_data.size() > MAX_NV_BUFFER_SIZE) { in WriteNVSpace() 1341 Make_TPM2B_MAX_NV_BUFFER(nvram_data), in WriteNVSpace() 1359 std::string* nvram_data, in ReadNVSpace() argument 1401 nvram_data->assign(StringFrom_TPM2B_MAX_NV_BUFFER(data_buffer)); in ReadNVSpace()
|