Lines Matching full:resolver
18 // Create a mock host resolver, with specific hostname to IP mappings.
25 // Create a remapped resolver that uses |resolver_impl|.
26 scoped_ptr<MappedHostResolver> resolver(
34 rv = resolver->Resolve(HostResolver::RequestInfo(
40 EXPECT_TRUE(resolver->AddRuleFromString("map *.google.com baz.com"));
43 rv = resolver->Resolve(HostResolver::RequestInfo(
52 rv = resolver->Resolve(HostResolver::RequestInfo(HostPortPair("foo.com", 77)),
59 EXPECT_TRUE(resolver->AddRuleFromString("Map *.org proxy:99"));
62 rv = resolver->Resolve(HostResolver::RequestInfo
72 // Create a mock host resolver, with specific hostname to IP mappings.
77 // Create a remapped resolver that uses |resolver_impl|.
78 scoped_ptr<MappedHostResolver> resolver(
85 EXPECT_TRUE(resolver->AddRuleFromString("map *.com baz"));
88 EXPECT_TRUE(resolver->AddRuleFromString("EXCLUDE *.google.com"));
91 rv = resolver->Resolve(HostResolver::RequestInfo(
99 rv = resolver->Resolve(HostResolver::RequestInfo(
108 // Create a mock host resolver, with specific hostname to IP mappings.
113 // Create a remapped resolver that uses |resolver_impl|.
114 scoped_ptr<MappedHostResolver> resolver(
121 resolver->SetRulesFromString("map *.com baz , map *.net bar:60");
124 rv = resolver->Resolve(HostResolver::RequestInfo(
132 rv = resolver->Resolve(HostResolver::RequestInfo(
142 scoped_ptr<MappedHostResolver> resolver(new MappedHostResolver(NULL));
144 EXPECT_FALSE(resolver->AddRuleFromString("xyz"));
145 EXPECT_FALSE(resolver->AddRuleFromString(""));
146 EXPECT_FALSE(resolver->AddRuleFromString(" "));
147 EXPECT_FALSE(resolver->AddRuleFromString("EXCLUDE"));
148 EXPECT_FALSE(resolver->AddRuleFromString("EXCLUDE foo bar"));
149 EXPECT_FALSE(resolver->AddRuleFromString("INCLUDE"));
150 EXPECT_FALSE(resolver->AddRuleFromString("INCLUDE x"));
151 EXPECT_FALSE(resolver->AddRuleFromString("INCLUDE x :10"));