Home | History | Annotate | Download | only in proxy

Lines Matching full:fetcher

960   MockProxyScriptFetcher* fetcher = new MockProxyScriptFetcher;
961 service->SetProxyScriptFetcher(fetcher);
972 EXPECT_TRUE(fetcher->has_pending_request());
973 EXPECT_EQ(GURL("http://foopy/proxy.pac"), fetcher->pending_request_url());
993 fetcher->NotifyFetchCompletion(OK, "pac-v1");
1040 MockProxyScriptFetcher* fetcher = new MockProxyScriptFetcher;
1041 service->SetProxyScriptFetcher(fetcher);
1052 EXPECT_TRUE(fetcher->has_pending_request());
1053 EXPECT_EQ(GURL("http://foopy/proxy.pac"), fetcher->pending_request_url());
1065 // We now change out the ProxyService's script fetcher. We should restart
1066 // the initialization with the new fetcher.
1068 fetcher = new MockProxyScriptFetcher;
1069 service->SetProxyScriptFetcher(fetcher);
1074 fetcher->NotifyFetchCompletion(OK, "pac-v1");
1098 MockProxyScriptFetcher* fetcher = new MockProxyScriptFetcher;
1099 service->SetProxyScriptFetcher(fetcher);
1111 EXPECT_TRUE(fetcher->has_pending_request());
1112 EXPECT_EQ(GURL("http://foopy/proxy.pac"), fetcher->pending_request_url());
1137 fetcher->NotifyFetchCompletion(OK, "pac-v1");
1190 MockProxyScriptFetcher* fetcher = new MockProxyScriptFetcher;
1191 service->SetProxyScriptFetcher(fetcher);
1213 EXPECT_TRUE(fetcher->has_pending_request());
1214 EXPECT_EQ(GURL("http://wpad/wpad.dat"), fetcher->pending_request_url());
1215 fetcher->NotifyFetchCompletion(ERR_FAILED, "");
1218 EXPECT_TRUE(fetcher->has_pending_request());
1219 EXPECT_EQ(GURL("http://foopy/proxy.pac"), fetcher->pending_request_url());
1220 fetcher->NotifyFetchCompletion(OK, "custom-pac-script");
1261 MockProxyScriptFetcher* fetcher = new MockProxyScriptFetcher;
1262 service->SetProxyScriptFetcher(fetcher);
1283 EXPECT_TRUE(fetcher->has_pending_request());
1284 EXPECT_EQ(GURL("http://wpad/wpad.dat"), fetcher->pending_request_url());
1285 fetcher->NotifyFetchCompletion(OK, "invalid-script-contents");
1294 EXPECT_TRUE(fetcher->has_pending_request());
1295 EXPECT_EQ(GURL("http://foopy/proxy.pac"), fetcher->pending_request_url());
1296 fetcher->NotifyFetchCompletion(OK, "custom-pac-script");
1337 MockProxyScriptFetcher* fetcher = new MockProxyScriptFetcher;
1338 service->SetProxyScriptFetcher(fetcher);
1359 EXPECT_TRUE(fetcher->has_pending_request());
1360 EXPECT_EQ(GURL("http://wpad/wpad.dat"), fetcher->pending_request_url());
1361 fetcher->NotifyFetchCompletion(ERR_FAILED, "");
1364 EXPECT_TRUE(fetcher->has_pending_request());
1365 EXPECT_EQ(GURL("http://foopy/proxy.pac"), fetcher->pending_request_url());
1366 fetcher->NotifyFetchCompletion(ERR_FAILED, "");
1395 MockProxyScriptFetcher* fetcher = new MockProxyScriptFetcher;
1396 service->SetProxyScriptFetcher(fetcher);
1410 EXPECT_TRUE(fetcher->has_pending_request());
1411 EXPECT_EQ(GURL("http://wpad/wpad.dat"), fetcher->pending_request_url());
1412 fetcher->NotifyFetchCompletion(OK, "auto-detect");
1450 // request to the script fetcher. When run under valgrind, should not
1463 MockProxyScriptFetcher* fetcher = new MockProxyScriptFetcher;
1464 service->SetProxyScriptFetcher(fetcher);
1479 EXPECT_TRUE(fetcher->has_pending_request());
1480 EXPECT_EQ(GURL("http://foopy/proxy.pac"), fetcher->pending_request_url());
1603 MockProxyScriptFetcher* fetcher = new MockProxyScriptFetcher;
1604 service->SetProxyScriptFetcher(fetcher);
1619 EXPECT_TRUE(fetcher->has_pending_request());
1620 EXPECT_EQ(GURL("http://foopy/proxy.pac"), fetcher->pending_request_url());
1628 fetcher->NotifyFetchCompletion(OK, "pac-v1");
1662 EXPECT_TRUE(fetcher->has_pending_request());
1663 EXPECT_EQ(GURL("http://foopy/proxy.pac"), fetcher->pending_request_url());
1670 fetcher->NotifyFetchCompletion(OK, "pac-v2");