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

Side by Side Diff: net/http/http_network_transaction_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: Address eroman's nits. 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
« no previous file with comments | « net/base/load_states.h ('k') | net/http/http_stream_factory_impl_job.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) 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/http/http_network_transaction.h" 5 #include "net/http/http_network_transaction.h"
6 6
7 #include <math.h> // ceil 7 #include <math.h> // ceil
8 #include <stdarg.h> 8 #include <stdarg.h>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 7106 matching lines...) Expand 10 before | Expand all | Expand 10 after
7117 HostPortPair("myproxy", 80)); 7117 HostPortPair("myproxy", 80));
7118 results->UseProxyServer(proxy_server); 7118 results->UseProxyServer(proxy_server);
7119 resolved_.push_back(url); 7119 resolved_.push_back(url);
7120 return OK; 7120 return OK;
7121 } 7121 }
7122 7122
7123 virtual void CancelRequest(RequestHandle request) { 7123 virtual void CancelRequest(RequestHandle request) {
7124 NOTREACHED(); 7124 NOTREACHED();
7125 } 7125 }
7126 7126
7127 virtual LoadState GetLoadState(RequestHandle request) const OVERRIDE {
7128 NOTREACHED();
7129 return LOAD_STATE_IDLE;
7130 }
7131
7132 virtual LoadState GetLoadStateThreadSafe(
7133 RequestHandle request) const OVERRIDE {
7134 NOTREACHED();
7135 return LOAD_STATE_IDLE;
7136 }
7137
7127 virtual void CancelSetPacScript() { 7138 virtual void CancelSetPacScript() {
7128 NOTREACHED(); 7139 NOTREACHED();
7129 } 7140 }
7130 7141
7131 virtual int SetPacScript(const scoped_refptr<ProxyResolverScriptData>&, 7142 virtual int SetPacScript(const scoped_refptr<ProxyResolverScriptData>&,
7132 OldCompletionCallback* /*callback*/) { 7143 OldCompletionCallback* /*callback*/) {
7133 return OK; 7144 return OK;
7134 } 7145 }
7135 7146
7136 const std::vector<GURL>& resolved() const { return resolved_; } 7147 const std::vector<GURL>& resolved() const { return resolved_; }
(...skipping 2160 matching lines...) Expand 10 before | Expand all | Expand 10 after
9297 StaticSocketDataProvider* data[] = { &data1, &data2 }; 9308 StaticSocketDataProvider* data[] = { &data1, &data2 };
9298 9309
9299 SimpleGetHelperResult out = SimpleGetHelperForData(data, arraysize(data)); 9310 SimpleGetHelperResult out = SimpleGetHelperForData(data, arraysize(data));
9300 9311
9301 EXPECT_EQ(OK, out.rv); 9312 EXPECT_EQ(OK, out.rv);
9302 EXPECT_EQ("HTTP/1.0 200 OK", out.status_line); 9313 EXPECT_EQ("HTTP/1.0 200 OK", out.status_line);
9303 EXPECT_EQ("hello world", out.response_data); 9314 EXPECT_EQ("hello world", out.response_data);
9304 } 9315 }
9305 9316
9306 } // namespace net 9317 } // namespace net
OLDNEW
« no previous file with comments | « net/base/load_states.h ('k') | net/http/http_stream_factory_impl_job.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698