| 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 #include "net/quic/quic_http_stream.h" | 5 #include "net/quic/quic_http_stream.h" |
| 6 | 6 |
| 7 #include <stdint.h> | 7 #include <stdint.h> |
| 8 | 8 |
| 9 #include <memory> | 9 #include <memory> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 450 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 461 | 461 |
| 462 BoundTestNetLog net_log_; | 462 BoundTestNetLog net_log_; |
| 463 bool use_closing_stream_; | 463 bool use_closing_stream_; |
| 464 MockSendAlgorithm* send_algorithm_; | 464 MockSendAlgorithm* send_algorithm_; |
| 465 scoped_refptr<TestTaskRunner> runner_; | 465 scoped_refptr<TestTaskRunner> runner_; |
| 466 std::unique_ptr<MockWrite[]> mock_writes_; | 466 std::unique_ptr<MockWrite[]> mock_writes_; |
| 467 MockClock clock_; | 467 MockClock clock_; |
| 468 TestQuicConnection* connection_; | 468 TestQuicConnection* connection_; |
| 469 std::unique_ptr<QuicChromiumConnectionHelper> helper_; | 469 std::unique_ptr<QuicChromiumConnectionHelper> helper_; |
| 470 std::unique_ptr<QuicChromiumAlarmFactory> alarm_factory_; | 470 std::unique_ptr<QuicChromiumAlarmFactory> alarm_factory_; |
| 471 testing::StrictMock<MockConnectionVisitor> visitor_; | 471 testing::StrictMock<MockQuicConnectionVisitor> visitor_; |
| 472 std::unique_ptr<QuicHttpStream> stream_; | 472 std::unique_ptr<QuicHttpStream> stream_; |
| 473 TransportSecurityState transport_security_state_; | 473 TransportSecurityState transport_security_state_; |
| 474 std::unique_ptr<QuicChromiumClientSession> session_; | 474 std::unique_ptr<QuicChromiumClientSession> session_; |
| 475 QuicCryptoClientConfig crypto_config_; | 475 QuicCryptoClientConfig crypto_config_; |
| 476 TestCompletionCallback callback_; | 476 TestCompletionCallback callback_; |
| 477 HttpRequestInfo request_; | 477 HttpRequestInfo request_; |
| 478 HttpRequestHeaders headers_; | 478 HttpRequestHeaders headers_; |
| 479 HttpResponseInfo response_; | 479 HttpResponseInfo response_; |
| 480 scoped_refptr<IOBufferWithSize> read_buffer_; | 480 scoped_refptr<IOBufferWithSize> read_buffer_; |
| 481 SpdyHeaderBlock request_headers_; | 481 SpdyHeaderBlock request_headers_; |
| (...skipping 1236 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1718 // QuicHttpStream::GetTotalSent/ReceivedBytes currently only includes the | 1718 // QuicHttpStream::GetTotalSent/ReceivedBytes currently only includes the |
| 1719 // headers and payload. | 1719 // headers and payload. |
| 1720 EXPECT_EQ(static_cast<int64_t>(spdy_request_header_frame_length), | 1720 EXPECT_EQ(static_cast<int64_t>(spdy_request_header_frame_length), |
| 1721 promised_stream_->GetTotalSentBytes()); | 1721 promised_stream_->GetTotalSentBytes()); |
| 1722 EXPECT_EQ(static_cast<int64_t>(spdy_response_header_frame_length), | 1722 EXPECT_EQ(static_cast<int64_t>(spdy_response_header_frame_length), |
| 1723 promised_stream_->GetTotalReceivedBytes()); | 1723 promised_stream_->GetTotalReceivedBytes()); |
| 1724 } | 1724 } |
| 1725 | 1725 |
| 1726 } // namespace test | 1726 } // namespace test |
| 1727 } // namespace net | 1727 } // namespace net |
| OLD | NEW |