Home
last modified time | relevance | path

Searched refs:DnsClass (Results 1 – 25 of 35) sorted by relevance

12

/external/openscreen/discovery/mdns/
Dmdns_querier_unittest.cc62 DnsClass::kIN,
68 DnsClass::kIN,
74 DnsClass::kIN,
80 DnsClass::kIN,
86 DnsClass::kIN,
92 DnsClass::kIN,
99 DnsClass::kIN,
188 DnsClass::kIN, &callback); in TEST_F()
213 DnsClass::kANY, &callback); in TEST_F()
232 querier->StartQuery(DomainName{"poking", "local"}, DnsType::kA, DnsClass::kIN, in TEST_F()
[all …]
Dmdns_records_unittest.cc520 EXPECT_EQ(record1.dns_class(), static_cast<DnsClass>(0)); in TEST()
527 DnsClass::kIN, RecordType::kUnique, kTtl, in TEST()
532 EXPECT_EQ(record2.dns_class(), DnsClass::kIN); in TEST()
541 DnsClass::kIN, RecordType::kShared, kTtl, in TEST()
544 DnsClass::kIN, RecordType::kShared, kTtl, in TEST()
547 DnsClass::kIN, RecordType::kShared, kTtl, in TEST()
550 DnsClass::kIN, RecordType::kShared, kTtl, in TEST()
553 DnsClass::kIN, RecordType::kUnique, kTtl, in TEST()
556 DnsClass::kIN, RecordType::kShared, in TEST()
560 DnsClass::kIN, RecordType::kShared, kTtl, in TEST()
[all …]
Dmdns_publisher.cc72 OSP_DCHECK(record.dns_class() != DnsClass::kANY); in RegisterRecord()
99 OSP_DCHECK(record.dns_class() != DnsClass::kANY); in UnregisterRecord()
158 DnsClass clazz) { in HasRecords()
165 DnsClass clazz) { in GetRecords()
174 const DnsClass record_dns_class = announcer->record().dns_class(); in GetRecords()
176 (clazz == DnsClass::kANY || clazz == record_dns_class)) { in GetRecords()
185 std::vector<MdnsRecord::ConstRef> MdnsPublisher::GetPtrRecords(DnsClass clazz) { in GetPtrRecords()
199 const DnsClass record_dns_class = announcer->record().dns_class(); in GetPtrRecords()
200 if ((clazz == DnsClass::kANY || clazz == record_dns_class)) { in GetPtrRecords()
Dmdns_writer_unittest.cc356 DnsClass::kIN, RecordType::kUnique, kTtl, in TEST()
377 DnsClass::kIN, RecordType::kShared, kTtl, in TEST()
384 DomainName{"testing", "local"}, DnsType::kA, DnsClass::kIN, in TEST()
401 DnsClass::kIN, ResponseType::kUnicast), in TEST()
408 DnsClass::kIN, ResponseType::kUnicast)); in TEST()
436 MdnsQuestion question(DomainName{"question"}, DnsType::kPTR, DnsClass::kIN, in TEST()
439 MdnsRecord auth_record(DomainName{"auth"}, DnsType::kTXT, DnsClass::kIN, in TEST()
455 MdnsQuestion question(DomainName{"question"}, DnsType::kPTR, DnsClass::kIN, in TEST()
458 MdnsRecord auth_record(DomainName{"auth"}, DnsType::kTXT, DnsClass::kIN, in TEST()
Dmdns_reader_unittest.cc485 DnsClass::kIN, RecordType::kUnique, kTtl, in TEST()
508 static_cast<DnsType>(5) /*CNAME class*/, DnsClass::kIN, in TEST()
544 DnsClass::kIN, RecordType::kShared, kTtl, in TEST()
548 DnsType::kA, DnsClass::kIN, RecordType::kUnique, in TEST()
595 MdnsQuestion(DomainName{"testing", "local"}, DnsType::kA, DnsClass::kIN, in TEST()
620 DnsClass::kIN, ResponseType::kUnicast)); in TEST()
623 DnsClass::kIN, ResponseType::kMulticast)); in TEST()
671 MdnsRecord record1(DomainName{"record1"}, DnsType::kPTR, DnsClass::kIN, in TEST()
674 MdnsRecord record2(DomainName{"record2"}, DnsType::kA, DnsClass::kIN, in TEST()
Dmdns_querier.h56 DnsClass dns_class,
64 DnsClass dns_class,
76 const DnsClass dns_class;
102 DnsClass dns_class);
Dmdns_publisher_unittest.cc132 auto records = publisher_.GetRecords(domain, type, DnsClass::kIN); in CheckPublishedRecords()
146 auto records = publisher_.GetRecords(domain_, type, DnsClass::kIN); in TestUniqueRecordRegistrationWorkflow()
281 auto records = publisher_.GetRecords(domain_, type, DnsClass::kIN); in TEST_F()
283 records = publisher_.GetRecords(ptr_domain_, type, DnsClass::kIN); in TEST_F()
287 ASSERT_EQ(publisher_.GetPtrRecords(DnsClass::kANY).size(), size_t{0}); in TEST_F()
298 ASSERT_EQ(publisher_.GetPtrRecords(DnsClass::kANY).size(), size_t{1}); in TEST_F()
305 ASSERT_EQ(publisher_.GetPtrRecords(DnsClass::kANY).size(), size_t{1}); in TEST_F()
316 ASSERT_EQ(publisher_.GetPtrRecords(DnsClass::kANY).size(), size_t{2}); in TEST_F()
327 ASSERT_EQ(publisher_.GetPtrRecords(DnsClass::kANY).size(), size_t{1}); in TEST_F()
334 ASSERT_EQ(publisher_.GetPtrRecords(DnsClass::kANY).size(), size_t{1}); in TEST_F()
[all …]
Dmdns_publisher.h174 DnsClass clazz) override;
177 DnsClass clazz) override;
178 std::vector<MdnsRecord::ConstRef> GetPtrRecords(DnsClass clazz) override;
Dmdns_records.h454 DnsClass dns_class,
462 DnsClass dns_class,
484 DnsClass dns_class() const { return dns_class_; } in dns_class()
506 DnsClass dns_class_ = static_cast<DnsClass>(0);
525 DnsClass dns_class,
531 DnsClass dns_class,
540 DnsClass dns_class() const { return dns_class_; } in dns_class()
554 DnsClass dns_class_ = static_cast<DnsClass>(0);
Dmdns_responder.h51 DnsClass clazz) = 0;
57 DnsClass clazz) = 0;
60 virtual std::vector<MdnsRecord::ConstRef> GetPtrRecords(DnsClass clazz) = 0;
Dmdns_responder_unittest.cc77 MOCK_METHOD3(HasRecords, bool(const DomainName&, DnsType, DnsClass));
81 DnsClass clazz) override { in GetRecords()
92 std::vector<MdnsRecord::ConstRef> GetPtrRecords(DnsClass clazz) override { in GetPtrRecords()
144 return MdnsRecord(std::move(name), DnsType::kPTR, DnsClass::kIN, in GetFakePtrRecord()
150 return MdnsRecord(name, DnsType::kSRV, DnsClass::kIN, RecordType::kUnique, in GetFakeSrvRecord()
156 return MdnsRecord(name, DnsType::kTXT, DnsClass::kIN, RecordType::kUnique, in GetFakeTxtRecord()
162 return MdnsRecord(name, DnsType::kA, DnsClass::kIN, RecordType::kUnique, in GetFakeARecord()
168 return MdnsRecord(name, DnsType::kAAAA, DnsClass::kIN, RecordType::kUnique, in GetFakeAAAARecord()
177 MdnsQuestion question(domain_, type, DnsClass::kANY, in QueryForRecordTypeWhenNonePresent()
194 MdnsQuestion question(domain_, type, DnsClass::kANY, in CreateMulticastMdnsQuery()
[all …]
Dmdns_service_impl.h49 DnsClass dns_class,
53 DnsClass dns_class,
Dmdns_receiver_unittest.cc58 DnsClass::kIN, ResponseType::kMulticast); in TEST()
109 MdnsRecord record(DomainName{"testing", "local"}, DnsType::kA, DnsClass::kIN, in TEST()
Dmdns_responder.cc61 DnsClass target_class) { in CreateNsecRecord()
78 DnsClass clazz, in AddRecords()
107 DnsClass clazz, in AddAdditionalRecords()
124 DnsClass clazz, in AddResponseRecords()
138 DnsClass clazz, in ApplyQueryResults()
257 DnsClass clazz) { in ApplyServiceTypeEnumerationResults()
Dmdns_querier.cc243 return Find(name, DnsType::kANY, DnsClass::kANY); in Find()
249 DnsClass dns_class) { in Find()
255 (dns_class == DnsClass::kANY || dns_class == tracker.dns_class())) { in Find()
412 DnsClass dns_class, in StartQuery()
470 DnsClass dns_class, in StopQuery()
587 (pair.second->question().dns_class() == DnsClass::kANY || in ShouldAnswerRecordBeProcessed()
810 (callback_info.dns_class == DnsClass::kANY || in ProcessCallbacks()
850 const bool is_relevant_class = record.dns_class() == DnsClass::kANY || in AddRecord()
Dmdns_sender_unittest.cc41 DnsClass::kIN,
45 DnsClass::kIN,
Dmdns_trackers.h162 DnsClass dns_class() const { return record_.dns_class(); } in dns_class()
227 using RecordKey = std::tuple<DomainName, DnsType, DnsClass>;
/external/openscreen/discovery/mdns/testing/
Dmdns_test_util.cc26 return MdnsRecord(std::move(name), DnsType::kPTR, DnsClass::kIN, in GetFakePtrRecord()
38 return MdnsRecord(name, DnsType::kSRV, DnsClass::kIN, RecordType::kUnique, in GetFakeSrvRecord()
44 return MdnsRecord(name, DnsType::kTXT, DnsClass::kIN, RecordType::kUnique, in GetFakeTxtRecord()
50 return MdnsRecord(name, DnsType::kA, DnsClass::kIN, RecordType::kUnique, ttl, in GetFakeARecord()
56 return MdnsRecord(name, DnsType::kAAAA, DnsClass::kIN, RecordType::kUnique, in GetFakeAAAARecord()
/external/openscreen/discovery/dnssd/impl/
Dconversion_layer.cc60 return MdnsRecord(std::move(outer_domain), DnsType::kPTR, DnsClass::kIN, in CreatePtrRecord()
68 return MdnsRecord(domain, DnsType::kSRV, DnsClass::kIN, RecordType::kUnique, in CreateSrvRecord()
78 records.emplace_back(domain, DnsType::kA, DnsClass::kIN, in CreateARecords()
92 records.emplace_back(domain, DnsType::kAAAA, DnsClass::kIN, in CreateAAAARecords()
104 return MdnsRecord(domain, DnsType::kTXT, DnsClass::kIN, RecordType::kUnique, in CreateTxtRecord()
158 return {GetDomainName(key), DnsType::kANY, DnsClass::kANY}; in GetInstanceQueryInfo()
163 return {std::move(domain), DnsType::kPTR, DnsClass::kANY}; in GetPtrQueryInfo()
Dquerier_impl_unittest.cc42 void(const DomainName&, DnsType, DnsClass, MdnsRecordChangedCallback*));
46 void(const DomainName&, DnsType, DnsClass, MdnsRecordChangedCallback*));
145 StartQuery(_, DnsType::kANY, DnsClass::kANY, _))
232 change.dns_class == DnsClass::kANY && in ValidateRecordChangeResult()
253 StartQuery(_, DnsType::kANY, DnsClass::kANY, _)) in TEST_F()
259 StopQuery(_, DnsType::kANY, DnsClass::kANY, _)) in TEST_F()
279 StopQuery(ptr_domain, DnsType::kANY, DnsClass::kANY, _)) in TEST_F()
282 StopQuery(name, DnsType::kANY, DnsClass::kANY, _)) in TEST_F()
291 StartQuery(_, DnsType::kANY, DnsClass::kANY, _)) in TEST_F()
437 StopQuery(ptr_domain, DnsType::kANY, DnsClass::kANY, _)) in TEST_F()
[all …]
Dconversion_layer_unittest.cc71 EXPECT_EQ(query.dns_class, DnsClass::kANY); in TEST()
86 EXPECT_EQ(query.dns_class, DnsClass::kANY); in TEST()
113 EXPECT_EQ(it->dns_class(), DnsClass::kIN); in TEST()
149 EXPECT_EQ(it->dns_class(), DnsClass::kIN); in TEST()
181 EXPECT_EQ(it->dns_class(), DnsClass::kIN); in TEST()
227 EXPECT_EQ(it->dns_class(), DnsClass::kIN); in TEST()
276 EXPECT_EQ(it->dns_class(), DnsClass::kIN); in TEST()
Dquerier_impl.cc241 DnsClass::kANY, this); in StartQuery()
288 DnsClass::kANY, this); in StopQuery()
310 mdns_querier_->StartQuery(domain, DnsType::kANY, DnsClass::kANY, this); in ReinitializeQueries()
314 mdns_querier_->StopQuery(domain, DnsType::kANY, DnsClass::kANY, this); in ReinitializeQueries()
453 DnsClass::kANY, this, in ApplyRecordChanges()
459 DnsClass::kANY, this, in ApplyRecordChanges()
Dconstants.h21 DnsClass dns_class;
/external/openscreen/discovery/mdns/public/
Dmdns_constants.h342 enum class DnsClass : uint16_t { enum
381 constexpr DnsClass GetDnsClass(uint16_t rrclass) { in GetDnsClass()
382 return static_cast<DnsClass>(rrclass & kClassMask); in GetDnsClass()
393 constexpr uint16_t MakeRecordClass(DnsClass dns_class, RecordType record_type) { in MakeRecordClass()
398 constexpr uint16_t MakeQuestionClass(DnsClass dns_class, in MakeQuestionClass()
Dmdns_service.h48 DnsClass dns_class,
55 DnsClass dns_class,

12