Home
last modified time | relevance | path

Searched refs:TxtRecordRdata (Results 1 – 16 of 16) sorted by relevance

/external/openscreen/discovery/mdns/
Dmdns_records.cc83 return IsGreaterThan<TxtRecordRdata>(lhs, rhs); in IsGreaterThan()
342 ErrorOr<TxtRecordRdata> TxtRecordRdata::TryCreate(std::vector<Entry> texts) { in TryCreate()
359 return TxtRecordRdata(std::move(str_texts), max_wire_size); in TryCreate()
362 TxtRecordRdata::TxtRecordRdata() = default;
364 TxtRecordRdata::TxtRecordRdata(std::vector<Entry> texts) { in TxtRecordRdata() function in openscreen::discovery::TxtRecordRdata
365 ErrorOr<TxtRecordRdata> rdata = TxtRecordRdata::TryCreate(std::move(texts)); in TxtRecordRdata()
369 TxtRecordRdata::TxtRecordRdata(std::vector<std::string> texts, in TxtRecordRdata() function in openscreen::discovery::TxtRecordRdata
373 TxtRecordRdata::TxtRecordRdata(const TxtRecordRdata& other) = default;
375 TxtRecordRdata::TxtRecordRdata(TxtRecordRdata&& other) noexcept = default;
377 TxtRecordRdata& TxtRecordRdata::operator=(const TxtRecordRdata& rhs) = default;
[all …]
Dmdns_records.h268 class TxtRecordRdata {
272 static ErrorOr<TxtRecordRdata> TryCreate(std::vector<Entry> texts);
274 TxtRecordRdata();
275 explicit TxtRecordRdata(std::vector<Entry> texts);
276 TxtRecordRdata(const TxtRecordRdata& other);
277 TxtRecordRdata(TxtRecordRdata&& other) noexcept;
279 TxtRecordRdata& operator=(const TxtRecordRdata& rhs);
280 TxtRecordRdata& operator=(TxtRecordRdata&& rhs);
281 bool operator==(const TxtRecordRdata& rhs) const;
282 bool operator!=(const TxtRecordRdata& rhs) const;
[all …]
Dmdns_reader.cc42 bool MdnsReader::Read(TxtRecordRdata::Entry* out) { in Read()
212 bool MdnsReader::Read(TxtRecordRdata* out) { in Read()
222 std::vector<TxtRecordRdata::Entry> texts; in Read()
224 TxtRecordRdata::Entry entry; in Read()
236 ErrorOr<TxtRecordRdata> rdata = TxtRecordRdata::TryCreate(std::move(texts)); in Read()
384 return Read<TxtRecordRdata>(out); in Read()
Dmdns_reader.h30 bool Read(TxtRecordRdata::Entry* out);
37 bool Read(TxtRecordRdata* out);
Dmdns_writer.h35 bool Write(const TxtRecordRdata& rdata);
Dmdns_records_unittest.cc305 TxtRecordRdata rdata1; in TEST()
309 TxtRecordRdata rdata2 = MakeTxtRecord({"foo=1", "bar=2"}); in TEST()
315 TxtRecordRdata rdata1 = MakeTxtRecord({"foo=1", "bar=2"}); in TEST()
316 TxtRecordRdata rdata2 = MakeTxtRecord({"foo=1", "bar=2"}); in TEST()
317 TxtRecordRdata rdata3 = MakeTxtRecord({"foo=1"}); in TEST()
318 TxtRecordRdata rdata4 = MakeTxtRecord({"E=mc^2", "F=ma"}); in TEST()
Dmdns_reader_unittest.cc360 TxtRecordRdata()); in TEST()
403 TxtRecordRdata entry; in TEST()
Dmdns_writer.cc176 bool MdnsWriter::Write(const TxtRecordRdata& rdata) { in Write()
Dmdns_writer_unittest.cc334 TestWriteEntrySucceeds(TxtRecordRdata(), kExpectedRdata, in TEST()
Dmdns_responder_unittest.cc155 TxtRecordRdata rdata; in GetFakeTxtRecord()
/external/openscreen/discovery/mdns/testing/
Dmdns_test_util.cc14 TxtRecordRdata MakeTxtRecord(std::initializer_list<absl::string_view> strings) { in MakeTxtRecord()
15 std::vector<TxtRecordRdata::Entry> texts; in MakeTxtRecord()
17 texts.push_back(TxtRecordRdata::Entry(string.begin(), string.end())); in MakeTxtRecord()
19 return TxtRecordRdata(std::move(texts)); in MakeTxtRecord()
43 TxtRecordRdata rdata; in GetFakeTxtRecord()
Dmdns_test_util.h20 TxtRecordRdata MakeTxtRecord(std::initializer_list<absl::string_view> strings);
/external/openscreen/discovery/dnssd/impl/
Dconversion_layer_unittest.cc23 TxtRecordRdata txt = MakeTxtRecord({}); in TEST()
30 TxtRecordRdata txt; in TEST()
37 TxtRecordRdata txt = MakeTxtRecord({"name=value"}); in TEST()
53 TxtRecordRdata txt = MakeTxtRecord({"=value"}); in TEST()
59 TxtRecordRdata txt = MakeTxtRecord({"name"}); in TEST()
286 const auto& rdata = absl::get<TxtRecordRdata>(it->rdata()); in TEST()
Ddns_data_graph.cc21 const TxtRecordRdata& txt, in CreateEndpoint()
486 const absl::optional<TxtRecordRdata> txt = in CreateEndpoints()
487 srv_and_txt->GetRdata<TxtRecordRdata>(DnsType::kTXT); in CreateEndpoints()
530 const absl::optional<TxtRecordRdata> txt = in IsValidSrvAndTxtNode()
531 node->GetRdata<TxtRecordRdata>(DnsType::kTXT); in IsValidSrvAndTxtNode()
Dconversion_layer.h29 ErrorOr<DnsSdTxtRecord> CreateFromDnsTxt(const TxtRecordRdata& txt);
Dconversion_layer.cc103 TxtRecordRdata data(endpoint.txt().GetData()); in CreateTxtRecord()
110 ErrorOr<DnsSdTxtRecord> CreateFromDnsTxt(const TxtRecordRdata& txt_data) { in CreateFromDnsTxt()