Home
last modified time | relevance | path

Searched refs:nvram_data (Results 1 – 8 of 8) sorted by relevance

/system/tpm/tpm_manager/client/
Dtpm_nvram_dbus_proxy_test.cc118 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/
Ddbus_service_test.cc214 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()
Dtpm_manager_service_test.cc455 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/
Dtpm_utility.h276 const std::string& nvram_data,
286 std::string* nvram_data,
Dtpm_utility_impl.h132 const std::string& nvram_data,
137 std::string* nvram_data,
Dtrunks_factory_for_test.cc327 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()
Dtpm_utility_test.cc1849 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 …]
Dtpm_utility_impl.cc1310 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()