Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(229)

Unified Diff: net/proxy/proxy_service_unittest.cc

Issue 1157163003: Remove ProxyResolver::(Cancel)SetPacScript and LegacyProxyResolverFactory. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@v8-proxy-resolver-refactor
Patch Set: Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/proxy/proxy_service.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/proxy/proxy_service_unittest.cc
diff --git a/net/proxy/proxy_service_unittest.cc b/net/proxy/proxy_service_unittest.cc
index dfb53da181ffbc498b38c59b4890b3d329e9eeeb..550365bb34aacc654ff1c009fc2f4768b59d095a 100644
--- a/net/proxy/proxy_service_unittest.cc
+++ b/net/proxy/proxy_service_unittest.cc
@@ -1852,7 +1852,7 @@ TEST_F(ProxyServiceTest, InitialPACScriptDownload) {
MockProxyConfigService* config_service =
new MockProxyConfigService("http://foopy/proxy.pac");
- MockAsyncProxyResolverExpectsBytes resolver;
+ MockAsyncProxyResolver resolver;
MockAsyncProxyResolverFactory* factory =
new MockAsyncProxyResolverFactory(true);
@@ -1959,7 +1959,7 @@ TEST_F(ProxyServiceTest, ChangeScriptFetcherWhilePACDownloadInProgress) {
MockProxyConfigService* config_service =
new MockProxyConfigService("http://foopy/proxy.pac");
- MockAsyncProxyResolverExpectsBytes resolver;
+ MockAsyncProxyResolver resolver;
MockAsyncProxyResolverFactory* factory =
new MockAsyncProxyResolverFactory(true);
@@ -2020,7 +2020,7 @@ TEST_F(ProxyServiceTest, CancelWhilePACFetching) {
MockProxyConfigService* config_service =
new MockProxyConfigService("http://foopy/proxy.pac");
- MockAsyncProxyResolverExpectsBytes resolver;
+ MockAsyncProxyResolver resolver;
MockAsyncProxyResolverFactory* factory =
new MockAsyncProxyResolverFactory(true);
@@ -2116,7 +2116,7 @@ TEST_F(ProxyServiceTest, FallbackFromAutodetectToCustomPac) {
config.proxy_rules().ParseFromString("http=foopy:80"); // Won't be used.
MockProxyConfigService* config_service = new MockProxyConfigService(config);
- MockAsyncProxyResolverExpectsBytes resolver;
+ MockAsyncProxyResolver resolver;
MockAsyncProxyResolverFactory* factory =
new MockAsyncProxyResolverFactory(true);
ProxyService service(config_service, make_scoped_ptr(factory), NULL);
@@ -2196,7 +2196,7 @@ TEST_F(ProxyServiceTest, FallbackFromAutodetectToCustomPac2) {
config.proxy_rules().ParseFromString("http=foopy:80"); // Won't be used.
MockProxyConfigService* config_service = new MockProxyConfigService(config);
- MockAsyncProxyResolverExpectsBytes resolver;
+ MockAsyncProxyResolver resolver;
MockAsyncProxyResolverFactory* factory =
new MockAsyncProxyResolverFactory(true);
ProxyService service(config_service, make_scoped_ptr(factory), NULL);
@@ -2332,7 +2332,7 @@ TEST_F(ProxyServiceTest, BypassDoesntApplyToPac) {
config.proxy_rules().bypass_rules.ParseFromString("www.google.com");
MockProxyConfigService* config_service = new MockProxyConfigService(config);
- MockAsyncProxyResolverExpectsBytes resolver;
+ MockAsyncProxyResolver resolver;
MockAsyncProxyResolverFactory* factory =
new MockAsyncProxyResolverFactory(true);
ProxyService service(config_service, make_scoped_ptr(factory), NULL);
@@ -2533,7 +2533,7 @@ TEST_F(ProxyServiceTest, NetworkChangeTriggersPacRefetch) {
MockProxyConfigService* config_service =
new MockProxyConfigService("http://foopy/proxy.pac");
- MockAsyncProxyResolverExpectsBytes resolver;
+ MockAsyncProxyResolver resolver;
MockAsyncProxyResolverFactory* factory =
new MockAsyncProxyResolverFactory(true);
@@ -2655,7 +2655,7 @@ TEST_F(ProxyServiceTest, PACScriptRefetchAfterFailure) {
MockProxyConfigService* config_service =
new MockProxyConfigService("http://foopy/proxy.pac");
- MockAsyncProxyResolverExpectsBytes resolver;
+ MockAsyncProxyResolver resolver;
MockAsyncProxyResolverFactory* factory =
new MockAsyncProxyResolverFactory(true);
@@ -2760,7 +2760,7 @@ TEST_F(ProxyServiceTest, PACScriptRefetchAfterContentChange) {
MockProxyConfigService* config_service =
new MockProxyConfigService("http://foopy/proxy.pac");
- MockAsyncProxyResolverExpectsBytes resolver;
+ MockAsyncProxyResolver resolver;
MockAsyncProxyResolverFactory* factory =
new MockAsyncProxyResolverFactory(true);
@@ -2871,7 +2871,7 @@ TEST_F(ProxyServiceTest, PACScriptRefetchAfterContentUnchanged) {
MockProxyConfigService* config_service =
new MockProxyConfigService("http://foopy/proxy.pac");
- MockAsyncProxyResolverExpectsBytes resolver;
+ MockAsyncProxyResolver resolver;
MockAsyncProxyResolverFactory* factory =
new MockAsyncProxyResolverFactory(true);
@@ -2979,7 +2979,7 @@ TEST_F(ProxyServiceTest, PACScriptRefetchAfterSuccess) {
MockProxyConfigService* config_service =
new MockProxyConfigService("http://foopy/proxy.pac");
- MockAsyncProxyResolverExpectsBytes resolver;
+ MockAsyncProxyResolver resolver;
MockAsyncProxyResolverFactory* factory =
new MockAsyncProxyResolverFactory(true);
@@ -3132,7 +3132,7 @@ TEST_F(ProxyServiceTest, PACScriptRefetchAfterActivity) {
MockProxyConfigService* config_service =
new MockProxyConfigService("http://foopy/proxy.pac");
- MockAsyncProxyResolverExpectsBytes resolver;
+ MockAsyncProxyResolver resolver;
MockAsyncProxyResolverFactory* factory =
new MockAsyncProxyResolverFactory(true);
« no previous file with comments | « net/proxy/proxy_service.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698