Home
last modified time | relevance | path

Searched refs:publisher_ (Results 1 – 15 of 15) sorted by relevance

/external/openscreen/discovery/mdns/
Dmdns_publisher_unittest.cc81 publisher_(&sender_, in MdnsPublisherTest()
131 EXPECT_EQ(publisher_.GetRecordCount(), expected_records.size()); in CheckPublishedRecords()
132 auto records = publisher_.GetRecords(domain, type, DnsClass::kIN); in CheckPublishedRecords()
146 auto records = publisher_.GetRecords(domain_, type, DnsClass::kIN); in TestUniqueRecordRegistrationWorkflow()
147 ASSERT_EQ(publisher_.GetRecordCount(), size_t{0}); in TestUniqueRecordRegistrationWorkflow()
157 EXPECT_TRUE(publisher_.RegisterRecord(record).ok()); in TestUniqueRecordRegistrationWorkflow()
161 EXPECT_TRUE(publisher_.IsNonPtrRecordPresent(domain_)); in TestUniqueRecordRegistrationWorkflow()
164 EXPECT_FALSE(publisher_.RegisterRecord(record).ok()); in TestUniqueRecordRegistrationWorkflow()
168 EXPECT_TRUE(publisher_.IsNonPtrRecordPresent(domain_)); in TestUniqueRecordRegistrationWorkflow()
171 EXPECT_FALSE(publisher_.UpdateRegisteredRecord(record2, record).ok()); in TestUniqueRecordRegistrationWorkflow()
[all …]
Dmdns_service_impl.cc82 publisher_ = in MdnsServiceImpl()
86 publisher_.get(), probe_manager_.get(), sender_.get(), &receiver_, in MdnsServiceImpl()
132 return publisher_->RegisterRecord(record); in RegisterRecord()
137 return publisher_->UpdateRegisteredRecord(old_record, new_record); in UpdateRegisteredRecord()
141 return publisher_->UnregisterRecord(record); in UnregisterRecord()
Dmdns_publisher.cc254 : publisher_(publisher), in RecordAnnouncer()
260 OSP_DCHECK(publisher_); in RecordAnnouncer()
277 publisher_->QueueRecord(CreateGoodbyeRecord(record_)); in QueueGoodbye()
287 publisher_->QueueRecord(record_); in QueueAnnouncement()
Dmdns_service_impl.h89 std::unique_ptr<MdnsPublisher> publisher_; variable
Dmdns_publisher.h124 MdnsPublisher* const publisher_; variable
/external/openscreen/discovery/public/
Ddns_sd_service_publisher.h43 publisher_(service ? service->GetPublisher() : nullptr) { in DnsSdServicePublisher()
44 OSP_DCHECK(publisher_); in DnsSdServicePublisher()
55 return publisher_->Register(instance, this); in Register()
64 return publisher_->UpdateRegistration(instance); in UpdateRegistration()
68 return publisher_->DeregisterAll(service_name_); in DeregisterAll()
90 DnsSdPublisher* const publisher_; variable
/external/openscreen/cast/common/discovery/e2e_test/
Dtests.cc173 publisher_ = std::make_unique<Publisher>(dnssd_service_.get()); in SetUpService()
189 OSP_DCHECK(publisher_.get()); in UpdateRecords()
194 auto error = publisher_->UpdateRegistration(r); in UpdateRecords()
204 OSP_DCHECK(publisher_.get()); in PublishRecords()
209 auto error = publisher_->Register(r); in PublishRecords()
275 std::unique_ptr<Publisher> publisher_; member in openscreen::cast::__anon5cbb65430111::DiscoveryE2ETest
281 if (publisher_->IsInstanceIdClaimed(service_info.GetInstanceId())) { in CheckForClaimedIds()
426 ErrorOr<int> result = publisher_->DeregisterAll(); in TEST_F()
/external/openscreen/osp/impl/
Dservice_publisher_impl.h32 void SetState(State state) { publisher_->SetState(state); } in SetState()
34 ServicePublisherImpl* publisher_ = nullptr; variable
Dservice_publisher_impl.cc42 OSP_DCHECK(!publisher_); in SetPublisherImpl()
43 publisher_ = publisher; in SetPublisherImpl()
Dmdns_responder_service.cc145 if (!publisher_ || publisher_->state() == ServicePublisher::State::kStopped || in StopListenerInternal()
146 publisher_->state() == ServicePublisher::State::kSuspended) { in StopListenerInternal()
148 if (!publisher_ || publisher_->state() == ServicePublisher::State::kStopped) in StopListenerInternal()
/external/openscreen/discovery/dnssd/impl/
Dservice_instance.h43 DnsSdPublisher* GetPublisher() override { return publisher_.get(); } in GetPublisher()
51 std::unique_ptr<PublisherImpl> publisher_; variable
Dservice_dispatcher.h35 DnsSdPublisher* GetPublisher() override { return publisher_; } in GetPublisher()
54 DnsSdPublisher* const publisher_; variable
Dpublisher_impl_unittest.cc62 publisher_(&mock_service_, in PublisherImplTest()
69 PublisherImpl* publisher() { return &publisher_; } in publisher()
74 static_cast<MdnsDomainConfirmedProvider&>(publisher_) in CallOnDomainFound()
84 PublisherImpl publisher_; member in openscreen::discovery::__anon46c0891e0111::PublisherImplTest
Dservice_instance.cc47 publisher_ = std::make_unique<PublisherImpl>(
Dservice_dispatcher.cc67 publisher_(config.enable_publication ? this : nullptr), in ServiceDispatcher()