Lines Matching refs:unlock
107 auto unlock = std::make_unique<CarrierUnlock>(); in TEST() local
108 unlock->set_version(version); in TEST()
109 unlock->set_nonce(nonce); in TEST()
110 unlock->set_signature(token.data(), token.size()); in TEST()
112 request.set_allocated_token(unlock.release()); in TEST()
326 CarrierUnlock unlock; in TEST() local
327 ASSERT_TRUE(OemLock::carrierUnlockFromSignature(signature, &unlock)); in TEST()
328 EXPECT_THAT(unlock.version(), Eq(version)); in TEST()
329 EXPECT_THAT(unlock.nonce(), Eq(nonce)); in TEST()
330 EXPECT_THAT(unlock.signature().size(), Eq(token.size())); in TEST()
331 EXPECT_THAT(unlock.signature(), ElementsAreArray(token)); in TEST()
341 CarrierUnlock unlock; in TEST() local
342 ASSERT_FALSE(OemLock::carrierUnlockFromSignature(signature, &unlock)); in TEST()