/third_party/cares/test/ |
D | ares-test-parse-ptr.cc | 15 .add_answer(new DNSPtrRR("64.48.32.16.in-addr.arpa", 100, "other.com")); in TEST_F() 33 .add_answer(new DNSCnameRR("64.48.32.16.in-addr.arpa", 50, "64.48.32.8.in-addr.arpa")) in TEST_F() 34 .add_answer(new DNSPtrRR("64.48.32.8.in-addr.arpa", 100, "other.com")); in TEST_F() 67 .add_answer(new DNSMalformedCnameRR("64.48.32.16.in-addr.arpa", 50, "64.48.32.8.in-addr.arpa")) in TEST_F() 68 .add_answer(new DNSPtrRR("64.48.32.8.in-addr.arpa", 100, "other.com")); in TEST_F() 82 .add_answer(new DNSPtrRR("64.48.32.16.in-addr.arpa", 100, "main.com")) in TEST_F() 83 .add_answer(new DNSPtrRR("64.48.32.16.in-addr.arpa", 100, "other1.com")) in TEST_F() 84 .add_answer(new DNSPtrRR("64.48.32.16.in-addr.arpa", 100, "other2.com")) in TEST_F() 85 .add_answer(new DNSPtrRR("64.48.32.16.in-addr.arpa", 100, "other3.com")) in TEST_F() 86 .add_answer(new DNSPtrRR("64.48.32.16.in-addr.arpa", 100, "other4.com")) in TEST_F() [all …]
|
D | ares-test-parse-ns.cc | 14 .add_answer(new DNSNsRR("example.com", 100, "ns.example.com")); in TEST_F() 30 .add_answer(new DNSNsRR("google.com", 59, "ns1.google.com")) in TEST_F() 31 .add_answer(new DNSNsRR("google.com", 59, "ns2.google.com")) in TEST_F() 32 .add_answer(new DNSNsRR("google.com", 59, "ns3.google.com")) in TEST_F() 33 .add_answer(new DNSNsRR("google.com", 59, "ns4.google.com")) in TEST_F() 53 .add_answer(new DNSNsRR("example.com", 100, "ns.example.com")); in TEST_F() 82 pkt.add_answer(new DNSMxRR("example.com", 100, 100, "mx1.example.com")); in TEST_F() 86 pkt.add_answer(new DNSNsRR("example.com", 100, "ns.example.com")); in TEST_F() 92 pkt.add_answer(new DNSNsRR("example.com", 100, "ns.example.com")); in TEST_F() 105 .add_answer(new DNSCnameRR("example.com", 300, "c.example.com")) in TEST_F() [all …]
|
D | ares-test-parse-a.cc | 14 .add_answer(new DNSARR("example.com", 0x01020304, {2,3,4,5})) in TEST_F() 15 .add_answer(new DNSAaaaRR("example.com", 0x01020304, {0,0,0,0,0,0,0,0,0,0,0,0,2,3,4,5})); in TEST_F() 133 pkt.add_answer(new DNSCnameRR("example.com", 200, "c.example.com")); in TEST_F() 150 .add_answer(new DNSARR("mit.edu", 52, {18,7,22,69})) in TEST_F() 171 .add_answer(new DNSCnameRR("mit.edu", 52, "other.mit.edu")); in TEST_F() 190 .add_answer(new DNSCnameRR("query.example.com", 200, "redirect.query.example.com")) in TEST_F() 191 .add_answer(new DNSARR("redirect.query.example.com", 300, {129,97,123,22})) in TEST_F() 222 .add_answer(new DNSCnameRR("c1.localhost", 604800, "c2.localhost")) in TEST_F() 223 .add_answer(new DNSCnameRR("c2.localhost", 604800, "c3.localhost")) in TEST_F() 224 .add_answer(new DNSCnameRR("c3.localhost", 604800, "c4.localhost")) in TEST_F() [all …]
|
D | ares-test-parse-srv.cc | 14 .add_answer(new DNSSrvRR("example.com", 100, 10, 20, 30, "srv.example.com")) in TEST_F() 15 .add_answer(new DNSSrvRR("example.com", 100, 11, 21, 31, "srv2.example.com")); in TEST_F() 42 .add_answer(new DNSSrvRR("example.abc.def.com", 180, 0, 10, 8160, "example.abc.def.com")) in TEST_F() 100 .add_answer(new DNSSrvRR("srv.example.com", 300, 0, 5, 6789, "a1.srv.example.com")) in TEST_F() 101 .add_answer(new DNSSrvRR("srv.example.com", 300, 0, 5, 4567, "a2.srv.example.com")) in TEST_F() 102 .add_answer(new DNSSrvRR("srv.example.com", 300, 0, 5, 5678, "a3.srv.example.com")) in TEST_F() 146 .add_answer(new DNSCnameRR("example.abc.def.com", 300, "cname.abc.def.com")) in TEST_F() 147 .add_answer(new DNSSrvRR("cname.abc.def.com", 300, 0, 10, 1234, "srv.abc.def.com")) in TEST_F() 174 .add_answer(new DNSCnameRR("query.example.com", 300, "srv.example.com")) in TEST_F() 175 .add_answer(new DNSSrvRR("srv.example.com", 300, 0, 5, 6789, "a1.srv.example.com")) in TEST_F() [all …]
|
D | ares-test-parse-soa-any.cc | 14 .add_answer(new DNSARR("example.com", 0x01020304, {2,3,4,5})) in TEST_F() 15 .add_answer(new DNSMxRR("example.com", 100, 100, "mx1.example.com")) in TEST_F() 16 .add_answer(new DNSMxRR("example.com", 100, 200, "mx2.example.com")) in TEST_F() 17 .add_answer(new DNSSoaRR("example.com", 100, in TEST_F() 39 .add_answer(new DNSSoaRR("example.com", 100, in TEST_F() 70 pkt.add_answer(new DNSMxRR("example.com", 100, 100, "mx1.example.com")); in TEST_F() 74 pkt.add_answer(new DNSSoaRR("example.com", 100, in TEST_F() 82 pkt.add_answer(new DNSSoaRR("example.com", 100, in TEST_F() 97 .add_answer(new DNSSoaRR("example.com", 100, in TEST_F()
|
D | ares-test-parse-aaaa.cc | 14 .add_answer(new DNSAaaaRR("example.com", 100, in TEST_F() 17 .add_answer(new DNSARR("example.com", 0x01020304, {2,3,4,5})); in TEST_F() 44 .add_answer(new DNSCnameRR("example.com", 50, "c.example.com")) in TEST_F() 45 .add_answer(new DNSAaaaRR("c.example.com", 100, in TEST_F() 89 pkt.add_answer(new DNSCnameRR("example.com", 200, "c.example.com")); in TEST_F() 100 .add_answer(new DNSAaaaRR("example.com", 100, in TEST_F() 138 pkt.add_answer(new DNSMxRR("example.com", 100, 100, "mx1.example.com")); in TEST_F() 144 pkt.add_answer(new DNSAaaaRR("example.com", 100, in TEST_F() 154 pkt.add_answer(new DNSAaaaRR("example.com", 100, in TEST_F() 173 .add_answer(new DNSCnameRR("example.com", 300, "c.example.com")) in TEST_F() [all …]
|
D | ares-test-parse-naptr.cc | 14 .add_answer(new DNSNaptrRR("example.com", 100, in TEST_F() 16 .add_answer(new DNSNaptrRR("example.com", 0x0010, in TEST_F() 47 .add_answer(new DNSNaptrRR("example.com", 100, in TEST_F() 77 pkt.add_answer(new DNSMxRR("example.com", 100, 100, "mx1.example.com")); in TEST_F() 82 pkt.add_answer(new DNSNaptrRR("example.com", 100, in TEST_F() 89 pkt.add_answer(new DNSNaptrRR("example.com", 100, in TEST_F() 133 .add_answer(new DNSNaptrRR("example.com", 100, in TEST_F() 135 .add_answer(new DNSNaptrRR("example.com", 0x0010, in TEST_F()
|
D | ares-test-parse-mx.cc | 14 .add_answer(new DNSMxRR("example.com", 100, 100, "mx1.example.com")) in TEST_F() 15 .add_answer(new DNSMxRR("example.com", 100, 200, "mx2.example.com")); in TEST_F() 69 .add_answer(new DNSMxRR("example.com", 100, 100, "mx1.example.com")); in TEST_F() 101 pkt.add_answer(new DNSSrvRR("example.abc.def.com", 180, 0, 10, 8160, "example.abc.def.com")); in TEST_F() 106 pkt.add_answer(new DNSMxRR("example.com", 100, 100, "mx1.example.com")); in TEST_F() 113 pkt.add_answer(new DNSMxRR("example.com", 100, 100, "mx1.example.com")); in TEST_F() 128 .add_answer(new DNSCnameRR("example.com", 300, "c.example.com")) in TEST_F() 129 .add_answer(new DNSMxRR("c.example.com", 100, 100, "mx1.example.com")); in TEST_F()
|
D | ares-test-parse-txt.cc | 17 .add_answer(new DNSTxtRR("example.com", 100, {expected1})) in TEST_F() 18 .add_answer(new DNSTxtRR("example.com", 100, {expected2a, expected2b})); in TEST_F() 48 .add_answer(new DNSTxtRR("example.com", 100, {expected1})) in TEST_F() 49 .add_answer(new DNSTxtRR("example.com", 100, {expected2a, expected2b})); in TEST_F() 194 .add_answer(new DNSTxtRR("example.com", 100, {expected1})) in TEST_F() 195 .add_answer(new DNSTxtRR("example.com", 100, {expected1})) in TEST_F() 196 .add_answer(new DNSTxtRR("example.com", 100, {expected2a, expected2b})); in TEST_F() 233 pkt.add_answer(new DNSTxtRR("example.com", 100, {expected1})); in TEST_F() 250 .add_answer(new DNSCnameRR("example.com", 300, "c.example.com")) in TEST_F() 251 .add_answer(new DNSTxtRR("c.example.com", 100, {expected1})) in TEST_F() [all …]
|
D | ares-test-parse-soa.cc | 14 .add_answer(new DNSSoaRR("example.com", 100, in TEST_F() 36 .add_answer(new DNSSoaRR("example.com", 100, in TEST_F() 67 pkt.add_answer(new DNSMxRR("example.com", 100, 100, "mx1.example.com")); in TEST_F() 71 pkt.add_answer(new DNSSoaRR("example.com", 100, in TEST_F() 79 pkt.add_answer(new DNSSoaRR("example.com", 100, in TEST_F() 94 .add_answer(new DNSSoaRR("example.com", 100, in TEST_F()
|
D | ares-test-mock.cc | 58 .add_answer(new DNSARR("www.google.com", 100, {2, 3, 4, 5})); in TEST_P() 64 .add_answer(new DNSARR("www.example.com", 100, {1, 2, 3, 4})); in TEST_P() 97 .add_answer(new DNSARR("www.google.com", 100, {1, 2, 3, 4})); in TEST_P() 122 .add_answer(new DNSARR("www.google.com", 100, {2, 3, 4, 5})); in TEST_P() 167 .add_answer(new DNSARR("www.google.com", 100, {2, 3, 4, 5})); in TEST_P() 315 .add_answer(new DNSARR("www.google.com", 100, {2, 3, 4, 5})); in TEST_P() 403 .add_answer(new DNSARR("www.google.com", 100, {1, 2, 3, 4})); in TEST_P() 430 .add_answer(new DNSARR("www.third.gov", 0x0200, {2, 3, 4, 5})); in TEST_P() 458 .add_answer(new DNSARR("www.third.gov", 0x0200, {2, 3, 4, 5})); in TEST_P() 494 .add_answer(new DNSARR("www", 0x0200, {2, 3, 4, 5})); in TEST_P() [all …]
|
D | ares-test-mock-ai.cc | 65 .add_answer(new DNSARR("www.google.com", 100, {2, 3, 4, 5})); in TEST_P() 71 .add_answer(new DNSARR("www.example.com", 100, {1, 2, 3, 4})); in TEST_P() 110 .add_answer(new DNSARR("www.google.com", 100, {1, 2, 3, 4})); in TEST_P() 265 .add_answer(new DNSARR("www.google.com", 100, {2, 3, 4, 5})); in TEST_P() 360 .add_answer(new DNSAaaaRR("example.com", 100, in TEST_P() 381 .add_answer(new DNSARR("example.com", 100, {2, 3, 4, 5})); in TEST_P() 400 .add_answer(new DNSARR("example.com", 100, {2, 3, 4, 5})) in TEST_P() 401 .add_answer(new DNSARR("example.com", 100, {7, 8, 9, 0})); in TEST_P() 421 .add_answer(new DNSAaaaRR("example.com", 100, in TEST_P() 429 .add_answer(new DNSARR("example.com", 100, {2, 3, 4, 5})); in TEST_P() [all …]
|
D | dns-proto-test.cc | 46 pkt.add_answer(new DNSCnameRR("example.com", 0x01020304, "other.com.")); in TEST() 92 pkt.add_answer(new DNSARR("example.com", 0x01020304, addrv4)); in TEST()
|
D | ares-test-parse.cc | 14 .add_answer(new DNSARR(".", 100, {0x02, 0x03, 0x04, 0x05})); in TEST_F()
|
D | dns-proto.h | 196 DNSPacket& add_answer(DNSRR *q) { in add_answer() function
|