Home
last modified time | relevance | path

Searched refs:DomainName (Results 1 – 25 of 66) sorted by relevance

123

/external/openscreen/osp/impl/discovery/mdns/
Ddomain_name.cc16 DomainName DomainName::GetLocalDomain() { in GetLocalDomain()
17 return DomainName{{5, 'l', 'o', 'c', 'a', 'l', 0}}; in GetLocalDomain()
21 ErrorOr<DomainName> DomainName::Append(const DomainName& first, in Append()
22 const DomainName& second) { in Append()
34 DomainName result; in Append()
45 DomainName::DomainName() : domain_name_{0u} {} in DomainName() function in openscreen::osp::DomainName
46 DomainName::DomainName(std::vector<uint8_t>&& domain_name) in DomainName() function in openscreen::osp::DomainName
50 DomainName::DomainName(const DomainName&) = default;
51 DomainName::DomainName(DomainName&&) noexcept = default;
52 DomainName::~DomainName() = default;
[all …]
Ddomain_name.h20 struct DomainName { struct
21 static ErrorOr<DomainName> Append(const DomainName& first,
22 const DomainName& second);
25 static ErrorOr<DomainName> FromLabels(It first, It last) { in FromLabels() argument
36 DomainName result; in FromLabels()
47 static DomainName GetLocalDomain();
52 DomainName();
53 explicit DomainName(std::vector<uint8_t>&& domain_name);
54 DomainName(const DomainName&);
55 DomainName(DomainName&&) noexcept;
[all …]
Ddomain_name_unittest.cc17 ErrorOr<DomainName> FromLabels(const std::vector<std::string>& labels) { in FromLabels()
18 return DomainName::FromLabels(labels.begin(), labels.end()); in FromLabels()
30 DomainName empty; in TEST()
35 DomainName original({10, 'o', 'p', 'e', 'n', 's', 'c', 'r', 'e', 'e', 'n', 3, in TEST()
40 DomainName direct_ctor(std::move(data_copy)); in TEST()
43 DomainName copy_ctor(original); in TEST()
46 DomainName move_ctor(std::move(copy_ctor)); in TEST()
49 DomainName copy_assign; in TEST()
53 DomainName move_assign; in TEST()
62 DomainName result = UnpackErrorOr(FromLabels({"openscreen", "org"})); in TEST()
[all …]
Dmdns_responder_adapter.h43 PtrEvent(QueryEventHeader header, DomainName service_instance);
49 DomainName service_instance;
55 DomainName service_instance,
56 DomainName domain_name,
63 DomainName service_instance;
64 DomainName domain_name;
71 DomainName service_instance,
78 DomainName service_instance;
87 AEvent(QueryEventHeader header, DomainName domain_name, IPAddress address);
93 DomainName domain_name;
[all …]
Dmdns_responder_adapter_impl.h52 const DomainName& service_type) override;
55 const DomainName& service_instance) override;
58 const DomainName& service_instance) override;
60 const DomainName& domain_name) override;
62 const DomainName& domain_name) override;
64 const DomainName& service_type) override;
67 const DomainName& service_instance) override;
70 const DomainName& service_instance) override;
72 const DomainName& domain_name) override;
74 const DomainName& domain_name) override;
[all …]
Dmdns_responder_adapter.cc21 DomainName domain_name, in AEvent()
32 DomainName domain_name, in AaaaEvent()
42 PtrEvent::PtrEvent(QueryEventHeader header, DomainName service_instance) in PtrEvent()
51 DomainName service_instance, in SrvEvent()
52 DomainName domain_name, in SrvEvent()
64 DomainName service_instance, in TxtEvent()
/external/openscreen/discovery/mdns/
Dmdns_records_unittest.cc44 DomainName name1; in TEST()
49 DomainName name2{"MyDevice", "_mYSERvice", "local"}; in TEST()
59 DomainName name3(labels); in TEST()
70 DomainName first{"testing", "local"}; in TEST()
71 DomainName second{"TeStInG", "LOCAL"}; in TEST()
72 DomainName third{"testing"}; in TEST()
73 DomainName fourth{"testing.local"}; in TEST()
74 DomainName fifth{"Testing.Local"}; in TEST()
117 TestCopyAndMove(DomainName{"testing", "local"}); in TEST()
176 EXPECT_EQ(rdata1.target(), DomainName()); in TEST()
[all …]
Dmdns_writer_unittest.cc56 ASSERT_TRUE(writer.Write(DomainName{"testing", "local"})); in TEST()
76 ASSERT_TRUE(writer.Write(DomainName{"testing", "local"})); in TEST()
77 ASSERT_TRUE(writer.Write(DomainName{"prefix", "local"})); in TEST()
78 ASSERT_TRUE(writer.Write(DomainName{"new", "prefix", "local"})); in TEST()
79 ASSERT_TRUE(writer.Write(DomainName{"prefix", "local"})); in TEST()
98 ASSERT_TRUE(writer.Write(DomainName{"testing", "local"})); in TEST()
101 ASSERT_FALSE(writer.Write(DomainName{"a", "different", "domain"})); in TEST()
102 ASSERT_TRUE(writer.Write(DomainName{"different", "domain"})); in TEST()
132 DomainName name{kLongLabel, kLongLabel, kLongLabel, kLongLabel}; in TEST()
141 DomainName name; in TEST()
[all …]
Dmdns_records.h32 class DomainName {
34 DomainName();
37 static ErrorOr<DomainName> TryCreate(IteratorType first, IteratorType last) { in TryCreate()
53 return DomainName(std::move(labels), max_wire_size); in TryCreate()
58 DomainName(IteratorType first, IteratorType last) { in DomainName() function
59 ErrorOr<DomainName> domain = TryCreate(first, last); in DomainName()
62 explicit DomainName(std::vector<std::string> labels);
63 explicit DomainName(const std::vector<absl::string_view>& labels);
64 explicit DomainName(std::initializer_list<absl::string_view> labels);
65 DomainName(const DomainName& other);
[all …]
Dmdns_records.cc102 DomainName::DomainName() = default;
104 DomainName::DomainName(std::vector<std::string> labels) in DomainName() function in openscreen::discovery::DomainName
105 : DomainName(labels.begin(), labels.end()) {} in DomainName()
107 DomainName::DomainName(const std::vector<absl::string_view>& labels) in DomainName() function in openscreen::discovery::DomainName
108 : DomainName(labels.begin(), labels.end()) {} in DomainName()
110 DomainName::DomainName(std::initializer_list<absl::string_view> labels) in DomainName() function in openscreen::discovery::DomainName
111 : DomainName(labels.begin(), labels.end()) {} in DomainName()
113 DomainName::DomainName(std::vector<std::string> labels, size_t max_wire_size) in DomainName() function in openscreen::discovery::DomainName
116 DomainName::DomainName(const DomainName& other) = default;
118 DomainName::DomainName(DomainName&& other) noexcept = default;
[all …]
Dmdns_querier_unittest.cc60 record0_created_(DomainName{"testing", "local"}, in MdnsQuerierTest()
66 record0_updated_(DomainName{"testing", "local"},
72 record0_deleted_(DomainName{"testing", "local"},
78 record1_created_(DomainName{"poking", "local"},
84 record1_deleted_(DomainName{"poking", "local"},
90 record2_created_(DomainName{"testing", "local"},
97 DomainName{"testing", "local"},
102 NsecRecordRdata(DomainName{"testing", "local"}, DnsType::kA)) {
114 MdnsRecord CreateNsec(DomainName name, DnsTypes... types) { in CreateNsec()
187 querier->StartQuery(DomainName{"testing", "local"}, DnsType::kA, in TEST_F()
[all …]
Dmdns_probe_manager.h35 virtual bool IsDomainClaimed(const DomainName& domain) const = 0;
80 DomainName requested_name,
84 Error StopProbe(const DomainName& requested_name);
87 bool IsDomainClaimed(const DomainName& domain) const override;
97 virtual std::unique_ptr<MdnsProbe> CreateProbe(DomainName name, in CreateProbe()
111 DomainName name,
117 DomainName requested_name;
128 const DomainName& name) const;
129 std::vector<OngoingProbe>::iterator FindOngoingProbe(const DomainName& name);
Dmdns_reader_unittest.cc88 DomainName name; in TEST()
104 TestReadEntrySucceeds(kDomainName, sizeof(kDomainName), DomainName()); in TEST()
110 TestReadEntryFails<DomainName>(kDomainName, sizeof(kDomainName)); in TEST()
121 TestReadEntryFails<DomainName>(kDomainName.data(), kDomainName.size()); in TEST()
126 TestReadEntryFails<DomainName>(kDomainName, sizeof(kDomainName)); in TEST()
131 TestReadEntryFails<DomainName>(kDomainName, sizeof(kDomainName)); in TEST()
143 TestReadEntryFails<DomainName>(kDomainName, sizeof(kDomainName)); in TEST()
209 SrvRecordRdata(5, 6, 8009, DomainName{"testing", "local"})); in TEST()
314 PtrRecordRdata(DomainName{"mydevice", "testing", "local"})); in TEST()
436 NsecRecordRdata(DomainName{"mydevice", "testing", "local"}, DnsType::kA, in TEST()
[all …]
Dmdns_querier.h54 void StartQuery(const DomainName& name,
62 void StopQuery(const DomainName& name,
70 void ReinitializeQueries(const DomainName& name);
99 std::vector<RecordTrackerConstRef> Find(const DomainName& name);
100 std::vector<RecordTrackerConstRef> Find(const DomainName& name,
107 int ExpireSoon(const DomainName& name, TrackerApplicableCheck check);
111 int Erase(const DomainName& name, TrackerApplicableCheck check);
129 using RecordMap = std::multimap<DomainName, LruList::iterator>;
224 std::multimap<DomainName, std::unique_ptr<MdnsQuestionTracker>> questions_;
234 std::multimap<DomainName, CallbackInfo> callbacks_;
Dmdns_probe_manager.cc23 DomainName CreateRetryDomainName(const DomainName& name, int attempt) { in CreateRetryDomainName()
33 return DomainName(std::move(labels)); in CreateRetryDomainName()
59 DomainName requested_name, in StartProbe()
81 Error MdnsProbeManagerImpl::StopProbe(const DomainName& requested_name) { in StopProbe()
91 bool MdnsProbeManagerImpl::IsDomainClaimed(const DomainName& domain) const { in IsDomainClaimed()
181 DomainName target_name = it->probe->target_name(); in OnProbeSuccess()
183 DomainName requested = std::move(it->requested_name); in OnProbeSuccess()
204 DomainName new_name = CreateRetryDomainName(ongoing_it->requested_name, in OnProbeFailure()
211 DomainName requested_name = std::move(ongoing_it->requested_name); in OnProbeFailure()
223 MdnsProbeManagerImpl::FindCompletedProbe(const DomainName& name) const { in FindCompletedProbe()
[all …]
Dmdns_probe_manager_unittest.cc31 MOCK_METHOD2(OnDomainFound, void(const DomainName&, const DomainName&));
45 MockMdnsProbe(DomainName target_name, IPAddress address) in MockMdnsProbe()
59 std::unique_ptr<MdnsProbe> CreateProbe(DomainName name, in CreateProbe()
66 const DomainName& target) { in GetOngoingMockProbeByTarget()
78 StrictMock<MockMdnsProbe>* GetCompletedMockProbe(const DomainName& target) { in GetCompletedMockProbe()
86 bool HasOngoingProbe(const DomainName& target) { in HasOngoingProbe()
90 bool HasCompletedProbe(const DomainName& target) { in HasCompletedProbe()
118 MdnsMessage CreateProbeQueryMessage(DomainName domain, in CreateProbeQueryMessage()
129 void ExpectProbeStopped(const DomainName& name) { in ExpectProbeStopped()
135 StrictMock<MockMdnsProbe>* ExpectProbeOngoing(const DomainName& name) { in ExpectProbeOngoing()
[all …]
/external/openscreen/osp/impl/testing/
Dfake_mdns_responder_adapter.h68 DomainName target_host;
131 const DomainName& service_type) override;
134 const DomainName& service_instance) override;
137 const DomainName& service_instance) override;
139 const DomainName& domain_name) override;
141 const DomainName& domain_name) override;
144 const DomainName& service_type) override;
147 const DomainName& service_instance) override;
150 const DomainName& service_instance) override;
152 const DomainName& domain_name) override;
[all …]
Dfake_mdns_responder_adapter.cc26 ErrorOr<DomainName> full_instance_name = in MakePtrEvent()
27 DomainName::FromLabels(labels.begin(), labels.end()); in MakePtrEvent()
42 ErrorOr<DomainName> full_instance_name = in MakeSrvEvent()
43 DomainName::FromLabels(instance_labels.begin(), instance_labels.end()); in MakeSrvEvent()
47 ErrorOr<DomainName> domain_name = in MakeSrvEvent()
48 DomainName::FromLabels(host_labels.begin(), host_labels.end()); in MakeSrvEvent()
63 ErrorOr<DomainName> domain_name = in MakeTxtEvent()
64 DomainName::FromLabels(labels.begin(), labels.end()); in MakeTxtEvent()
75 ErrorOr<DomainName> domain_name = in MakeAEvent()
76 DomainName::FromLabels(labels.begin(), labels.end()); in MakeAEvent()
[all …]
/external/openscreen/discovery/mdns/testing/
Dmdns_test_util.h23 MdnsRecord GetFakePtrRecord(const DomainName& target,
25 MdnsRecord GetFakeSrvRecord(const DomainName& name,
27 MdnsRecord GetFakeSrvRecord(const DomainName& name,
28 const DomainName& target,
30 MdnsRecord GetFakeTxtRecord(const DomainName& name,
32 MdnsRecord GetFakeARecord(const DomainName& name,
35 const DomainName& name,
Dmdns_test_util.cc22 MdnsRecord GetFakePtrRecord(const DomainName& target, in GetFakePtrRecord()
24 DomainName name(++target.labels().begin(), target.labels().end()); in GetFakePtrRecord()
30 MdnsRecord GetFakeSrvRecord(const DomainName& name, std::chrono::seconds ttl) { in GetFakeSrvRecord()
34 MdnsRecord GetFakeSrvRecord(const DomainName& name, in GetFakeSrvRecord()
35 const DomainName& target, in GetFakeSrvRecord()
42 MdnsRecord GetFakeTxtRecord(const DomainName& name, std::chrono::seconds ttl) { in GetFakeTxtRecord()
48 MdnsRecord GetFakeARecord(const DomainName& name, std::chrono::seconds ttl) { in GetFakeARecord()
54 MdnsRecord GetFakeAAAARecord(const DomainName& name, std::chrono::seconds ttl) { in GetFakeAAAARecord()
/external/openscreen/discovery/dnssd/impl/
Dconversion_layer.cc34 DomainName GetPtrDomainName(const std::string& service, in GetPtrDomainName()
38 return DomainName{std::move(labels)}; in GetPtrDomainName()
41 DomainName GetInstanceDomainName(const std::string& instance, in GetInstanceDomainName()
47 return DomainName{std::move(labels)}; in GetInstanceDomainName()
50 inline DomainName GetInstanceDomainName(const InstanceKey& key) { in GetInstanceDomainName()
56 const DomainName& domain) { in CreatePtrRecord()
65 const DomainName& domain) { in CreateSrvRecord()
73 const DomainName& domain) { in CreateARecords()
87 const DomainName& domain) { in CreateAAAARecords()
102 const DomainName& domain) { in CreateTxtRecord()
[all …]
Ddns_data_graph.cc17 const DomainName& domain, in CreateEndpoint()
59 void StartTracking(const DomainName& domain,
62 void StopTracking(const DomainName& domain,
67 const DomainName& name) const override;
76 bool IsTracked(const DomainName& name) const override { in IsTracked()
91 Node(DomainName name, DnsDataGraphImpl* graph);
115 const DomainName& name() const { return name_; } in name()
128 void ApplyChildChange(DomainName child_name, RecordChangedEvent event);
136 const DomainName name_;
171 std::vector<DomainName> domains_changed;
[all …]
Ddns_data_graph.h89 using DomainChangeCallback = std::function<void(DomainName)>;
95 virtual void StartTracking(const DomainName& domain,
97 virtual void StopTracking(const DomainName& domain,
106 const DomainName& name) const = 0;
128 virtual bool IsTracked(const DomainName& name) const = 0;
/external/openscreen/discovery/mdns/public/
Dmdns_service.h23 class DomainName; variable
46 virtual void StartQuery(const DomainName& name,
53 virtual void StopQuery(const DomainName& name,
61 virtual void ReinitializeQueries(const DomainName& name) = 0;
67 DomainName requested_name,
/external/openscreen/osp/impl/
Dmdns_responder_service.h100 DomainName domain_name;
118 DomainName domain_name;
126 using InstanceNameSet = std::set<DomainName, DomainNameComparator>;
134 const DomainName& domain_name);
147 const DomainName& domain_name,
156 HostInfo* AddOrGetHostInfo(UdpSocket* socket, const DomainName& domain_name);
157 HostInfo* GetHostInfo(UdpSocket* socket, const DomainName& domain_name);
183 std::map<DomainName, std::unique_ptr<ServiceInstance>, DomainNameComparator>

123