Lines Matching refs:fetcher
960 MockProxyScriptFetcher* fetcher = new MockProxyScriptFetcher; in TEST() local
961 service->SetProxyScriptFetcher(fetcher); in TEST()
972 EXPECT_TRUE(fetcher->has_pending_request()); in TEST()
973 EXPECT_EQ(GURL("http://foopy/proxy.pac"), fetcher->pending_request_url()); in TEST()
993 fetcher->NotifyFetchCompletion(OK, "pac-v1"); in TEST()
1040 MockProxyScriptFetcher* fetcher = new MockProxyScriptFetcher; in TEST() local
1041 service->SetProxyScriptFetcher(fetcher); in TEST()
1052 EXPECT_TRUE(fetcher->has_pending_request()); in TEST()
1053 EXPECT_EQ(GURL("http://foopy/proxy.pac"), fetcher->pending_request_url()); in TEST()
1068 fetcher = new MockProxyScriptFetcher; in TEST()
1069 service->SetProxyScriptFetcher(fetcher); in TEST()
1074 fetcher->NotifyFetchCompletion(OK, "pac-v1"); in TEST()
1098 MockProxyScriptFetcher* fetcher = new MockProxyScriptFetcher; in TEST() local
1099 service->SetProxyScriptFetcher(fetcher); in TEST()
1111 EXPECT_TRUE(fetcher->has_pending_request()); in TEST()
1112 EXPECT_EQ(GURL("http://foopy/proxy.pac"), fetcher->pending_request_url()); in TEST()
1137 fetcher->NotifyFetchCompletion(OK, "pac-v1"); in TEST()
1190 MockProxyScriptFetcher* fetcher = new MockProxyScriptFetcher; in TEST() local
1191 service->SetProxyScriptFetcher(fetcher); in TEST()
1213 EXPECT_TRUE(fetcher->has_pending_request()); in TEST()
1214 EXPECT_EQ(GURL("http://wpad/wpad.dat"), fetcher->pending_request_url()); in TEST()
1215 fetcher->NotifyFetchCompletion(ERR_FAILED, ""); in TEST()
1218 EXPECT_TRUE(fetcher->has_pending_request()); in TEST()
1219 EXPECT_EQ(GURL("http://foopy/proxy.pac"), fetcher->pending_request_url()); in TEST()
1220 fetcher->NotifyFetchCompletion(OK, "custom-pac-script"); in TEST()
1261 MockProxyScriptFetcher* fetcher = new MockProxyScriptFetcher; in TEST() local
1262 service->SetProxyScriptFetcher(fetcher); in TEST()
1283 EXPECT_TRUE(fetcher->has_pending_request()); in TEST()
1284 EXPECT_EQ(GURL("http://wpad/wpad.dat"), fetcher->pending_request_url()); in TEST()
1285 fetcher->NotifyFetchCompletion(OK, "invalid-script-contents"); in TEST()
1294 EXPECT_TRUE(fetcher->has_pending_request()); in TEST()
1295 EXPECT_EQ(GURL("http://foopy/proxy.pac"), fetcher->pending_request_url()); in TEST()
1296 fetcher->NotifyFetchCompletion(OK, "custom-pac-script"); in TEST()
1337 MockProxyScriptFetcher* fetcher = new MockProxyScriptFetcher; in TEST() local
1338 service->SetProxyScriptFetcher(fetcher); in TEST()
1359 EXPECT_TRUE(fetcher->has_pending_request()); in TEST()
1360 EXPECT_EQ(GURL("http://wpad/wpad.dat"), fetcher->pending_request_url()); in TEST()
1361 fetcher->NotifyFetchCompletion(ERR_FAILED, ""); in TEST()
1364 EXPECT_TRUE(fetcher->has_pending_request()); in TEST()
1365 EXPECT_EQ(GURL("http://foopy/proxy.pac"), fetcher->pending_request_url()); in TEST()
1366 fetcher->NotifyFetchCompletion(ERR_FAILED, ""); in TEST()
1395 MockProxyScriptFetcher* fetcher = new MockProxyScriptFetcher; in TEST() local
1396 service->SetProxyScriptFetcher(fetcher); in TEST()
1410 EXPECT_TRUE(fetcher->has_pending_request()); in TEST()
1411 EXPECT_EQ(GURL("http://wpad/wpad.dat"), fetcher->pending_request_url()); in TEST()
1412 fetcher->NotifyFetchCompletion(OK, "auto-detect"); in TEST()
1463 MockProxyScriptFetcher* fetcher = new MockProxyScriptFetcher; in TEST() local
1464 service->SetProxyScriptFetcher(fetcher); in TEST()
1479 EXPECT_TRUE(fetcher->has_pending_request()); in TEST()
1480 EXPECT_EQ(GURL("http://foopy/proxy.pac"), fetcher->pending_request_url()); in TEST()
1603 MockProxyScriptFetcher* fetcher = new MockProxyScriptFetcher; in TEST() local
1604 service->SetProxyScriptFetcher(fetcher); in TEST()
1619 EXPECT_TRUE(fetcher->has_pending_request()); in TEST()
1620 EXPECT_EQ(GURL("http://foopy/proxy.pac"), fetcher->pending_request_url()); in TEST()
1628 fetcher->NotifyFetchCompletion(OK, "pac-v1"); in TEST()
1662 EXPECT_TRUE(fetcher->has_pending_request()); in TEST()
1663 EXPECT_EQ(GURL("http://foopy/proxy.pac"), fetcher->pending_request_url()); in TEST()
1670 fetcher->NotifyFetchCompletion(OK, "pac-v2"); in TEST()