Home
last modified time | relevance | path

Searched refs:security_ (Results 1 – 6 of 6) sorted by relevance

/external/libweave/src/privet/
Dsecurity_manager_unittest.cc93 EXPECT_TRUE(security_.StartPairing(PairingType::kEmbeddedCode, in PairAndAuthenticate()
104 EXPECT_TRUE(security_.ConfirmPairing(session_id, client_commitment_base64, in PairAndAuthenticate()
124 EXPECT_TRUE(security_.CreateAccessToken(AuthType::kPairing, in PairAndAuthenticate()
131 EXPECT_TRUE(security_.ParseAccessToken(token, &info, nullptr)); in PairAndAuthenticate()
152 SecurityManager security_{&config_, &auth_manager_, &task_runner_}; member in weave::privet::SecurityManagerTest
165 EXPECT_TRUE(security_.CreateAccessToken(AuthType::kAnonymous, "", in TEST_F()
172 EXPECT_TRUE(security_.ParseAccessToken(token, &info, nullptr)); in TEST_F()
183 security_.ConfirmPairing("123", "345", &fingerprint, &signature, &error)); in TEST_F()
202 security_.RegisterPairingListeners( in TEST_F()
213 EXPECT_TRUE(security_.StartPairing(PairingType::kEmbeddedCode, in TEST_F()
[all …]
Dprivet_handler_unittest.cc101 new PrivetHandler(&cloud_, &device_, &security_, &wifi_, &clock_)); in SetUp()
133 new PrivetHandler(&cloud_, &device_, &security_, nullptr, &clock_)); in SetNoWifiAndGcd()
148 testing::StrictMock<MockSecurityDelegate> security_; member in weave::privet::PrivetHandlerTest
199 EXPECT_CALL(security_, ParseAccessToken(_, _, _)) in TEST_F()
214 EXPECT_CALL(security_, GetPairingTypes()) in TEST_F()
216 EXPECT_CALL(security_, GetCryptoTypes()) in TEST_F()
218 EXPECT_CALL(security_, GetAuthTypes()) in TEST_F()
382 EXPECT_CALL(security_, CreateAccessToken(_, "testToken", _, _, _, _, _)) in TEST_F()
406 EXPECT_CALL(security_, CreateAccessToken(_, _, _, _, _, _, _)) in TEST_F()
426 EXPECT_CALL(security_, CreateAccessToken(_, _, _, _, _, _, _)) in TEST_F()
[all …]
Dprivet_manager.cc63 security_.reset(new SecurityManager(device->GetMutableConfig(), auth_manager, in Start()
81 security_.get(), in Start()
106 security_->RegisterPairingListeners(on_start, on_end); in AddOnPairingChangedCallbacks()
Dprivet_handler.cc375 security_(security), in PrivetHandler()
380 CHECK(security_); in PrivetHandler()
493 if (!security_->ParseAccessToken(token, &user_info, &error)) in HandleRequest()
555 CreateInfoAuthSection(*security_, GetAnonymousMaxScope(*cloud_, wifi_)) in HandleInfo()
566 output.SetString(kInfoSessionIdKey, security_->CreateSessionId()); in HandleInfo()
583 std::set<PairingType> modes = security_->GetPairingTypes(); in HandlePairingStart()
593 std::set<CryptoType> cryptos = security_->GetCryptoTypes(); in HandlePairingStart()
604 if (!security_->StartPairing(pairing, crypto, &id, &commitment, &error)) in HandlePairingStart()
625 if (!security_->ConfirmPairing(id, commitment, &fingerprint, &signature, in HandlePairingConfirm()
643 if (!security_->CancelPairing(id, &error)) in HandlePairingCancel()
[all …]
Dprivet_manager.h85 std::unique_ptr<SecurityManager> security_; variable
Dprivet_handler.h143 SecurityDelegate* security_{nullptr};