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

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

Issue 1284993005: Notify NetworkDelegate when bytes have been received over the network. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Removed empty cronet OnRawBytesRead implementation Created 5 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
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 8
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "base/files/file_path.h" 10 #include "base/files/file_path.h"
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after
139 scoped_refptr<HttpResponseHeaders>* override_response_headers, 139 scoped_refptr<HttpResponseHeaders>* override_response_headers,
140 GURL* allowed_unsafe_redirect_url) override { 140 GURL* allowed_unsafe_redirect_url) override {
141 return OK; 141 return OK;
142 } 142 }
143 143
144 void OnBeforeRedirect(URLRequest* request, 144 void OnBeforeRedirect(URLRequest* request,
145 const GURL& new_location) override {} 145 const GURL& new_location) override {}
146 146
147 void OnResponseStarted(URLRequest* request) override {} 147 void OnResponseStarted(URLRequest* request) override {}
148 148
149 void OnRawBytesRead(const URLRequest& request, int bytes_read) override {}
150
151 void OnCompleted(URLRequest* request, bool started) override {} 149 void OnCompleted(URLRequest* request, bool started) override {}
152 150
153 void OnURLRequestDestroyed(URLRequest* request) override {} 151 void OnURLRequestDestroyed(URLRequest* request) override {}
154 152
155 void OnPACScriptError(int line_number, const base::string16& error) override { 153 void OnPACScriptError(int line_number, const base::string16& error) override {
156 } 154 }
157 155
158 NetworkDelegate::AuthRequiredResponse OnAuthRequired( 156 NetworkDelegate::AuthRequiredResponse OnAuthRequired(
159 URLRequest* request, 157 URLRequest* request,
160 const AuthChallengeInfo& auth_info, 158 const AuthChallengeInfo& auth_info,
(...skipping 314 matching lines...) Expand 10 before | Expand all | Expand 10 after
475 base::string16 text; 473 base::string16 text;
476 TestCompletionCallback callback; 474 TestCompletionCallback callback;
477 int result = pac_fetcher.Fetch(url, &text, callback.callback()); 475 int result = pac_fetcher.Fetch(url, &text, callback.callback());
478 EXPECT_EQ(ERR_FAILED, result); 476 EXPECT_EQ(ERR_FAILED, result);
479 } 477 }
480 } 478 }
481 479
482 } // namespace 480 } // namespace
483 481
484 } // namespace net 482 } // namespace net
OLDNEW
« no previous file with comments | « net/proxy/network_delegate_error_observer_unittest.cc ('k') | net/url_request/url_request_context_builder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698