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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
42 #include "net/quic/core/crypto/quic_decrypter.h" | 42 #include "net/quic/core/crypto/quic_decrypter.h" |
43 #include "net/quic/core/crypto/quic_encrypter.h" | 43 #include "net/quic/core/crypto/quic_encrypter.h" |
44 #include "net/quic/core/quic_connection.h" | 44 #include "net/quic/core/quic_connection.h" |
45 #include "net/quic/core/quic_write_blocked_list.h" | 45 #include "net/quic/core/quic_write_blocked_list.h" |
46 #include "net/quic/core/spdy_utils.h" | 46 #include "net/quic/core/spdy_utils.h" |
47 #include "net/quic/platform/api/quic_string_piece.h" | 47 #include "net/quic/platform/api/quic_string_piece.h" |
48 #include "net/quic/test_tools/crypto_test_utils.h" | 48 #include "net/quic/test_tools/crypto_test_utils.h" |
49 #include "net/quic/test_tools/mock_clock.h" | 49 #include "net/quic/test_tools/mock_clock.h" |
50 #include "net/quic/test_tools/mock_random.h" | 50 #include "net/quic/test_tools/mock_random.h" |
51 #include "net/quic/test_tools/quic_connection_peer.h" | 51 #include "net/quic/test_tools/quic_connection_peer.h" |
| 52 #include "net/quic/test_tools/quic_spdy_session_peer.h" |
52 #include "net/quic/test_tools/quic_test_utils.h" | 53 #include "net/quic/test_tools/quic_test_utils.h" |
53 #include "net/socket/socket_performance_watcher.h" | 54 #include "net/socket/socket_performance_watcher.h" |
54 #include "net/socket/socket_test_util.h" | 55 #include "net/socket/socket_test_util.h" |
55 #include "net/spdy/chromium/spdy_http_utils.h" | 56 #include "net/spdy/chromium/spdy_http_utils.h" |
56 #include "net/spdy/core/spdy_frame_builder.h" | 57 #include "net/spdy/core/spdy_frame_builder.h" |
57 #include "net/spdy/core/spdy_framer.h" | 58 #include "net/spdy/core/spdy_framer.h" |
58 #include "net/spdy/core/spdy_protocol.h" | 59 #include "net/spdy/core/spdy_protocol.h" |
59 #include "net/test/cert_test_util.h" | 60 #include "net/test/cert_test_util.h" |
60 #include "net/test/gtest_util.h" | 61 #include "net/test/gtest_util.h" |
61 #include "net/test/test_data_directory.h" | 62 #include "net/test/test_data_directory.h" |
(...skipping 2103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2165 EXPECT_TRUE(AtEof()); | 2166 EXPECT_TRUE(AtEof()); |
2166 | 2167 |
2167 // QuicHttpStream::GetTotalSent/ReceivedBytes includes only headers. | 2168 // QuicHttpStream::GetTotalSent/ReceivedBytes includes only headers. |
2168 EXPECT_EQ(static_cast<int64_t>(spdy_request_headers_frame_length), | 2169 EXPECT_EQ(static_cast<int64_t>(spdy_request_headers_frame_length), |
2169 stream_->GetTotalSentBytes()); | 2170 stream_->GetTotalSentBytes()); |
2170 EXPECT_EQ(0, stream_->GetTotalReceivedBytes()); | 2171 EXPECT_EQ(0, stream_->GetTotalReceivedBytes()); |
2171 } | 2172 } |
2172 | 2173 |
2173 } // namespace test | 2174 } // namespace test |
2174 } // namespace net | 2175 } // namespace net |
OLD | NEW |