| OLD | NEW |
| 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 #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 185 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 196 virtual int64 GetTotalReceivedBytes() const OVERRIDE; | 196 virtual int64 GetTotalReceivedBytes() const OVERRIDE; |
| 197 | 197 |
| 198 virtual void DoneReading() OVERRIDE; | 198 virtual void DoneReading() OVERRIDE; |
| 199 | 199 |
| 200 virtual const net::HttpResponseInfo* GetResponseInfo() const OVERRIDE; | 200 virtual const net::HttpResponseInfo* GetResponseInfo() const OVERRIDE; |
| 201 | 201 |
| 202 virtual net::LoadState GetLoadState() const OVERRIDE; | 202 virtual net::LoadState GetLoadState() const OVERRIDE; |
| 203 | 203 |
| 204 virtual net::UploadProgress GetUploadProgress() const OVERRIDE; | 204 virtual net::UploadProgress GetUploadProgress() const OVERRIDE; |
| 205 | 205 |
| 206 virtual void SetQuicServerInfo( |
| 207 net::QuicServerInfo* quic_server_info) OVERRIDE; |
| 208 |
| 206 virtual bool GetLoadTimingInfo( | 209 virtual bool GetLoadTimingInfo( |
| 207 net::LoadTimingInfo* load_timing_info) const OVERRIDE; | 210 net::LoadTimingInfo* load_timing_info) const OVERRIDE; |
| 208 | 211 |
| 209 virtual void SetPriority(net::RequestPriority priority) OVERRIDE; | 212 virtual void SetPriority(net::RequestPriority priority) OVERRIDE; |
| 210 | 213 |
| 211 virtual void SetWebSocketHandshakeStreamCreateHelper( | 214 virtual void SetWebSocketHandshakeStreamCreateHelper( |
| 212 CreateHelper* create_helper) OVERRIDE; | 215 CreateHelper* create_helper) OVERRIDE; |
| 213 | 216 |
| 214 virtual void SetBeforeNetworkStartCallback( | 217 virtual void SetBeforeNetworkStartCallback( |
| 215 const BeforeNetworkStartCallback& callback) OVERRIDE; | 218 const BeforeNetworkStartCallback& callback) OVERRIDE; |
| (...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 290 base::WeakPtr<MockNetworkTransaction> last_transaction_; | 293 base::WeakPtr<MockNetworkTransaction> last_transaction_; |
| 291 }; | 294 }; |
| 292 | 295 |
| 293 //----------------------------------------------------------------------------- | 296 //----------------------------------------------------------------------------- |
| 294 // helpers | 297 // helpers |
| 295 | 298 |
| 296 // read the transaction completely | 299 // read the transaction completely |
| 297 int ReadTransaction(net::HttpTransaction* trans, std::string* result); | 300 int ReadTransaction(net::HttpTransaction* trans, std::string* result); |
| 298 | 301 |
| 299 #endif // NET_HTTP_HTTP_TRANSACTION_UNITTEST_H_ | 302 #endif // NET_HTTP_HTTP_TRANSACTION_UNITTEST_H_ |
| OLD | NEW |