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 14057 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
14068 RequestPriority priority, | 14068 RequestPriority priority, |
14069 const SSLConfig& server_ssl_config, | 14069 const SSLConfig& server_ssl_config, |
14070 const SSLConfig& proxy_ssl_config, | 14070 const SSLConfig& proxy_ssl_config, |
14071 HttpStreamRequest::Delegate* delegate, | 14071 HttpStreamRequest::Delegate* delegate, |
14072 const BoundNetLog& net_log) override { | 14072 const BoundNetLog& net_log) override { |
14073 FakeStreamRequest* fake_request = new FakeStreamRequest(priority, delegate); | 14073 FakeStreamRequest* fake_request = new FakeStreamRequest(priority, delegate); |
14074 last_stream_request_ = fake_request->AsWeakPtr(); | 14074 last_stream_request_ = fake_request->AsWeakPtr(); |
14075 return fake_request; | 14075 return fake_request; |
14076 } | 14076 } |
14077 | 14077 |
| 14078 HttpStreamRequest* RequestBidirectionalStream( |
| 14079 const HttpRequestInfo& info, |
| 14080 RequestPriority priority, |
| 14081 const SSLConfig& server_ssl_config, |
| 14082 const SSLConfig& proxy_ssl_config, |
| 14083 HttpStreamRequest::Delegate* delegate, |
| 14084 const BoundNetLog& net_log) override { |
| 14085 NOTREACHED(); |
| 14086 return nullptr; |
| 14087 } |
| 14088 |
14078 HttpStreamRequest* RequestWebSocketHandshakeStream( | 14089 HttpStreamRequest* RequestWebSocketHandshakeStream( |
14079 const HttpRequestInfo& info, | 14090 const HttpRequestInfo& info, |
14080 RequestPriority priority, | 14091 RequestPriority priority, |
14081 const SSLConfig& server_ssl_config, | 14092 const SSLConfig& server_ssl_config, |
14082 const SSLConfig& proxy_ssl_config, | 14093 const SSLConfig& proxy_ssl_config, |
14083 HttpStreamRequest::Delegate* delegate, | 14094 HttpStreamRequest::Delegate* delegate, |
14084 WebSocketHandshakeStreamBase::CreateHelper* create_helper, | 14095 WebSocketHandshakeStreamBase::CreateHelper* create_helper, |
14085 const BoundNetLog& net_log) override { | 14096 const BoundNetLog& net_log) override { |
14086 FakeStreamRequest* fake_request = | 14097 FakeStreamRequest* fake_request = |
14087 new FakeStreamRequest(priority, delegate, create_helper); | 14098 new FakeStreamRequest(priority, delegate, create_helper); |
(...skipping 1221 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
15309 std::string response_data; | 15320 std::string response_data; |
15310 EXPECT_EQ(OK, ReadTransaction(trans.get(), &response_data)); | 15321 EXPECT_EQ(OK, ReadTransaction(trans.get(), &response_data)); |
15311 | 15322 |
15312 EXPECT_EQ(CountWriteBytes(data_writes, arraysize(data_writes)), | 15323 EXPECT_EQ(CountWriteBytes(data_writes, arraysize(data_writes)), |
15313 trans->GetTotalSentBytes()); | 15324 trans->GetTotalSentBytes()); |
15314 EXPECT_EQ(CountReadBytes(data_reads, arraysize(data_reads)), | 15325 EXPECT_EQ(CountReadBytes(data_reads, arraysize(data_reads)), |
15315 trans->GetTotalReceivedBytes()); | 15326 trans->GetTotalReceivedBytes()); |
15316 } | 15327 } |
15317 | 15328 |
15318 } // namespace net | 15329 } // namespace net |
OLD | NEW |