| 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/chromium/quic_http_stream.h" | 5 #include "net/quic/chromium/quic_http_stream.h" |
| 6 | 6 |
| 7 #include <stdint.h> | 7 #include <stdint.h> |
| 8 | 8 |
| 9 #include <memory> | 9 #include <memory> |
| 10 #include <utility> | 10 #include <utility> |
| (...skipping 15 matching lines...) Expand all Loading... |
| 26 #include "net/log/net_log_event_type.h" | 26 #include "net/log/net_log_event_type.h" |
| 27 #include "net/log/test_net_log.h" | 27 #include "net/log/test_net_log.h" |
| 28 #include "net/log/test_net_log_util.h" | 28 #include "net/log/test_net_log_util.h" |
| 29 #include "net/quic/chromium/crypto/proof_verifier_chromium.h" | 29 #include "net/quic/chromium/crypto/proof_verifier_chromium.h" |
| 30 #include "net/quic/chromium/mock_crypto_client_stream_factory.h" | 30 #include "net/quic/chromium/mock_crypto_client_stream_factory.h" |
| 31 #include "net/quic/chromium/quic_chromium_alarm_factory.h" | 31 #include "net/quic/chromium/quic_chromium_alarm_factory.h" |
| 32 #include "net/quic/chromium/quic_chromium_connection_helper.h" | 32 #include "net/quic/chromium/quic_chromium_connection_helper.h" |
| 33 #include "net/quic/chromium/quic_chromium_packet_reader.h" | 33 #include "net/quic/chromium/quic_chromium_packet_reader.h" |
| 34 #include "net/quic/chromium/quic_chromium_packet_writer.h" | 34 #include "net/quic/chromium/quic_chromium_packet_writer.h" |
| 35 #include "net/quic/chromium/quic_http_utils.h" | 35 #include "net/quic/chromium/quic_http_utils.h" |
| 36 #include "net/quic/chromium/quic_server_info.h" |
| 36 #include "net/quic/chromium/quic_test_packet_maker.h" | 37 #include "net/quic/chromium/quic_test_packet_maker.h" |
| 37 #include "net/quic/core/congestion_control/send_algorithm_interface.h" | 38 #include "net/quic/core/congestion_control/send_algorithm_interface.h" |
| 38 #include "net/quic/core/crypto/crypto_protocol.h" | 39 #include "net/quic/core/crypto/crypto_protocol.h" |
| 39 #include "net/quic/core/crypto/quic_decrypter.h" | 40 #include "net/quic/core/crypto/quic_decrypter.h" |
| 40 #include "net/quic/core/crypto/quic_encrypter.h" | 41 #include "net/quic/core/crypto/quic_encrypter.h" |
| 41 #include "net/quic/core/crypto/quic_server_info.h" | |
| 42 #include "net/quic/core/quic_connection.h" | 42 #include "net/quic/core/quic_connection.h" |
| 43 #include "net/quic/core/quic_write_blocked_list.h" | 43 #include "net/quic/core/quic_write_blocked_list.h" |
| 44 #include "net/quic/core/spdy_utils.h" | 44 #include "net/quic/core/spdy_utils.h" |
| 45 #include "net/quic/test_tools/crypto_test_utils.h" | 45 #include "net/quic/test_tools/crypto_test_utils.h" |
| 46 #include "net/quic/test_tools/mock_clock.h" | 46 #include "net/quic/test_tools/mock_clock.h" |
| 47 #include "net/quic/test_tools/mock_random.h" | 47 #include "net/quic/test_tools/mock_random.h" |
| 48 #include "net/quic/test_tools/quic_connection_peer.h" | 48 #include "net/quic/test_tools/quic_connection_peer.h" |
| 49 #include "net/quic/test_tools/quic_test_utils.h" | 49 #include "net/quic/test_tools/quic_test_utils.h" |
| 50 #include "net/quic/test_tools/test_task_runner.h" | 50 #include "net/quic/test_tools/test_task_runner.h" |
| 51 #include "net/socket/socket_performance_watcher.h" | 51 #include "net/socket/socket_performance_watcher.h" |
| (...skipping 2112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2164 EXPECT_TRUE(AtEof()); | 2164 EXPECT_TRUE(AtEof()); |
| 2165 | 2165 |
| 2166 // QuicHttpStream::GetTotalSent/ReceivedBytes includes only headers. | 2166 // QuicHttpStream::GetTotalSent/ReceivedBytes includes only headers. |
| 2167 EXPECT_EQ(static_cast<int64_t>(spdy_request_headers_frame_length), | 2167 EXPECT_EQ(static_cast<int64_t>(spdy_request_headers_frame_length), |
| 2168 stream_->GetTotalSentBytes()); | 2168 stream_->GetTotalSentBytes()); |
| 2169 EXPECT_EQ(0, stream_->GetTotalReceivedBytes()); | 2169 EXPECT_EQ(0, stream_->GetTotalReceivedBytes()); |
| 2170 } | 2170 } |
| 2171 | 2171 |
| 2172 } // namespace test | 2172 } // namespace test |
| 2173 } // namespace net | 2173 } // namespace net |
| OLD | NEW |