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

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

Issue 2265873002: Adjust callers and networking delegates in net/ to modified APIs (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@URLRequestRead
Patch Set: rebased on top of URLRequest::Read CL Created 4 years, 3 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 unified diff | Download patch
« no previous file with comments | « net/proxy/proxy_script_fetcher_impl.cc ('k') | net/spdy/spdy_network_transaction_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/proxy_script_fetcher_impl.h" 5 #include "net/proxy/proxy_script_fetcher_impl.h"
6 6
7 #include <string> 7 #include <string>
8 #include <utility> 8 #include <utility>
9 9
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after
157 const CompletionCallback& callback, 157 const CompletionCallback& callback,
158 const HttpResponseHeaders* original_response_headers, 158 const HttpResponseHeaders* original_response_headers,
159 scoped_refptr<HttpResponseHeaders>* override_response_headers, 159 scoped_refptr<HttpResponseHeaders>* override_response_headers,
160 GURL* allowed_unsafe_redirect_url) override { 160 GURL* allowed_unsafe_redirect_url) override {
161 return OK; 161 return OK;
162 } 162 }
163 163
164 void OnBeforeRedirect(URLRequest* request, 164 void OnBeforeRedirect(URLRequest* request,
165 const GURL& new_location) override {} 165 const GURL& new_location) override {}
166 166
167 void OnResponseStarted(URLRequest* request) override {} 167 void OnResponseStarted(URLRequest* request, int net_error) override {}
168 168
169 void OnCompleted(URLRequest* request, bool started) override {} 169 void OnCompleted(URLRequest* request, bool started, int net_error) override {}
170 170
171 void OnURLRequestDestroyed(URLRequest* request) override {} 171 void OnURLRequestDestroyed(URLRequest* request) override {}
172 172
173 void OnPACScriptError(int line_number, const base::string16& error) override { 173 void OnPACScriptError(int line_number, const base::string16& error) override {
174 } 174 }
175 175
176 NetworkDelegate::AuthRequiredResponse OnAuthRequired( 176 NetworkDelegate::AuthRequiredResponse OnAuthRequired(
177 URLRequest* request, 177 URLRequest* request,
178 const AuthChallengeInfo& auth_info, 178 const AuthChallengeInfo& auth_info,
179 const AuthCallback& callback, 179 const AuthCallback& callback,
(...skipping 311 matching lines...) Expand 10 before | Expand all | Expand 10 after
491 base::string16 text; 491 base::string16 text;
492 TestCompletionCallback callback; 492 TestCompletionCallback callback;
493 int result = pac_fetcher.Fetch(url, &text, callback.callback()); 493 int result = pac_fetcher.Fetch(url, &text, callback.callback());
494 EXPECT_THAT(result, IsError(ERR_FAILED)); 494 EXPECT_THAT(result, IsError(ERR_FAILED));
495 } 495 }
496 } 496 }
497 497
498 } // namespace 498 } // namespace
499 499
500 } // namespace net 500 } // namespace net
OLDNEW
« no previous file with comments | « net/proxy/proxy_script_fetcher_impl.cc ('k') | net/spdy/spdy_network_transaction_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698