| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 #ifndef NET_HTTP_HTTP_TRANSACTION_UNITTEST_H_ | 5 #ifndef NET_HTTP_HTTP_TRANSACTION_UNITTEST_H_ |
| 6 #define NET_HTTP_HTTP_TRANSACTION_UNITTEST_H_ | 6 #define NET_HTTP_HTTP_TRANSACTION_UNITTEST_H_ |
| 7 | 7 |
| 8 #include "net/http/http_transaction.h" | 8 #include "net/http/http_transaction.h" |
| 9 | 9 |
| 10 #include <string> | 10 #include <string> |
| (...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 211 net::LoadTimingInfo* load_timing_info) const OVERRIDE; | 211 net::LoadTimingInfo* load_timing_info) const OVERRIDE; |
| 212 | 212 |
| 213 virtual void SetPriority(net::RequestPriority priority) OVERRIDE; | 213 virtual void SetPriority(net::RequestPriority priority) OVERRIDE; |
| 214 | 214 |
| 215 virtual void SetWebSocketHandshakeStreamCreateHelper( | 215 virtual void SetWebSocketHandshakeStreamCreateHelper( |
| 216 CreateHelper* create_helper) OVERRIDE; | 216 CreateHelper* create_helper) OVERRIDE; |
| 217 | 217 |
| 218 virtual void SetBeforeNetworkStartCallback( | 218 virtual void SetBeforeNetworkStartCallback( |
| 219 const BeforeNetworkStartCallback& callback) OVERRIDE; | 219 const BeforeNetworkStartCallback& callback) OVERRIDE; |
| 220 | 220 |
| 221 virtual void SetBeforeProxyHeadersSentCallback( |
| 222 const BeforeProxyHeadersSentCallback& callback) OVERRIDE; |
| 223 |
| 221 virtual int ResumeNetworkStart() OVERRIDE; | 224 virtual int ResumeNetworkStart() OVERRIDE; |
| 222 | 225 |
| 223 CreateHelper* websocket_handshake_stream_create_helper() { | 226 CreateHelper* websocket_handshake_stream_create_helper() { |
| 224 return websocket_handshake_stream_create_helper_; | 227 return websocket_handshake_stream_create_helper_; |
| 225 } | 228 } |
| 226 net::RequestPriority priority() const { return priority_; } | 229 net::RequestPriority priority() const { return priority_; } |
| 227 | 230 |
| 228 private: | 231 private: |
| 229 int StartInternal(const net::HttpRequestInfo* request, | 232 int StartInternal(const net::HttpRequestInfo* request, |
| 230 const net::CompletionCallback& callback, | 233 const net::CompletionCallback& callback, |
| (...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 297 base::WeakPtr<MockNetworkTransaction> last_transaction_; | 300 base::WeakPtr<MockNetworkTransaction> last_transaction_; |
| 298 }; | 301 }; |
| 299 | 302 |
| 300 //----------------------------------------------------------------------------- | 303 //----------------------------------------------------------------------------- |
| 301 // helpers | 304 // helpers |
| 302 | 305 |
| 303 // read the transaction completely | 306 // read the transaction completely |
| 304 int ReadTransaction(net::HttpTransaction* trans, std::string* result); | 307 int ReadTransaction(net::HttpTransaction* trans, std::string* result); |
| 305 | 308 |
| 306 #endif // NET_HTTP_HTTP_TRANSACTION_UNITTEST_H_ | 309 #endif // NET_HTTP_HTTP_TRANSACTION_UNITTEST_H_ |
| OLD | NEW |