Home
last modified time | relevance | path

Searched refs:nvram_data (Results 1 – 9 of 9) 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 ReadSpaceReply& reply) { in TEST_F()
182 EXPECT_EQ(nvram_data, reply.data()); in TEST_F()
/system/tpm/tpm_manager/server/
Dbinder_service_test.cc196 std::string nvram_data("nvram_data"); in TEST_F() local
199 request.set_data(nvram_data); in TEST_F()
201 .WillOnce(Invoke([nvram_index, nvram_data]( in TEST_F()
207 EXPECT_EQ(nvram_data, request.data()); in TEST_F()
219 std::string nvram_data("nvram_data"); in TEST_F() local
223 .WillOnce(Invoke([nvram_index, nvram_data]( in TEST_F()
230 reply.set_data(nvram_data); in TEST_F()
237 EXPECT_EQ(nvram_data, reply.data()); in TEST_F()
Ddbus_service_test.cc213 std::string nvram_data("nvram_data"); in TEST_F() local
216 request.set_data(nvram_data); in TEST_F()
218 .WillOnce(Invoke([nvram_index, nvram_data]( in TEST_F()
224 EXPECT_EQ(nvram_data, request.data()); in TEST_F()
236 std::string nvram_data("nvram_data"); in TEST_F() local
240 .WillOnce(Invoke([nvram_index, nvram_data]( in TEST_F()
247 reply.set_data(nvram_data); in TEST_F()
254 EXPECT_EQ(nvram_data, reply.data()); in TEST_F()
Dtpm_manager_service_test.cc445 std::string nvram_data("nvram_data"); in TEST_F() local
454 define_request.set_size(nvram_data.size() - 1); in TEST_F()
458 write_request.set_data(nvram_data); in TEST_F()
465 std::string nvram_data("nvram_data"); in TEST_F() local
480 define_request.set_size(nvram_data.size()); in TEST_F()
484 write_request.set_data(nvram_data); in TEST_F()
506 std::string nvram_data("nvram_data"); in TEST_F() local
513 auto read_callback = [](const std::string& nvram_data, in TEST_F()
516 EXPECT_EQ(nvram_data, reply.data()); in TEST_F()
520 define_request.set_size(nvram_data.size()); in TEST_F()
[all …]
/system/tpm/trunks/
Dtpm_utility.h282 const std::string& nvram_data,
295 std::string* nvram_data,
Dtpm_utility_impl.h138 const std::string& nvram_data,
146 std::string* nvram_data,
Dtrunks_factory_for_test.cc307 const std::string& nvram_data, in WriteNVSpace() argument
311 return target_->WriteNVSpace(index, offset, nvram_data, in WriteNVSpace()
319 std::string* nvram_data, in ReadNVSpace() argument
322 using_owner_authorization, nvram_data, in ReadNVSpace()
Dtpm_utility_test.cc1791 std::string nvram_data(1025, 0); in TEST_F() local
1793 utility_.WriteNVSpace(index, 0, nvram_data, true, false, in TEST_F()
1821 std::string nvram_data; in TEST_F() local
1826 utility_.ReadNVSpace(index, offset, length, false, &nvram_data, in TEST_F()
1835 std::string nvram_data; in TEST_F() local
1840 utility_.ReadNVSpace(index, offset, length, true, &nvram_data, in TEST_F()
1846 std::string nvram_data; in TEST_F() local
1848 utility_.ReadNVSpace(52, 0, length, true, &nvram_data, in TEST_F()
1854 std::string nvram_data; in TEST_F() local
1856 utility_.ReadNVSpace(bad_index, 0, 5, true, &nvram_data, in TEST_F()
[all …]
Dtpm_utility_impl.cc1282 const std::string& nvram_data, in WriteNVSpace() argument
1287 if (nvram_data.size() > MAX_NV_BUFFER_SIZE) { in WriteNVSpace()
1315 Make_TPM2B_MAX_NV_BUFFER(nvram_data), delegate); in WriteNVSpace()
1319 Make_TPM2B_MAX_NV_BUFFER(nvram_data), offset, delegate); in WriteNVSpace()
1337 std::string* nvram_data, in ReadNVSpace() argument
1375 nvram_data->assign(StringFrom_TPM2B_MAX_NV_BUFFER(data_buffer)); in ReadNVSpace()