Lines Matching full:resolver
126 ProxyResolverV8WithMockBindings resolver;
127 int result = resolver.SetPacScriptFromDisk("direct.js");
132 result = resolver.GetProxyForURL(kQueryUrl, &proxy_info, NULL, NULL,
138 EXPECT_EQ(0U, resolver.mock_js_bindings()->alerts.size());
139 EXPECT_EQ(0U, resolver.mock_js_bindings()->errors.size());
148 ProxyResolverV8WithMockBindings resolver;
149 int result = resolver.SetPacScriptFromDisk("return_empty_string.js");
153 result = resolver.GetProxyForURL(kQueryUrl, &proxy_info, NULL, NULL,
159 EXPECT_EQ(0U, resolver.mock_js_bindings()->alerts.size());
160 EXPECT_EQ(0U, resolver.mock_js_bindings()->errors.size());
164 ProxyResolverV8WithMockBindings resolver;
165 int result = resolver.SetPacScriptFromDisk("passthrough.js");
173 result = resolver.GetProxyForURL(GURL("http://query.com/path"),
181 int result = resolver.GetProxyForURL(GURL("ftp://query.com:90/path"),
190 EXPECT_EQ(0U, resolver.mock_js_bindings()->alerts.size());
191 EXPECT_EQ(0U, resolver.mock_js_bindings()->errors.size());
199 resolver.PurgeMemory();
216 ProxyResolverV8WithMockBindings resolver;
217 int result = resolver.SetPacScriptFromDisk(filenames[i]);
221 result = resolver.GetProxyForURL(kQueryUrl, &proxy_info, NULL, NULL,
226 MockJSBindings* bindings = resolver.mock_js_bindings();
237 ProxyResolverV8WithMockBindings resolver;
238 int result = resolver.SetPacScriptFromDisk("no_entrypoint.js");
242 result = resolver.GetProxyForURL(kQueryUrl, &proxy_info, NULL, NULL,
250 ProxyResolverV8WithMockBindings resolver;
251 int result = resolver.SetPacScriptFromDisk("missing_close_brace.js");
255 result = resolver.GetProxyForURL(kQueryUrl, &proxy_info, NULL, NULL,
260 MockJSBindings* bindings = resolver.mock_js_bindings();
273 ProxyResolverV8WithMockBindings resolver;
274 int result = resolver.SetPacScriptFromDisk("side_effects.js");
279 result = resolver.GetProxyForURL(kQueryUrl, &proxy_info, NULL, NULL,
288 result = resolver.SetPacScriptFromDisk("side_effects.js");
293 result = resolver.GetProxyForURL(kQueryUrl, &proxy_info, NULL, NULL,
303 ProxyResolverV8WithMockBindings resolver;
304 int result = resolver.SetPacScriptFromDisk("unhandled_exception.js");
308 result = resolver.GetProxyForURL(kQueryUrl, &proxy_info, NULL, NULL,
313 MockJSBindings* bindings = resolver.mock_js_bindings();
322 ProxyResolverV8WithMockBindings resolver;
323 int result = resolver.SetPacScriptFromDisk("return_unicode.js");
327 result = resolver.GetProxyForURL(kQueryUrl, &proxy_info, NULL, NULL,
337 ProxyResolverV8WithMockBindings resolver;
338 int result = resolver.SetPacScriptFromDisk("pac_library_unittest.js");
342 result = resolver.GetProxyForURL(kQueryUrl, &proxy_info, NULL, NULL,
350 EXPECT_EQ(0U, resolver.mock_js_bindings()->alerts.size());
351 EXPECT_EQ(0U, resolver.mock_js_bindings()->errors.size());
356 ProxyResolverV8WithMockBindings resolver;
361 int result = resolver.GetProxyForURL(kQueryUrl, &proxy_info, NULL, NULL,
366 result = resolver.SetPacScriptFromDisk("direct.js");
370 result = resolver.GetProxyForURL(kQueryUrl, &proxy_info, NULL, NULL,
375 resolver.SetPacScript(
379 result = resolver.GetProxyForURL(kQueryUrl, &proxy_info, NULL, NULL,
384 result = resolver.SetPacScriptFromDisk("direct.js");
386 result = resolver.GetProxyForURL(kQueryUrl, &proxy_info, NULL, NULL,
390 EXPECT_EQ(0U, resolver.mock_js_bindings()->alerts.size());
391 EXPECT_EQ(0U, resolver.mock_js_bindings()->errors.size());
396 ProxyResolverV8WithMockBindings resolver;
397 MockJSBindings* bindings = resolver.mock_js_bindings();
399 int result = resolver.SetPacScriptFromDisk("bindings.js");
403 result = resolver.GetProxyForURL(kQueryUrl, &proxy_info, NULL, NULL,
409 EXPECT_EQ(0U, resolver.mock_js_bindings()->errors.size());
440 ProxyResolverV8WithMockBindings resolver;
442 int result = resolver.SetPacScriptFromDisk("binding_from_global.js");
445 MockJSBindings* bindings = resolver.mock_js_bindings();
451 result = resolver.GetProxyForURL(kQueryUrl, &proxy_info, NULL, NULL,
471 ProxyResolverV8WithMockBindings resolver;
472 int result = resolver.SetPacScriptFromDisk("ends_with_comment.js");
477 result = resolver.GetProxyForURL(kQueryUrl, &proxy_info, NULL, NULL,
490 ProxyResolverV8WithMockBindings resolver;
491 int result = resolver.SetPacScriptFromDisk(
497 result = resolver.GetProxyForURL(kQueryUrl, &proxy_info, NULL, NULL,
510 ProxyResolverV8WithMockBindings resolver;
511 int result = resolver.SetPacScriptFromDisk("dns_fail.js");
515 result = resolver.GetProxyForURL(kQueryUrl, &proxy_info, NULL, NULL,
524 ProxyResolverV8WithMockBindings resolver;
525 int result = resolver.SetPacScriptFromDisk("international_domain_names.js");
530 result = resolver.GetProxyForURL(kQueryUrl, &proxy_info, NULL, NULL,
538 MockJSBindings* bindings = resolver.mock_js_bindings();