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

Side by Side Diff: net/proxy/sync_host_resolver_bridge_unittest.cc

Issue 8373014: Add new text for indicating we are resolving hosts during proxy resolution. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: win/mac Created 9 years, 1 month 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "net/proxy/sync_host_resolver_bridge.h" 5 #include "net/proxy/sync_host_resolver_bridge.h"
6 6
7 #include "base/threading/thread.h" 7 #include "base/threading/thread.h"
8 #include "base/synchronization/waitable_event.h" 8 #include "base/synchronization/waitable_event.h"
9 #include "net/base/address_list.h" 9 #include "net/base/address_list.h"
10 #include "net/base/net_errors.h" 10 #include "net/base/net_errors.h"
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
104 104
105 EXPECT_EQ(ERR_ABORTED, rv); 105 EXPECT_EQ(ERR_ABORTED, rv);
106 106
107 return rv; 107 return rv;
108 } 108 }
109 109
110 virtual void CancelRequest(RequestHandle request) OVERRIDE { 110 virtual void CancelRequest(RequestHandle request) OVERRIDE {
111 NOTREACHED(); 111 NOTREACHED();
112 } 112 }
113 113
114 virtual LoadState GetLoadState(RequestHandle request) const OVERRIDE {
115 NOTREACHED();
116 return LOAD_STATE_IDLE;
117 }
118
119 virtual LoadState GetLoadStateThreadSafe(
120 RequestHandle request) const OVERRIDE {
121 NOTREACHED();
122 return LOAD_STATE_IDLE;
123 }
124
114 virtual void Shutdown() OVERRIDE { 125 virtual void Shutdown() OVERRIDE {
115 host_resolver_->Shutdown(); 126 host_resolver_->Shutdown();
116 } 127 }
117 128
118 virtual void CancelSetPacScript() OVERRIDE { 129 virtual void CancelSetPacScript() OVERRIDE {
119 NOTREACHED(); 130 NOTREACHED();
120 } 131 }
121 132
122 virtual int SetPacScript( 133 virtual int SetPacScript(
123 const scoped_refptr<ProxyResolverScriptData>& script_data, 134 const scoped_refptr<ProxyResolverScriptData>& script_data,
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
231 // stop the IOThread, which will in turn delete the 242 // stop the IOThread, which will in turn delete the
232 // SingleThreadedProxyResolver, which in turn will stop its internal 243 // SingleThreadedProxyResolver, which in turn will stop its internal
233 // PAC thread (which is currently blocked waiting on the host resolve which 244 // PAC thread (which is currently blocked waiting on the host resolve which
234 // is running on IOThread). The IOThread::Cleanup() will verify that after 245 // is running on IOThread). The IOThread::Cleanup() will verify that after
235 // the PAC thread is stopped, it cancels the request on the HostResolver. 246 // the PAC thread is stopped, it cancels the request on the HostResolver.
236 } 247 }
237 248
238 } // namespace 249 } // namespace
239 250
240 } // namespace net 251 } // namespace net
OLDNEW
« net/proxy/proxy_resolver_winhttp.cc ('K') | « net/proxy/proxy_service.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698