Home
last modified time | relevance | path

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

12

/external/openscreen/discovery/mdns/
Dmdns_responder_unittest.cc32 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 …]
Dmdns_publisher_unittest.cc42 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 …]
Dmdns_responder.h25 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,
Dmdns_receiver.h18 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)>
Dmdns_responder.cc102 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 …]
Dmdns_probe_unittest.cc32 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()
Dmdns_sender.h15 class MdnsMessage; variable
29 virtual Error SendMulticast(const MdnsMessage& message);
30 virtual Error SendMessage(const MdnsMessage& message,
Dmdns_probe_manager_unittest.cc38 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()
Dmdns_receiver_unittest.cc26 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()
Dmdns_records.cc751 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 …]
Dmdns_reader_unittest.cc34 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()
Dmdns_probe_manager.h47 virtual void RespondToProbeQuery(const MdnsMessage& message,
88 void RespondToProbeQuery(const MdnsMessage& message,
95 void TiebreakSimultaneousProbes(const MdnsMessage& message);
Dmdns_sender.cc23 Error MdnsSender::SendMulticast(const MdnsMessage& message) { in SendMulticast()
29 Error MdnsSender::SendMessage(const MdnsMessage& message, in SendMessage()
Dmdns_sender_unittest.cc99 MdnsMessage query_message_;
100 MdnsMessage response_message_;
141 MdnsMessage big_message_(1, MessageType::Query); in TEST_F()
Dmdns_records.h568 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()
Dmdns_records_unittest.cc649 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 …]
Dmdns_receiver.cc28 std::function<void(const MdnsMessage&, const IPEndpoint&)> callback) { in SetQueryCallback() argument
69 const ErrorOr<MdnsMessage> message = reader.Read(); in OnRead()
Dmdns_probe.cc66 MdnsMessage probe_query(CreateMessageId(), MessageType::Query); in ProbeOnce()
99 void MdnsProbeImpl::OnMessageReceived(const MdnsMessage& message) { in OnMessageReceived()
Dmdns_probe_manager.cc95 void MdnsProbeManagerImpl::RespondToProbeQuery(const MdnsMessage& message, in RespondToProbeQuery()
100 MdnsMessage send_message(CreateMessageId(), MessageType::Response); in RespondToProbeQuery()
127 const MdnsMessage& message) { in TiebreakSimultaneousProbes()
Dmdns_reader.cc325 ErrorOr<MdnsMessage> MdnsReader::Read() { in Read()
326 MdnsMessage out; in Read()
341 ErrorOr<MdnsMessage> message = MdnsMessage::TryCreate( in Read()
Dmdns_writer.h45 bool Write(const MdnsMessage& message);
/external/webrtc/p2p/base/
Dmdns_message_unittest.cc259 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 …]
Dmdns_message.cc314 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()
Dmdns_message.h147 class MdnsMessage final {
152 MdnsMessage();
153 ~MdnsMessage();
/external/webrtc/test/fuzzers/
Dmdns_parser_fuzzer.cc23 auto mdns_msg = std::make_unique<MdnsMessage>(); in FuzzOneInput()

12