Lines Matching refs:client
30 static unique_ptr<nos::NuggetClientInterface> client; member in __anon6499bfc00111::AvbTest
98 unique_ptr<nos::NuggetClientInterface> AvbTest::client; member in __anon6499bfc00111::AvbTest
104 client = nugget_tools::MakeNuggetClient(); in SetUpTestCase()
105 client->Open(); in SetUpTestCase()
106 EXPECT_TRUE(client->IsOpen()) << "Unable to connect"; in SetUpTestCase()
110 client->Close(); in TearDownTestCase()
111 client = unique_ptr<nos::NuggetClientInterface>(); in TearDownTestCase()
123 avb_tools::BootloaderDone(client.get()); // We don't need BL for setup. in SetUp()
129 ResetProduction(client.get()); in SetUp()
131 code = Reset(client.get(), ResetRequest::LOCKS, NULL, 0); in SetUp()
134 GetState(client.get(), &bootloader, &production, locks); in SetUp()
165 Avb service(*client); in ProductionResetTest()
218 Avb service(*client); in Load()
234 Avb service(*client); in Store()
244 Avb service(*client); in SetDeviceLock()
254 Avb service(*client); in SetBootLock()
267 Avb service(*client); in SetOwnerLock()
282 Avb service(*client); in GetOwnerKey()
308 Avb service(*client); in SetCarrierLock()
326 GetState(client.get(), NULL, NULL, locks); in TEST_F()
333 avb_tools::SetBootloader(client.get()); in TEST_F()
334 code = SetProduction(client.get(), true, NULL, 0); in TEST_F()
336 avb_tools::BootloaderDone(client.get()); in TEST_F()
342 GetState(client.get(), NULL, NULL, locks); in TEST_F()
365 Avb service(*client); in TEST_F()
382 avb_tools::SetBootloader(client.get()); in TEST_F()
383 code = SetProduction(client.get(), true, NULL, 0); in TEST_F()
390 ResetProduction(client.get()); in TEST_F()
391 avb_tools::SetBootloader(client.get()); in TEST_F()
396 GetState(client.get(), &bootloader, &production, locks); in TEST_F()
405 GetState(client.get(), NULL, NULL, locks); in TEST_F()
412 GetState(client.get(), NULL, NULL, locks); in TEST_F()
426 code = SetProduction(client.get(), true, NULL, 0); in TEST_F()
433 GetState(client.get(), NULL, NULL, locks); in TEST_F()
437 avb_tools::SetBootloader(client.get()); in TEST_F()
441 GetState(client.get(), NULL, NULL, locks); in TEST_F()
447 GetState(client.get(), NULL, NULL, locks); in TEST_F()
451 ResetProduction(client.get()); in TEST_F()
452 code = Reset(client.get(), ResetRequest::LOCKS, NULL, 0); in TEST_F()
458 code = SetProduction(client.get(), true, NULL, 0); in TEST_F()
462 avb_tools::SetBootloader(client.get()); in TEST_F()
474 GetState(client.get(), NULL, NULL, locks); in TEST_F()
479 ResetProduction(client.get()); in TEST_F()
480 code = Reset(client.get(), ResetRequest::LOCKS, NULL, 0); in TEST_F()
482 code = SetProduction(client.get(), true, NULL, 0); in TEST_F()
484 avb_tools::SetBootloader(client.get()); in TEST_F()
490 avb_tools::BootloaderDone(client.get()); in TEST_F()
496 avb_tools::SetBootloader(client.get()); in TEST_F()
504 GetState(client.get(), NULL, NULL, locks); in TEST_F()
516 ASSERT_NO_ERROR(SetProduction(client.get(), true, NULL, 0), ""); in TEST_F()
517 avb_tools::SetBootloader(client.get()); in TEST_F()
518 ASSERT_TRUE(nugget_tools::WipeUserData(client.get())); in TEST_F()
539 GetState(client.get(), NULL, NULL, locks); in TEST_F()
558 GetState(client.get(), NULL, NULL, locks); in TEST_F()
565 GetState(client.get(), NULL, NULL, locks); in TEST_F()
569 avb_tools::SetBootloader(client.get()); in TEST_F()
573 GetState(client.get(), NULL, NULL, locks); in TEST_F()
588 GetState(client.get(), NULL, &production, NULL); in TEST_F()
592 avb_tools::SetBootloader(client.get()); in TEST_F()
606 code = SetProduction(client.get(), true, NULL, 0); in TEST_F()
609 GetState(client.get(), NULL, &production, locks); in TEST_F()
617 code = SetProduction(client.get(), false, NULL, 0); in TEST_F()
619 avb_tools::BootloaderDone(client.get()); in TEST_F()
620 code = SetProduction(client.get(), false, NULL, 0); in TEST_F()
630 code = SetProduction(client.get(), true, NULL, 0); in TEST_F()
642 avb_tools::SetBootloader(client.get()); in TEST_F()
668 avb_tools::SetBootloader(client.get()); in TEST_F()
675 code = SetProduction(client.get(), true, NULL, 0); in TEST_F()
678 avb_tools::BootloaderDone(client.get()); in TEST_F()
680 GetState(client.get(), &bootloader, &production, locks); in TEST_F()
687 code = Reset(client.get(), ResetRequest::LOCKS, NULL, 0); in TEST_F()
690 GetState(client.get(), &bootloader, &production, locks); in TEST_F()
697 ResetProduction(client.get()); in TEST_F()
698 code = Reset(client.get(), ResetRequest::LOCKS, NULL, 0); in TEST_F()
701 GetState(client.get(), &bootloader, &production, locks); in TEST_F()
719 code = GetResetChallenge(client.get(), &selector, &nonce, data, &len); in TEST_F()
747 code = SetProduction(client.get(), true, kDeviceHash, sizeof(kDeviceHash)); in TEST_F()
751 code = GetResetChallenge(client.get(), &selector, &message.nonce, message.data, &len); in TEST_F()
761 code = Reset(client.get(), ResetRequest::PRODUCTION, signature, siglen); in TEST_F()
766 code = SetProduction(client.get(), true, kDeviceHash, sizeof(kDeviceHash)); in TEST_F()
770 code = Reset(client.get(), ResetRequest::PRODUCTION, signature, siglen); in TEST_F()
774 code = GetResetChallenge(client.get(), &selector, &message.nonce, message.data, &len); in TEST_F()
777 code = Reset(client.get(), ResetRequest::PRODUCTION, signature, siglen); in TEST_F()
815 code = GetResetChallenge(client.get(), &selector, &message.nonce, message.data, &len); in TEST_F()
818 code = Reset(client.get(), ResetRequest::PRODUCTION, signature, siglen); in TEST_F()
832 ASSERT_TRUE(nugget_tools::WipeUserData(client.get())); in TEST_F()
835 GetState(client.get(), nullptr, nullptr, locks); in TEST_F()
850 code = GetResetChallenge(client.get(), &selector, &nonce, in TEST_F()