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 <stdint.h> | 10 #include <stdint.h> |
(...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
210 int64_t GetTotalReceivedBytes() const override; | 210 int64_t GetTotalReceivedBytes() const override; |
211 | 211 |
212 int64_t GetTotalSentBytes() const override; | 212 int64_t GetTotalSentBytes() const override; |
213 | 213 |
214 void DoneReading() override; | 214 void DoneReading() override; |
215 | 215 |
216 const HttpResponseInfo* GetResponseInfo() const override; | 216 const HttpResponseInfo* GetResponseInfo() const override; |
217 | 217 |
218 LoadState GetLoadState() const override; | 218 LoadState GetLoadState() const override; |
219 | 219 |
220 UploadProgress GetUploadProgress() const override; | |
221 | |
222 void SetQuicServerInfo(QuicServerInfo* quic_server_info) override; | 220 void SetQuicServerInfo(QuicServerInfo* quic_server_info) override; |
223 | 221 |
224 bool GetLoadTimingInfo(LoadTimingInfo* load_timing_info) const override; | 222 bool GetLoadTimingInfo(LoadTimingInfo* load_timing_info) const override; |
225 | 223 |
226 bool GetRemoteEndpoint(IPEndPoint* endpoint) const override; | 224 bool GetRemoteEndpoint(IPEndPoint* endpoint) const override; |
227 | 225 |
228 void SetPriority(RequestPriority priority) override; | 226 void SetPriority(RequestPriority priority) override; |
229 | 227 |
230 void SetWebSocketHandshakeStreamCreateHelper( | 228 void SetWebSocketHandshakeStreamCreateHelper( |
231 CreateHelper* create_helper) override; | 229 CreateHelper* create_helper) override; |
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
350 | 348 |
351 //----------------------------------------------------------------------------- | 349 //----------------------------------------------------------------------------- |
352 // helpers | 350 // helpers |
353 | 351 |
354 // read the transaction completely | 352 // read the transaction completely |
355 int ReadTransaction(HttpTransaction* trans, std::string* result); | 353 int ReadTransaction(HttpTransaction* trans, std::string* result); |
356 | 354 |
357 } // namespace net | 355 } // namespace net |
358 | 356 |
359 #endif // NET_HTTP_HTTP_TRANSACTION_UNITTEST_H_ | 357 #endif // NET_HTTP_HTTP_TRANSACTION_UNITTEST_H_ |
OLD | NEW |