| 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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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_test_utils.h" | 52 #include "net/quic/test_tools/quic_test_utils.h" |
| 53 #include "net/socket/socket_performance_watcher.h" | 53 #include "net/socket/socket_performance_watcher.h" |
| 54 #include "net/socket/socket_test_util.h" | 54 #include "net/socket/socket_test_util.h" |
| 55 #include "net/spdy/spdy_frame_builder.h" | 55 #include "net/spdy/chromium/spdy_http_utils.h" |
| 56 #include "net/spdy/spdy_framer.h" | 56 #include "net/spdy/core/spdy_frame_builder.h" |
| 57 #include "net/spdy/spdy_http_utils.h" | 57 #include "net/spdy/core/spdy_framer.h" |
| 58 #include "net/spdy/spdy_protocol.h" | 58 #include "net/spdy/core/spdy_protocol.h" |
| 59 #include "net/test/cert_test_util.h" | 59 #include "net/test/cert_test_util.h" |
| 60 #include "net/test/gtest_util.h" | 60 #include "net/test/gtest_util.h" |
| 61 #include "net/test/test_data_directory.h" | 61 #include "net/test/test_data_directory.h" |
| 62 #include "testing/gmock/include/gmock/gmock.h" | 62 #include "testing/gmock/include/gmock/gmock.h" |
| 63 #include "testing/gtest/include/gtest/gtest.h" | 63 #include "testing/gtest/include/gtest/gtest.h" |
| 64 | 64 |
| 65 using std::string; | 65 using std::string; |
| 66 using testing::_; | 66 using testing::_; |
| 67 using testing::AnyNumber; | 67 using testing::AnyNumber; |
| 68 using testing::Return; | 68 using testing::Return; |
| (...skipping 2125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2194 EXPECT_TRUE(AtEof()); | 2194 EXPECT_TRUE(AtEof()); |
| 2195 | 2195 |
| 2196 // QuicHttpStream::GetTotalSent/ReceivedBytes includes only headers. | 2196 // QuicHttpStream::GetTotalSent/ReceivedBytes includes only headers. |
| 2197 EXPECT_EQ(static_cast<int64_t>(spdy_request_headers_frame_length), | 2197 EXPECT_EQ(static_cast<int64_t>(spdy_request_headers_frame_length), |
| 2198 stream_->GetTotalSentBytes()); | 2198 stream_->GetTotalSentBytes()); |
| 2199 EXPECT_EQ(0, stream_->GetTotalReceivedBytes()); | 2199 EXPECT_EQ(0, stream_->GetTotalReceivedBytes()); |
| 2200 } | 2200 } |
| 2201 | 2201 |
| 2202 } // namespace test | 2202 } // namespace test |
| 2203 } // namespace net | 2203 } // namespace net |
| OLD | NEW |