Home
last modified time | relevance | path

Searched refs:record2 (Results 1 – 9 of 9) sorted by relevance

/external/openscreen/discovery/mdns/
Dmdns_publisher_unittest.cc139 MdnsRecord record2) { in TestUniqueRecordRegistrationWorkflow() argument
145 ASSERT_EQ(record.dns_type(), record2.dns_type()); in TestUniqueRecordRegistrationWorkflow()
149 ASSERT_NE(record, record2); in TestUniqueRecordRegistrationWorkflow()
171 EXPECT_FALSE(publisher_.UpdateRegisteredRecord(record2, record).ok()); in TestUniqueRecordRegistrationWorkflow()
179 .WillOnce([this, &record2](const MdnsMessage& message) -> Error { in TestUniqueRecordRegistrationWorkflow()
180 return IsAnnounced(record2, message); in TestUniqueRecordRegistrationWorkflow()
182 EXPECT_TRUE(publisher_.UpdateRegisteredRecord(record, record2).ok()); in TestUniqueRecordRegistrationWorkflow()
185 CheckPublishedRecords(domain_, type, {record2}); in TestUniqueRecordRegistrationWorkflow()
196 CheckPublishedRecords(domain_, type, {record, record2}); in TestUniqueRecordRegistrationWorkflow()
201 .WillOnce([this, &record2](const MdnsMessage& message) -> Error { in TestUniqueRecordRegistrationWorkflow()
[all …]
Dmdns_records_unittest.cc526 MdnsRecord record2(DomainName{"hostname", "local"}, DnsType::kPTR, in TEST() local
529 EXPECT_EQ(record2.MaxWireSize(), UINT64_C(41)); in TEST()
530 EXPECT_EQ(record2.name(), (DomainName{"hostname", "local"})); in TEST()
531 EXPECT_EQ(record2.dns_type(), DnsType::kPTR); in TEST()
532 EXPECT_EQ(record2.dns_class(), DnsClass::kIN); in TEST()
533 EXPECT_EQ(record2.record_type(), RecordType::kUnique); in TEST()
534 EXPECT_EQ(record2.ttl(), kTtl); in TEST()
535 EXPECT_EQ(record2.rdata(), in TEST()
543 const MdnsRecord record2(DomainName{"hostname", "local"}, DnsType::kPTR, in TEST() local
571 EXPECT_EQ(record1, record2); in TEST()
[all …]
Dmdns_reader_unittest.cc674 MdnsRecord record2(DomainName{"record2"}, DnsType::kA, DnsClass::kIN, in TEST() local
680 std::vector<MdnsRecord>{record2}); in TEST()
/external/openscreen/discovery/public/
Ddns_sd_service_watcher_unittest.cc286 const DnsSdInstanceEndpoint record2("Instance2", kCastServiceId, in TEST_F() local
291 EXPECT_FALSE(ContainsService(record2)); in TEST_F()
295 EXPECT_FALSE(ContainsService(record2)); in TEST_F()
299 EXPECT_FALSE(ContainsService(record2)); in TEST_F()
301 UpdateNonExistingInstance(record2); in TEST_F()
303 EXPECT_FALSE(ContainsService(record2)); in TEST_F()
305 DeleteNonExistingInstance(record2); in TEST_F()
307 EXPECT_FALSE(ContainsService(record2)); in TEST_F()
309 CreateNewInstance(record2); in TEST_F()
311 EXPECT_TRUE(ContainsService(record2)); in TEST_F()
[all …]
/external/selinux/libsemanage/src/
Ddatabase_join.c185 record2_t *record2 = NULL; in dbase_join_flush() local
207 if (rjtable->split(handle, ptr->data, &record1, &record2) < 0) in dbase_join_flush()
213 if (dtable2->add(handle, dbase2, rkey, record2) < 0) in dbase_join_flush()
218 rtable2->free(record2); in dbase_join_flush()
221 record2 = NULL; in dbase_join_flush()
234 rtable2->free(record2); in dbase_join_flush()
Duser_record.c311 const semanage_user_extra_t * record2, in hidden_def()
323 name = semanage_user_extra_get_name(record2); in hidden_def()
341 if (record2) { in hidden_def()
342 if (semanage_user_extra_clone(handle, record2, &tmp_user->extra) in hidden_def()
Ddatabase_join.h25 const record2_t * record2, record_t ** result);
Duser_internal.h169 const semanage_user_extra_t * record2,
/external/openscreen/discovery/dnssd/impl/
Dpublisher_impl_unittest.cc218 [](const MdnsRecord& record, const MdnsRecord& record2) -> Error { in TEST_F() argument
220 EXPECT_EQ(record2.dns_type(), DnsType::kTXT); in TEST_F()