Lines Matching defs:resolver
32 DnsRRResolver resolver;
35 handle = resolver.Resolve("test.imperialviolet.org", 13172, 0,
47 DnsRRResolver resolver;
50 handle = resolver.Resolve("google.com", kDNS_TXT, 0,
63 DnsRRResolver resolver;
66 handle = resolver.Resolve("www.testing.notatld", kDNS_TESTING, 0,
72 ASSERT_EQ(1u, resolver.requests());
73 ASSERT_EQ(0u, resolver.cache_hits());
74 ASSERT_EQ(0u, resolver.inflight_joins());
77 handle = resolver.Resolve("www.testing.notatld", kDNS_TESTING, 0,
83 ASSERT_EQ(2u, resolver.requests());
84 ASSERT_EQ(1u, resolver.cache_hits());
85 ASSERT_EQ(0u, resolver.inflight_joins());
90 handle = resolver.Resolve("www.testing.notatld", kDNS_TESTING, 0,
93 resolver.CancelResolve(handle);
94 ASSERT_EQ(3u, resolver.requests());
95 ASSERT_EQ(2u, resolver.cache_hits());
96 ASSERT_EQ(0u, resolver.inflight_joins());
99 handle = resolver.Resolve("nx.testing.notatld", kDNS_TESTING, 0,
102 resolver.OnIPAddressChanged();
105 ASSERT_EQ(4u, resolver.requests());
106 ASSERT_EQ(2u, resolver.cache_hits());
107 ASSERT_EQ(0u, resolver.inflight_joins());
113 handle = resolver.Resolve("nx.testing.notatld", kDNS_TESTING, 0,
116 handle2 = resolver.Resolve("nx.testing.notatld", kDNS_TESTING, 0,
121 ASSERT_EQ(6u, resolver.requests());
122 ASSERT_EQ(2u, resolver.cache_hits());
123 ASSERT_EQ(1u, resolver.inflight_joins());
127 // This is a DNS packet resulting from querying a recursive resolver for a TXT