/external/openscreen/discovery/mdns/ |
D | mdns_responder_unittest.cc | 32 void CheckSingleNsecRecordType(const MdnsMessage& message, DnsType type) { in CheckSingleNsecRecordType() 111 MOCK_METHOD1(SendMulticast, Error(const MdnsMessage& message)); 113 Error(const MdnsMessage& message, const IPEndpoint& endpoint)); 120 void(const MdnsMessage&, const IPEndpoint&)); 172 void OnMessageReceived(const MdnsMessage& message, const IPEndpoint& src) { in OnMessageReceived() 179 MdnsMessage message(0, MessageType::Query); in QueryForRecordTypeWhenNonePresent() 183 .WillOnce([type](const MdnsMessage& msg) -> Error { in QueryForRecordTypeWhenNonePresent() 193 MdnsMessage CreateMulticastMdnsQuery(DnsType type) { in CreateMulticastMdnsQuery() 196 MdnsMessage message(0, MessageType::Query); in CreateMulticastMdnsQuery() 202 MdnsMessage CreateTypeEnumerationQuery() { in CreateTypeEnumerationQuery() [all …]
|
D | mdns_publisher_unittest.cc | 42 MOCK_METHOD1(SendMulticast, Error(const MdnsMessage& message)); 44 Error(const MdnsMessage& message, const IPEndpoint& endpoint)); 51 void(const MdnsMessage&, const IPEndpoint&)); 93 Error IsAnnounced(const MdnsRecord& original, const MdnsMessage& message) { in IsAnnounced() 111 const MdnsMessage& message) { in IsGoodbyeRecord() 154 .WillOnce([this, &record](const MdnsMessage& message) -> Error { in TestUniqueRecordRegistrationWorkflow() 179 .WillOnce([this, &record2](const MdnsMessage& message) -> Error { in TestUniqueRecordRegistrationWorkflow() 190 .WillOnce([this, &record](const MdnsMessage& message) -> Error { in TestUniqueRecordRegistrationWorkflow() 201 .WillOnce([this, &record2](const MdnsMessage& message) -> Error { in TestUniqueRecordRegistrationWorkflow() 219 .WillOnce([this, &record](const MdnsMessage& message) -> Error { in TestUniqueRecordRegistrationWorkflow() [all …]
|
D | mdns_responder.h | 25 class MdnsMessage; variable 89 const MdnsMessage& message, 99 void SetQuery(const MdnsMessage& message); 131 void OnMessageReceived(const MdnsMessage& message, const IPEndpoint& src); 137 void ProcessMultiPacketTruncatedMessage(const MdnsMessage& message, 148 std::function<void(const MdnsMessage&)> send_response,
|
D | mdns_receiver.h | 18 class MdnsMessage; variable 26 virtual void OnMessageReceived(const MdnsMessage& message) = 0; 40 std::function<void(const MdnsMessage&, const IPEndpoint& src)> callback); 59 std::function<void(const MdnsMessage&, const IPEndpoint& src)>
|
D | mdns_responder.cc | 102 MdnsMessage* message, in AddAdditionalRecords() 119 MdnsMessage* message, in AddResponseRecords() 133 void ApplyQueryResults(MdnsMessage* message, in ApplyQueryResults() 254 MdnsMessage* message, in ApplyServiceTypeEnumerationResults() 281 bool IsMultiPacketTruncatedQueryMessage(const MdnsMessage& message) { in IsMultiPacketTruncatedQueryMessage() 293 const MdnsMessage& message, in TruncatedQuery() 309 void MdnsResponder::TruncatedQuery::SetQuery(const MdnsMessage& message) { in SetQuery() 391 auto func = [this](const MdnsMessage& message, const IPEndpoint& src) { in MdnsResponder() 401 void MdnsResponder::OnMessageReceived(const MdnsMessage& message, in OnMessageReceived() 441 const MdnsMessage& message, in ProcessMultiPacketTruncatedMessage() [all …]
|
D | mdns_probe_unittest.cc | 32 MOCK_METHOD1(SendMulticast, Error(const MdnsMessage& message)); 34 Error(const MdnsMessage& message, const IPEndpoint& endpoint)); 63 MdnsMessage CreateMessage(const DomainName& domain) { in CreateMessage() 64 MdnsMessage message(0, MessageType::Response); in CreateMessage() 73 void OnMessageReceived(const MdnsMessage& message) { in OnMessageReceived()
|
D | mdns_sender.h | 15 class MdnsMessage; variable 29 virtual Error SendMulticast(const MdnsMessage& message); 30 virtual Error SendMessage(const MdnsMessage& message,
|
D | mdns_probe_manager_unittest.cc | 38 MOCK_METHOD1(SendMulticast, Error(const MdnsMessage& message)); 40 Error(const MdnsMessage& message, const IPEndpoint& endpoint)); 49 MOCK_METHOD1(OnMessageReceived, void(const MdnsMessage&)); 118 MdnsMessage CreateProbeQueryMessage(DomainName domain, in CreateProbeQueryMessage() 120 MdnsMessage message(CreateMessageId(), MessageType::Query); in CreateProbeQueryMessage() 235 const MdnsMessage query = CreateProbeQueryMessage(name_, address_c_); in TEST_F() 242 const MdnsMessage query = CreateProbeQueryMessage(name_, address_c_); in TEST_F() 244 .WillOnce([this](const MdnsMessage& message, in TEST_F() 260 MdnsMessage query = CreateProbeQueryMessage(name_, address_a_); in TEST_F() 285 MdnsMessage query = CreateProbeQueryMessage(name_, address_b_); in TEST_F()
|
D | mdns_receiver_unittest.cc | 26 MOCK_METHOD(void, OnMessageReceived, (const MdnsMessage&)); 52 [&delegate](const MdnsMessage& message, const IPEndpoint& endpoint) { in TEST() 59 MdnsMessage message(1, MessageType::Query); in TEST() 112 MdnsMessage message(1, MessageType::Response); in TEST()
|
D | mdns_records.cc | 751 ErrorOr<MdnsMessage> MdnsMessage::TryCreate( in TryCreate() 765 return MdnsMessage(id, type, std::move(questions), std::move(answers), in TryCreate() 770 MdnsMessage::MdnsMessage(uint16_t id, MessageType type) in MdnsMessage() function in openscreen::discovery::MdnsMessage 773 MdnsMessage::MdnsMessage(uint16_t id, in MdnsMessage() function in openscreen::discovery::MdnsMessage 804 bool MdnsMessage::operator==(const MdnsMessage& rhs) const { in operator ==() 811 bool MdnsMessage::operator!=(const MdnsMessage& rhs) const { in operator !=() 815 bool MdnsMessage::IsProbeQuery() const { in IsProbeQuery() 837 size_t MdnsMessage::MaxWireSize() const { in MaxWireSize() 841 void MdnsMessage::AddQuestion(MdnsQuestion question) { in AddQuestion() 847 void MdnsMessage::AddAnswer(MdnsRecord record) { in AddAnswer() [all …]
|
D | mdns_reader_unittest.cc | 34 void TestReadEntrySucceeds<MdnsMessage>(const uint8_t* data, in TestReadEntrySucceeds() 36 const MdnsMessage& expected) { in TestReadEntrySucceeds() 38 const ErrorOr<MdnsMessage> message = reader.Read(); in TestReadEntrySucceeds() 56 void TestReadEntryFails<MdnsMessage>(const uint8_t* data, size_t size) { in TestReadEntryFails() 59 const ErrorOr<MdnsMessage> message = reader.Read(); in TestReadEntryFails() 677 MdnsMessage message(1, MessageType::Response, std::vector<MdnsQuestion>{}, in TEST() 701 TestReadEntryFails<MdnsMessage>(kInvalidMessage, sizeof(kInvalidMessage)); in TEST() 723 TestReadEntryFails<MdnsMessage>(kInvalidMessage, sizeof(kInvalidMessage)); in TEST()
|
D | mdns_probe_manager.h | 47 virtual void RespondToProbeQuery(const MdnsMessage& message, 88 void RespondToProbeQuery(const MdnsMessage& message, 95 void TiebreakSimultaneousProbes(const MdnsMessage& message);
|
D | mdns_sender.cc | 23 Error MdnsSender::SendMulticast(const MdnsMessage& message) { in SendMulticast() 29 Error MdnsSender::SendMessage(const MdnsMessage& message, in SendMessage()
|
D | mdns_sender_unittest.cc | 99 MdnsMessage query_message_; 100 MdnsMessage response_message_; 141 MdnsMessage big_message_(1, MessageType::Query); in TEST_F()
|
D | mdns_records.h | 568 class MdnsMessage { 570 static ErrorOr<MdnsMessage> TryCreate( 578 MdnsMessage() = default; 581 MdnsMessage(uint16_t id, MessageType type); 582 MdnsMessage(uint16_t id, 589 bool operator==(const MdnsMessage& other) const; 590 bool operator!=(const MdnsMessage& other) const; 624 friend H AbslHashValue(H h, const MdnsMessage& message) { in AbslHashValue()
|
D | mdns_records_unittest.cc | 649 MdnsMessage message1; in TEST() 670 MdnsMessage message2(123, MessageType::Response); in TEST() 695 MdnsMessage message3( in TEST() 725 MdnsMessage message1( in TEST() 729 MdnsMessage message2( in TEST() 733 MdnsMessage message3( in TEST() 737 MdnsMessage message4( in TEST() 741 MdnsMessage message5(123, MessageType::Response, std::vector<MdnsQuestion>{}, in TEST() 745 MdnsMessage message6( in TEST() 749 MdnsMessage message7( in TEST() [all …]
|
D | mdns_receiver.cc | 28 std::function<void(const MdnsMessage&, const IPEndpoint&)> callback) { in SetQueryCallback() argument 69 const ErrorOr<MdnsMessage> message = reader.Read(); in OnRead()
|
D | mdns_probe.cc | 66 MdnsMessage probe_query(CreateMessageId(), MessageType::Query); in ProbeOnce() 99 void MdnsProbeImpl::OnMessageReceived(const MdnsMessage& message) { in OnMessageReceived()
|
D | mdns_probe_manager.cc | 95 void MdnsProbeManagerImpl::RespondToProbeQuery(const MdnsMessage& message, in RespondToProbeQuery() 100 MdnsMessage send_message(CreateMessageId(), MessageType::Response); in RespondToProbeQuery() 127 const MdnsMessage& message) { in TiebreakSimultaneousProbes()
|
D | mdns_reader.cc | 325 ErrorOr<MdnsMessage> MdnsReader::Read() { in Read() 326 MdnsMessage out; in Read() 341 ErrorOr<MdnsMessage> message = MdnsMessage::TryCreate( in Read()
|
D | mdns_writer.h | 45 bool Write(const MdnsMessage& message);
|
/external/webrtc/p2p/base/ |
D | mdns_message_unittest.cc | 259 bool ReadMdnsMessageTestCase(MdnsMessage* msg, in ReadMdnsMessageTestCase() 266 void WriteMdnsMessageAndCompareWithTestCast(MdnsMessage* msg, in WriteMdnsMessageAndCompareWithTestCast() 280 bool GetQueriedNames(MdnsMessage* msg, std::set<std::string>* names) { in GetQueriedNames() 290 bool GetResolution(MdnsMessage* msg, in GetResolution() 308 MdnsMessage msg; in TEST() 328 MdnsMessage msg; in TEST() 350 MdnsMessage msg; in TEST() 368 MdnsMessage msg; in TEST() 389 MdnsMessage msg; in TEST() 410 MdnsMessage msg; in TEST() [all …]
|
D | mdns_message.cc | 314 MdnsMessage::MdnsMessage() = default; 315 MdnsMessage::~MdnsMessage() = default; 317 bool MdnsMessage::Read(MessageBufferReader* buf) { in Read() 353 bool MdnsMessage::Write(rtc::ByteBufferWriter* buf) const { in Write() 378 bool MdnsMessage::ShouldUnicastResponse() const { in ShouldUnicastResponse() 386 void MdnsMessage::AddQuestion(const MdnsQuestion& question) { in AddQuestion() 391 void MdnsMessage::AddAnswerRecord(const MdnsResourceRecord& answer) { in AddAnswerRecord()
|
D | mdns_message.h | 147 class MdnsMessage final { 152 MdnsMessage(); 153 ~MdnsMessage();
|
/external/webrtc/test/fuzzers/ |
D | mdns_parser_fuzzer.cc | 23 auto mdns_msg = std::make_unique<MdnsMessage>(); in FuzzOneInput()
|