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/tools/quic/quic_simple_server_session.h" | 5 #include "net/tools/quic/quic_simple_server_session.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 | 8 |
9 #include "base/macros.h" | 9 #include "base/macros.h" |
10 #include "base/strings/string_number_conversions.h" | 10 #include "base/strings/string_number_conversions.h" |
(...skipping 12 matching lines...) Expand all Loading... |
23 #include "net/quic/test_tools/quic_spdy_stream_peer.h" | 23 #include "net/quic/test_tools/quic_spdy_stream_peer.h" |
24 #include "net/quic/test_tools/quic_sustained_bandwidth_recorder_peer.h" | 24 #include "net/quic/test_tools/quic_sustained_bandwidth_recorder_peer.h" |
25 #include "net/quic/test_tools/quic_test_utils.h" | 25 #include "net/quic/test_tools/quic_test_utils.h" |
26 #include "net/test/gtest_util.h" | 26 #include "net/test/gtest_util.h" |
27 #include "net/tools/quic/quic_simple_server_stream.h" | 27 #include "net/tools/quic/quic_simple_server_stream.h" |
28 #include "net/tools/quic/test_tools/mock_quic_server_session_visitor.h" | 28 #include "net/tools/quic/test_tools/mock_quic_server_session_visitor.h" |
29 #include "net/tools/quic/test_tools/quic_in_memory_cache_peer.h" | 29 #include "net/tools/quic/test_tools/quic_in_memory_cache_peer.h" |
30 #include "testing/gmock/include/gmock/gmock.h" | 30 #include "testing/gmock/include/gmock/gmock.h" |
31 #include "testing/gtest/include/gtest/gtest.h" | 31 #include "testing/gtest/include/gtest/gtest.h" |
32 | 32 |
| 33 using __gnu_cxx::vector; |
33 using net::test::CryptoTestUtils; | 34 using net::test::CryptoTestUtils; |
34 using net::test::MockConnection; | 35 using net::test::MockConnection; |
35 using net::test::MockConnectionHelper; | 36 using net::test::MockConnectionHelper; |
36 using net::test::QuicConfigPeer; | 37 using net::test::QuicConfigPeer; |
37 using net::test::QuicConnectionPeer; | 38 using net::test::QuicConnectionPeer; |
38 using net::test::QuicSpdyStreamPeer; | 39 using net::test::QuicSpdyStreamPeer; |
39 using net::test::QuicSentPacketManagerPeer; | 40 using net::test::QuicSentPacketManagerPeer; |
40 using net::test::QuicSessionPeer; | 41 using net::test::QuicSessionPeer; |
41 using net::test::QuicSpdySessionPeer; | 42 using net::test::QuicSpdySessionPeer; |
42 using net::test::QuicSustainedBandwidthRecorderPeer; | 43 using net::test::QuicSustainedBandwidthRecorderPeer; |
(...skipping 451 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
494 .WillOnce(Return(QuicConsumedData(0, false))); | 495 .WillOnce(Return(QuicConsumedData(0, false))); |
495 | 496 |
496 QuicRstStreamFrame rst(stream_got_reset, QUIC_STREAM_CANCELLED, 0); | 497 QuicRstStreamFrame rst(stream_got_reset, QUIC_STREAM_CANCELLED, 0); |
497 visitor_->OnRstStream(rst); | 498 visitor_->OnRstStream(rst); |
498 } | 499 } |
499 | 500 |
500 } // namespace | 501 } // namespace |
501 } // namespace test | 502 } // namespace test |
502 } // namespace tools | 503 } // namespace tools |
503 } // namespace net | 504 } // namespace net |
OLD | NEW |