Home
last modified time | relevance | path

Searched refs:cloud_ (Results 1 – 7 of 7) sorted by relevance

/external/libweave/src/privet/
Dpublisher.cc33 : dns_sd_{dns_sd}, device_{device}, cloud_{cloud}, wifi_{wifi} { in Publisher()
35 CHECK(cloud_);
51 std::string name{cloud_->GetName()}; in ExposeService()
52 std::string model_id{cloud_->GetModelId()}; in ExposeService()
63 {"id=" + cloud_->GetDeviceId()}, in ExposeService()
65 {"flags=" + WifiSsidGenerator{cloud_, wifi_}.GenerateFlags()}, in ExposeService()
68 if (!cloud_->GetCloudId().empty()) in ExposeService()
69 txt_record.emplace_back("gcd_id=" + cloud_->GetCloudId()); in ExposeService()
71 if (!cloud_->GetDescription().empty()) in ExposeService()
72 txt_record.emplace_back("note=" + cloud_->GetDescription()); in ExposeService()
Dprivet_handler_unittest.cc101 new PrivetHandler(&cloud_, &device_, &security_, &wifi_, &clock_)); in SetUp()
133 new PrivetHandler(&cloud_, &device_, &security_, nullptr, &clock_)); in SetNoWifiAndGcd()
134 EXPECT_CALL(cloud_, GetCloudId()).WillRepeatedly(Return("")); in SetNoWifiAndGcd()
135 EXPECT_CALL(cloud_, GetConnectionState()) in SetNoWifiAndGcd()
141 EXPECT_CALL(cloud_, Setup(_, _, _)) in SetNoWifiAndGcd()
146 testing::StrictMock<MockCloudDelegate> cloud_; member in weave::privet::PrivetHandlerTest
258 EXPECT_CALL(cloud_, GetDescription()) in TEST_F()
260 EXPECT_CALL(cloud_, GetLocation()).WillRepeatedly(Return("TestLocation")); in TEST_F()
530 cloud_.setup_state_ = SetupState{SetupState::kSuccess}; in TEST_F()
544 cloud_.setup_state_ = SetupState{std::move(error)}; in TEST_F()
[all …]
Dprivet_handler.cc373 : cloud_(cloud), in PrivetHandler()
378 CHECK(cloud_); in PrivetHandler()
382 cloud_observer_.Add(cloud_); in PrivetHandler()
531 std::string name = cloud_->GetName(); in HandleInfo()
532 std::string model_id = cloud_->GetModelId(); in HandleInfo()
535 output.SetString(kInfoIdKey, cloud_->GetDeviceId()); in HandleInfo()
538 std::string description{cloud_->GetDescription()}; in HandleInfo()
542 std::string location{cloud_->GetLocation()}; in HandleInfo()
547 output.Set(kInfoModelManifestKey, CreateManifestSection(*cloud_).release()); in HandleInfo()
550 ToValue(std::vector<std::string>{GetDeviceUiKind(cloud_->GetModelId())}) in HandleInfo()
[all …]
Dprivet_manager.cc59 cloud_ = in Start()
61 cloud_observer_.Add(cloud_.get()); in Start()
71 device->GetMutableConfig(), task_runner_, network, wifi, cloud_.get())); in Start()
76 publisher_.reset(new Publisher(device_.get(), cloud_.get(), in Start()
80 privet_handler_.reset(new PrivetHandler(cloud_.get(), device_.get(), in Start()
Dpublisher.h45 const CloudDelegate* cloud_{nullptr};
Dprivet_manager.h83 std::unique_ptr<CloudDelegate> cloud_; variable
Dprivet_handler.h141 CloudDelegate* cloud_{nullptr};