Home
last modified time | relevance | path

Searched refs:wifi_ (Results 1 – 12 of 12) sorted by relevance

/external/libweave/src/privet/
Dwifi_ssid_generator_unittest.cc20 testing::StrictMock<MockWifiDelegate> wifi_; member in weave::privet::WifiSsidGeneratorTest
22 WifiSsidGenerator ssid_generator_{&gcd_, &wifi_};
26 EXPECT_CALL(wifi_, GetTypes()) in TEST_F()
31 wifi_.connection_state_ = ConnectionState{ConnectionState::kUnconfigured}; in TEST_F()
35 wifi_.connection_state_ = ConnectionState{ConnectionState::kOnline}; in TEST_F()
41 wifi_.connection_state_ = ConnectionState{ConnectionState::kUnconfigured}; in TEST_F()
46 EXPECT_CALL(wifi_, GetTypes()) in TEST_F()
51 wifi_.connection_state_ = ConnectionState{ConnectionState::kUnconfigured}; in TEST_F()
55 wifi_.connection_state_ = ConnectionState{ConnectionState::kOnline}; in TEST_F()
61 wifi_.connection_state_ = ConnectionState{ConnectionState::kUnconfigured}; in TEST_F()
Dwifi_ssid_generator.cc50 : gcd_(cloud), wifi_(wifi), get_random_(base::Bind(&base::RandInt, 0, 99)) { in WifiSsidGenerator()
61 flags1[0] = wifi_ && IsSetupNeeded(wifi_->GetConnectionState()); in GenerateFlagsInternal()
68 if (wifi_) { in GenerateFlagsInternal()
69 std::set<WifiType> types = wifi_->GetTypes(); in GenerateFlagsInternal()
Dwifi_bootstrap_manager.cc46 wifi_{wifi},
51 CHECK(wifi_);
94 wifi_->StartAccessPoint(privet_ssid_); in StartBootstrapping()
99 wifi_->StopAccessPoint(); in EndBootstrapping()
111 wifi_->Connect(ssid, passphrase, in StartConnecting()
208 if (wifi_->IsWifi24Supported()) in GetTypes()
210 if (wifi_->IsWifi50Supported()) in GetTypes()
Dpublisher.cc33 : dns_sd_{dns_sd}, device_{device}, cloud_{cloud}, wifi_{wifi} { in Publisher()
65 {"flags=" + WifiSsidGenerator{cloud_, wifi_}.GenerateFlags()}, in ExposeService()
Dprivet_handler.cc376 wifi_(wifi), in PrivetHandler()
555 CreateInfoAuthSection(*security_, GetAnonymousMaxScope(*cloud_, wifi_)) in HandleInfo()
560 if (wifi_) in HandleInfo()
561 output.Set(kWifiKey, CreateWifiSection(*wifi_).release()); in HandleInfo()
681 desired_scope = GetAnonymousMaxScope(*cloud_, wifi_); in HandleAuth()
764 if (!wifi_ || wifi_->GetTypes().empty()) { in HandleSetupStart()
801 if (!ssid.empty() && !wifi_->ConfigureCredentials(ssid, passphrase, &error)) in HandleSetupStart()
829 if (wifi_) { in ReplyWithSetupStatus()
830 const SetupState& state = wifi_->GetSetupState(); in ReplyWithSetupStatus()
836 wifi->SetString(kInfoWifiSsidKey, wifi_->GetCurrentlyConnectedSsid()); in ReplyWithSetupStatus()
Dprivet_handler_unittest.cc101 new PrivetHandler(&cloud_, &device_, &security_, &wifi_, &clock_)); in SetUp()
149 testing::StrictMock<MockWifiDelegate> wifi_; member in weave::privet::PrivetHandlerTest
265 EXPECT_CALL(wifi_, GetHostedSsid()) in TEST_F()
500 wifi_.setup_state_ = SetupState{SetupState::kSuccess}; in TEST_F()
514 wifi_.setup_state_ = SetupState{std::move(error)}; in TEST_F()
605 EXPECT_CALL(wifi_, ConfigureCredentials(_, _, _)).WillOnce(Invoke(set_error)); in TEST_F()
614 wifi_.setup_state_ = SetupState{SetupState::kInProgress}; in TEST_F()
615 EXPECT_CALL(wifi_, ConfigureCredentials("testSsid", "testPass", _)) in TEST_F()
Dwifi_ssid_generator.h36 const WifiDelegate* wifi_{nullptr};
Dpublisher.h46 const WifiDelegate* wifi_{nullptr};
Dwifi_bootstrap_manager.h105 provider::Wifi* wifi_{nullptr};
Dprivet_handler.h144 WifiDelegate* wifi_{nullptr};
/external/libweave/src/
Dweave_unittest.cc185 EXPECT_CALL(wifi_, IsWifi24Supported()).WillRepeatedly(Return(true)); in SetUp()
186 EXPECT_CALL(wifi_, IsWifi50Supported()).WillRepeatedly(Return(false)); in SetUp()
270 EXPECT_CALL(wifi_, StartAccessPoint(MatchesRegex("TEST_NAME.*prv"))) in InitDefaultExpectations()
279 &http_server_, &wifi_, &bluetooth_); in StartDevice()
345 StrictMock<provider::test::MockWifi> wifi_; member in weave::WeaveTest
362 &network_, nullptr, nullptr, &wifi_, nullptr); in TEST_F()
470 EXPECT_CALL(wifi_, StartAccessPoint(MatchesRegex("TEST_NAME.*prv"))) in TEST_F()
492 EXPECT_CALL(wifi_, StartAccessPoint(MatchesRegex("TEST_NAME.*prv"))) in TEST_F()
502 EXPECT_CALL(wifi_, StopAccessPoint()) in TEST_F()
522 EXPECT_CALL(wifi_, StartAccessPoint(MatchesRegex("TEST_NAME.*prv"))) in TEST_F()
[all …]
/external/libweave/examples/daemon/common/
Ddaemon.h82 wifi_.reset(
88 wifi_.get(), bluetooth_.get());
120 std::unique_ptr<weave::examples::WifiImpl> wifi_; variable