| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |