| 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 7103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7114 HostPortPair("myproxy", 80)); | 7114 HostPortPair("myproxy", 80)); |
| 7115 results->UseProxyServer(proxy_server); | 7115 results->UseProxyServer(proxy_server); |
| 7116 resolved_.push_back(url); | 7116 resolved_.push_back(url); |
| 7117 return OK; | 7117 return OK; |
| 7118 } | 7118 } |
| 7119 | 7119 |
| 7120 virtual void CancelRequest(RequestHandle request) { | 7120 virtual void CancelRequest(RequestHandle request) { |
| 7121 NOTREACHED(); | 7121 NOTREACHED(); |
| 7122 } | 7122 } |
| 7123 | 7123 |
| 7124 virtual LoadState GetLoadState(RequestHandle request) const OVERRIDE { |
| 7125 NOTREACHED(); |
| 7126 return LOAD_STATE_IDLE; |
| 7127 } |
| 7128 |
| 7124 virtual void CancelSetPacScript() { | 7129 virtual void CancelSetPacScript() { |
| 7125 NOTREACHED(); | 7130 NOTREACHED(); |
| 7126 } | 7131 } |
| 7127 | 7132 |
| 7128 virtual int SetPacScript(const scoped_refptr<ProxyResolverScriptData>&, | 7133 virtual int SetPacScript(const scoped_refptr<ProxyResolverScriptData>&, |
| 7129 OldCompletionCallback* /*callback*/) { | 7134 OldCompletionCallback* /*callback*/) { |
| 7130 return OK; | 7135 return OK; |
| 7131 } | 7136 } |
| 7132 | 7137 |
| 7133 const std::vector<GURL>& resolved() const { return resolved_; } | 7138 const std::vector<GURL>& resolved() const { return resolved_; } |
| (...skipping 2160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 9294 StaticSocketDataProvider* data[] = { &data1, &data2 }; | 9299 StaticSocketDataProvider* data[] = { &data1, &data2 }; |
| 9295 | 9300 |
| 9296 SimpleGetHelperResult out = SimpleGetHelperForData(data, arraysize(data)); | 9301 SimpleGetHelperResult out = SimpleGetHelperForData(data, arraysize(data)); |
| 9297 | 9302 |
| 9298 EXPECT_EQ(OK, out.rv); | 9303 EXPECT_EQ(OK, out.rv); |
| 9299 EXPECT_EQ("HTTP/1.0 200 OK", out.status_line); | 9304 EXPECT_EQ("HTTP/1.0 200 OK", out.status_line); |
| 9300 EXPECT_EQ("hello world", out.response_data); | 9305 EXPECT_EQ("hello world", out.response_data); |
| 9301 } | 9306 } |
| 9302 | 9307 |
| 9303 } // namespace net | 9308 } // namespace net |
| OLD | NEW |