| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 <stdint.h> | 9 #include <stdint.h> |
| 10 | 10 |
| (...skipping 13520 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 13531 RequestPriority priority, | 13531 RequestPriority priority, |
| 13532 const SSLConfig& server_ssl_config, | 13532 const SSLConfig& server_ssl_config, |
| 13533 const SSLConfig& proxy_ssl_config, | 13533 const SSLConfig& proxy_ssl_config, |
| 13534 HttpStreamRequest::Delegate* delegate, | 13534 HttpStreamRequest::Delegate* delegate, |
| 13535 const BoundNetLog& net_log) override { | 13535 const BoundNetLog& net_log) override { |
| 13536 FakeStreamRequest* fake_request = new FakeStreamRequest(priority, delegate); | 13536 FakeStreamRequest* fake_request = new FakeStreamRequest(priority, delegate); |
| 13537 last_stream_request_ = fake_request->AsWeakPtr(); | 13537 last_stream_request_ = fake_request->AsWeakPtr(); |
| 13538 return fake_request; | 13538 return fake_request; |
| 13539 } | 13539 } |
| 13540 | 13540 |
| 13541 HttpStreamRequest* RequestBidirectionalStream( |
| 13542 const HttpRequestInfo& info, |
| 13543 RequestPriority priority, |
| 13544 const SSLConfig& server_ssl_config, |
| 13545 const SSLConfig& proxy_ssl_config, |
| 13546 HttpStreamRequest::Delegate* delegate, |
| 13547 const BoundNetLog& net_log) override { |
| 13548 NOTREACHED(); |
| 13549 return nullptr; |
| 13550 } |
| 13551 |
| 13541 HttpStreamRequest* RequestWebSocketHandshakeStream( | 13552 HttpStreamRequest* RequestWebSocketHandshakeStream( |
| 13542 const HttpRequestInfo& info, | 13553 const HttpRequestInfo& info, |
| 13543 RequestPriority priority, | 13554 RequestPriority priority, |
| 13544 const SSLConfig& server_ssl_config, | 13555 const SSLConfig& server_ssl_config, |
| 13545 const SSLConfig& proxy_ssl_config, | 13556 const SSLConfig& proxy_ssl_config, |
| 13546 HttpStreamRequest::Delegate* delegate, | 13557 HttpStreamRequest::Delegate* delegate, |
| 13547 WebSocketHandshakeStreamBase::CreateHelper* create_helper, | 13558 WebSocketHandshakeStreamBase::CreateHelper* create_helper, |
| 13548 const BoundNetLog& net_log) override { | 13559 const BoundNetLog& net_log) override { |
| 13549 FakeStreamRequest* fake_request = | 13560 FakeStreamRequest* fake_request = |
| 13550 new FakeStreamRequest(priority, delegate, create_helper); | 13561 new FakeStreamRequest(priority, delegate, create_helper); |
| (...skipping 1220 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 14771 std::string response_data; | 14782 std::string response_data; |
| 14772 EXPECT_EQ(OK, ReadTransaction(trans.get(), &response_data)); | 14783 EXPECT_EQ(OK, ReadTransaction(trans.get(), &response_data)); |
| 14773 | 14784 |
| 14774 EXPECT_EQ(CountWriteBytes(data_writes, arraysize(data_writes)), | 14785 EXPECT_EQ(CountWriteBytes(data_writes, arraysize(data_writes)), |
| 14775 trans->GetTotalSentBytes()); | 14786 trans->GetTotalSentBytes()); |
| 14776 EXPECT_EQ(CountReadBytes(data_reads, arraysize(data_reads)), | 14787 EXPECT_EQ(CountReadBytes(data_reads, arraysize(data_reads)), |
| 14777 trans->GetTotalReceivedBytes()); | 14788 trans->GetTotalReceivedBytes()); |
| 14778 } | 14789 } |
| 14779 | 14790 |
| 14780 } // namespace net | 14791 } // namespace net |
| OLD | NEW |