Home
last modified time | relevance | path

Searched refs:DnsSdInstance (Results 1 – 23 of 23) sorted by relevance

/external/openscreen/discovery/dnssd/public/
Ddns_sd_instance.h24 class DnsSdInstance {
29 DnsSdInstance(std::string instance_id,
37 DnsSdInstance(std::string instance_id, in DnsSdInstance() function
43 : DnsSdInstance(std::move(instance_id), in DnsSdInstance()
50 DnsSdInstance(const DnsSdInstance& other);
51 DnsSdInstance(DnsSdInstance&& other);
53 virtual ~DnsSdInstance();
55 DnsSdInstance& operator=(const DnsSdInstance& rhs);
56 DnsSdInstance& operator=(DnsSdInstance&& rhs);
91 friend bool operator<(const DnsSdInstance& lhs, const DnsSdInstance& rhs);
[all …]
Ddns_sd_instance.cc56 DnsSdInstance::DnsSdInstance(std::string instance_id, in DnsSdInstance() function in openscreen::discovery::DnsSdInstance
81 DnsSdInstance::DnsSdInstance(const DnsSdInstance& other) = default;
83 DnsSdInstance::DnsSdInstance(DnsSdInstance&& other) = default;
85 DnsSdInstance::~DnsSdInstance() = default;
87 DnsSdInstance& DnsSdInstance::operator=(const DnsSdInstance& rhs) = default;
89 DnsSdInstance& DnsSdInstance::operator=(DnsSdInstance&& rhs) = default;
174 bool IsSubtypeValid(const DnsSdInstance::Subtype& subtype) { in IsSubtypeValid()
187 bool operator<(const DnsSdInstance& lhs, const DnsSdInstance& rhs) { in operator <()
Ddns_sd_instance_unittest.cc227 DnsSdInstance kIn1("instance", "_service._tcp", "local", {}, 80); in TEST()
228 DnsSdInstance kIn2("instance", "_service._tcp", "local", {}, 80); in TEST()
229 DnsSdInstance kIn3("instance2", "_service._tcp", "local", {}, 80); in TEST()
230 DnsSdInstance kIn4("instance", "_service2._tcp", "local", {}, 80); in TEST()
231 DnsSdInstance kIn5("instance", "_service._tcp", "local2", {}, 80); in TEST()
232 DnsSdInstance kIn6("instance", "_service._tcp", "local", set_record, 80); in TEST()
233 DnsSdInstance kIn7("instance", "_service._tcp", "local", {}, 79); in TEST()
234 DnsSdInstance kIn8("instance", "_service._tcp", "local", {}, 80, "foo"); in TEST()
235 DnsSdInstance kIn9("instance", "_service._tcp", "local", {}, 80, "foobar"); in TEST()
236 DnsSdInstance kIn10("instance", "_service._tcp", "local", {}, 80, "foo", in TEST()
Ddns_sd_instance_endpoint_unittest.cc17 DnsSdInstance instance("instance", "_test._tcp", "local", {}, 80); in TEST()
18 DnsSdInstance instance2("instance", "_test._tcp", "local", {}, 79); in TEST()
35 EXPECT_EQ(static_cast<DnsSdInstance>(endpoint1), in TEST()
36 static_cast<DnsSdInstance>(endpoint2)); in TEST()
60 DnsSdInstance instance("instance", "_test._tcp", "local", {}, 80, subtypes); in TEST()
Ddns_sd_instance_endpoint.cc40 : DnsSdInstance(std::move(instance_id), in DnsSdInstanceEndpoint()
52 DnsSdInstance instance, in DnsSdInstanceEndpoint()
55 : DnsSdInstance(std::move(instance)), in DnsSdInstanceEndpoint()
100 return static_cast<const DnsSdInstance&>(lhs) < in operator <()
101 static_cast<const DnsSdInstance&>(rhs); in operator <()
Ddns_sd_publisher.h30 const DnsSdInstance& requested_instance,
42 virtual Error Register(const DnsSdInstance& instance, Client* client) = 0;
49 virtual Error UpdateRegistration(const DnsSdInstance& instance) = 0;
Ddns_sd_instance_endpoint.h21 class DnsSdInstanceEndpoint : public DnsSdInstance {
23 using DnsSdInstance::Subtype;
27 DnsSdInstanceEndpoint(DnsSdInstance record,
48 DnsSdInstanceEndpoint(DnsSdInstance record, in DnsSdInstanceEndpoint()
/external/openscreen/discovery/dnssd/impl/
Dpublisher_impl.h31 Error Register(const DnsSdInstance& instance, Client* client) override;
32 Error UpdateRegistration(const DnsSdInstance& instance) override;
36 Error UpdatePublishedRegistration(const DnsSdInstance& instance);
44 std::map<DnsSdInstance, Client* const> pending_instances_;
49 std::map<DnsSdInstance, DnsSdInstanceEndpoint> published_instances_;
Dpublisher_impl.cc27 DnsSdInstance instance, in CreateEndpoint()
44 DnsSdInstance instance, in UpdateDomain()
50 DnsSdInstance instance, in CreateEndpoint()
57 inline typename std::map<DnsSdInstance, T>::iterator FindKey( in FindKey() argument
58 std::map<DnsSdInstance, T>* instances, in FindKey()
61 [&key](const std::pair<DnsSdInstance, T>& pair) { in FindKey() argument
67 int EraseInstancesWithServiceId(std::map<DnsSdInstance, T>* instances, in EraseInstancesWithServiceId() argument
99 Error PublisherImpl::Register(const DnsSdInstance& instance, Client* client) { in Register()
120 Error PublisherImpl::UpdateRegistration(const DnsSdInstance& instance) { in UpdateRegistration()
145 const DnsSdInstance& instance) { in UpdatePublishedRegistration()
[all …]
Dpublisher_impl_unittest.cc28 void(const DnsSdInstance&, const DnsSdInstanceEndpoint&));
92 const DnsSdInstance instance("instance", "_service._udp", "domain", {}, 80); in TEST_F()
93 const DnsSdInstance instance2("instance2", "_service._udp", "domain", {}, 80); in TEST_F()
124 .WillOnce([instance2](const DnsSdInstance& requested, in TEST_F()
162 DnsSdInstance instance("instance", "_service._udp", "domain", std::move(txt), in TEST_F()
179 DnsSdInstance instance2("instance", "_service._udp", "domain", in TEST_F()
194 .WillOnce([instance2](const DnsSdInstance& requested, in TEST_F()
Dconversion_layer.cc55 MdnsRecord CreatePtrRecord(const DnsSdInstance& instance, in CreatePtrRecord()
64 MdnsRecord CreateSrvRecord(const DnsSdInstance& instance, in CreateSrvRecord()
101 MdnsRecord CreateTxtRecord(const DnsSdInstance& endpoint, in CreateTxtRecord()
179 std::vector<MdnsRecord> GetDnsRecords(const DnsSdInstance& instance) { in GetDnsRecords()
190 GetDnsRecords(static_cast<DnsSdInstance>(endpoint)); in GetDnsRecords()
Dservice_dispatcher.h44 Error Register(const DnsSdInstance& instance, Client* client) override;
45 Error UpdateRegistration(const DnsSdInstance& instance) override;
Dinstance_key.h17 class DnsSdInstance; variable
30 explicit InstanceKey(const DnsSdInstance& instance);
Ddns_data_graph_unittest.cc81 void ExpectDomainEqual(const DnsSdInstance& instance, in ExpectDomainEqual()
335 EXPECT_EQ(static_cast<DnsSdInstance>(endpoint_a), in TEST_F()
336 static_cast<DnsSdInstance>(endpoint_a_aaaa)); in TEST_F()
349 EXPECT_EQ(static_cast<DnsSdInstance>(endpoint_a), in TEST_F()
350 static_cast<DnsSdInstance>(endpoint_aaaa)); in TEST_F()
394 EXPECT_EQ(static_cast<DnsSdInstance>(endpoint), in TEST_F()
395 static_cast<DnsSdInstance>(endpoint2)); in TEST_F()
Dservice_dispatcher.cc109 Error ServiceDispatcher::Register(const DnsSdInstance& instance, in Register()
119 Error ServiceDispatcher::UpdateRegistration(const DnsSdInstance& instance) { in UpdateRegistration()
Dconversion_layer.h57 std::vector<MdnsRecord> GetDnsRecords(const DnsSdInstance& instance);
Dinstance_key.cc28 InstanceKey::InstanceKey(const DnsSdInstance& instance) in InstanceKey()
Dquerier_impl_unittest.cc337 EXPECT_EQ(static_cast<DnsSdInstance>(created), in TEST_F()
338 static_cast<DnsSdInstance>(updated)); in TEST_F()
/external/openscreen/discovery/public/
Ddns_sd_service_publisher.h36 using ServiceInstanceConverter = std::function<DnsSdInstance(const T&)>;
54 DnsSdInstance instance = conversion_(service); in Register()
63 DnsSdInstance instance = conversion_(service); in UpdateRegistration()
77 const DnsSdInstance& requested_instance, in OnEndpointClaimed()
Ddns_sd_service_watcher_unittest.cc90 [this](const DnsSdInstance& instance) { return Convert(instance); }, in TestServiceWatcher()
102 std::string Convert(const DnsSdInstance& instance) { in Convert()
/external/openscreen/cast/common/public/
Dservice_info.cc101 discovery::DnsSdInstance ServiceInfoToDnsSdInstance(const ServiceInfo& info) { in ServiceInfoToDnsSdInstance()
120 return discovery::DnsSdInstance(info.GetInstanceId(), kCastV2ServiceId, in ServiceInfoToDnsSdInstance()
Dservice_info.h116 discovery::DnsSdInstance ServiceInfoToDnsSdInstance(const ServiceInfo& service);
Dservice_info_unittest.cc134 discovery::DnsSdInstance instance = ServiceInfoToDnsSdInstance(info); in TEST()