Home | History | Annotate | Download | only in proxy

Lines Matching defs:fetcher

1071   MockProxyScriptFetcher* fetcher = new MockProxyScriptFetcher;
1072 service->SetProxyScriptFetcher(fetcher);
1083 EXPECT_TRUE(fetcher->has_pending_request());
1084 EXPECT_EQ(GURL("http://foopy/proxy.pac"), fetcher->pending_request_url());
1104 fetcher->NotifyFetchCompletion(OK, "pac-v1");
1150 MockProxyScriptFetcher* fetcher = new MockProxyScriptFetcher;
1151 service->SetProxyScriptFetcher(fetcher);
1162 EXPECT_TRUE(fetcher->has_pending_request());
1163 EXPECT_EQ(GURL("http://foopy/proxy.pac"), fetcher->pending_request_url());
1175 // We now change out the ProxyService's script fetcher. We should restart
1176 // the initialization with the new fetcher.
1178 fetcher = new MockProxyScriptFetcher;
1179 service->SetProxyScriptFetcher(fetcher);
1184 fetcher->NotifyFetchCompletion(OK, "pac-v1");
1207 MockProxyScriptFetcher* fetcher = new MockProxyScriptFetcher;
1208 service->SetProxyScriptFetcher(fetcher);
1220 EXPECT_TRUE(fetcher->has_pending_request());
1221 EXPECT_EQ(GURL("http://foopy/proxy.pac"), fetcher->pending_request_url());
1246 fetcher->NotifyFetchCompletion(OK, "pac-v1");
1293 MockProxyScriptFetcher* fetcher = new MockProxyScriptFetcher;
1294 service->SetProxyScriptFetcher(fetcher);
1316 EXPECT_TRUE(fetcher->has_pending_request());
1317 EXPECT_EQ(GURL("http://wpad/wpad.dat"), fetcher->pending_request_url());
1318 fetcher->NotifyFetchCompletion(ERR_FAILED, "");
1321 EXPECT_TRUE(fetcher->has_pending_request());
1322 EXPECT_EQ(GURL("http://foopy/proxy.pac"), fetcher->pending_request_url());
1323 fetcher->NotifyFetchCompletion(OK, "custom-pac-script");
1364 MockProxyScriptFetcher* fetcher = new MockProxyScriptFetcher;
1365 service->SetProxyScriptFetcher(fetcher);
1386 EXPECT_TRUE(fetcher->has_pending_request());
1387 EXPECT_EQ(GURL("http://wpad/wpad.dat"), fetcher->pending_request_url());
1388 fetcher->NotifyFetchCompletion(OK, "invalid-script-contents");
1397 EXPECT_TRUE(fetcher->has_pending_request());
1398 EXPECT_EQ(GURL("http://foopy/proxy.pac"), fetcher->pending_request_url());
1399 fetcher->NotifyFetchCompletion(OK, "custom-pac-script");
1440 MockProxyScriptFetcher* fetcher = new MockProxyScriptFetcher;
1441 service->SetProxyScriptFetcher(fetcher);
1462 EXPECT_TRUE(fetcher->has_pending_request());
1463 EXPECT_EQ(GURL("http://wpad/wpad.dat"), fetcher->pending_request_url());
1464 fetcher->NotifyFetchCompletion(ERR_FAILED, "");
1467 EXPECT_TRUE(fetcher->has_pending_request());
1468 EXPECT_EQ(GURL("http://foopy/proxy.pac"), fetcher->pending_request_url());
1469 fetcher->NotifyFetchCompletion(ERR_FAILED, "");
1498 MockProxyScriptFetcher* fetcher = new MockProxyScriptFetcher;
1499 service->SetProxyScriptFetcher(fetcher);
1513 EXPECT_TRUE(fetcher->has_pending_request());
1514 EXPECT_EQ(GURL("http://wpad/wpad.dat"), fetcher->pending_request_url());
1515 fetcher->NotifyFetchCompletion(OK, "auto-detect");
1553 // request to the script fetcher. When run under valgrind, should not
1566 MockProxyScriptFetcher* fetcher = new MockProxyScriptFetcher;
1567 service->SetProxyScriptFetcher(fetcher);
1582 EXPECT_TRUE(fetcher->has_pending_request());
1583 EXPECT_EQ(GURL("http://foopy/proxy.pac"), fetcher->pending_request_url());
1799 MockProxyScriptFetcher* fetcher = new MockProxyScriptFetcher;
1800 service->SetProxyScriptFetcher(fetcher);
1811 EXPECT_TRUE(fetcher->has_pending_request());
1812 EXPECT_EQ(GURL("http://foopy/proxy.pac"), fetcher->pending_request_url());
1820 fetcher->NotifyFetchCompletion(OK, "pac-v1");
1853 EXPECT_TRUE(fetcher->has_pending_request());
1854 EXPECT_EQ(GURL("http://foopy/proxy.pac"), fetcher->pending_request_url());
1861 fetcher->NotifyFetchCompletion(OK, "pac-v2");