| 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_server_session.h" | 5 #include "net/tools/quic/quic_server_session.h" |
| 6 | 6 |
| 7 #include "net/quic/crypto/quic_crypto_server_config.h" | 7 #include "net/quic/crypto/quic_crypto_server_config.h" |
| 8 #include "net/quic/crypto/quic_random.h" | 8 #include "net/quic/crypto/quic_random.h" |
| 9 #include "net/quic/proto/cached_network_parameters.pb.h" | 9 #include "net/quic/proto/cached_network_parameters.pb.h" |
| 10 #include "net/quic/quic_connection.h" | 10 #include "net/quic/quic_connection.h" |
| 11 #include "net/quic/quic_crypto_server_stream.h" | 11 #include "net/quic/quic_crypto_server_stream.h" |
| 12 #include "net/quic/quic_flags.h" | 12 #include "net/quic/quic_flags.h" |
| 13 #include "net/quic/quic_utils.h" | 13 #include "net/quic/quic_utils.h" |
| 14 #include "net/quic/test_tools/quic_config_peer.h" | 14 #include "net/quic/test_tools/quic_config_peer.h" |
| 15 #include "net/quic/test_tools/quic_connection_peer.h" | 15 #include "net/quic/test_tools/quic_connection_peer.h" |
| 16 #include "net/quic/test_tools/quic_data_stream_peer.h" | |
| 17 #include "net/quic/test_tools/quic_sent_packet_manager_peer.h" | 16 #include "net/quic/test_tools/quic_sent_packet_manager_peer.h" |
| 18 #include "net/quic/test_tools/quic_session_peer.h" | 17 #include "net/quic/test_tools/quic_session_peer.h" |
| 19 #include "net/quic/test_tools/quic_spdy_session_peer.h" | 18 #include "net/quic/test_tools/quic_spdy_session_peer.h" |
| 19 #include "net/quic/test_tools/quic_spdy_stream_peer.h" |
| 20 #include "net/quic/test_tools/quic_sustained_bandwidth_recorder_peer.h" | 20 #include "net/quic/test_tools/quic_sustained_bandwidth_recorder_peer.h" |
| 21 #include "net/quic/test_tools/quic_test_utils.h" | 21 #include "net/quic/test_tools/quic_test_utils.h" |
| 22 #include "net/test/gtest_util.h" | 22 #include "net/test/gtest_util.h" |
| 23 #include "net/tools/quic/quic_spdy_server_stream.h" | 23 #include "net/tools/quic/quic_spdy_server_stream.h" |
| 24 #include "net/tools/quic/test_tools/mock_quic_server_session_visitor.h" | 24 #include "net/tools/quic/test_tools/mock_quic_server_session_visitor.h" |
| 25 #include "testing/gmock/include/gmock/gmock.h" | 25 #include "testing/gmock/include/gmock/gmock.h" |
| 26 #include "testing/gtest/include/gtest/gtest.h" | 26 #include "testing/gtest/include/gtest/gtest.h" |
| 27 | 27 |
| 28 using __gnu_cxx::vector; | 28 using __gnu_cxx::vector; |
| 29 using net::test::MockConnection; | 29 using net::test::MockConnection; |
| 30 using net::test::MockHelper; | 30 using net::test::MockHelper; |
| 31 using net::test::QuicConfigPeer; | 31 using net::test::QuicConfigPeer; |
| 32 using net::test::QuicConnectionPeer; | 32 using net::test::QuicConnectionPeer; |
| 33 using net::test::QuicDataStreamPeer; | 33 using net::test::QuicSpdyStreamPeer; |
| 34 using net::test::QuicSentPacketManagerPeer; | 34 using net::test::QuicSentPacketManagerPeer; |
| 35 using net::test::QuicSessionPeer; | 35 using net::test::QuicSessionPeer; |
| 36 using net::test::QuicSpdySessionPeer; | 36 using net::test::QuicSpdySessionPeer; |
| 37 using net::test::QuicSustainedBandwidthRecorderPeer; | 37 using net::test::QuicSustainedBandwidthRecorderPeer; |
| 38 using net::test::SupportedVersions; | 38 using net::test::SupportedVersions; |
| 39 using net::test::ValueRestore; | 39 using net::test::ValueRestore; |
| 40 using net::test::kClientDataStreamId1; | 40 using net::test::kClientDataStreamId1; |
| 41 using net::test::kClientDataStreamId2; | 41 using net::test::kClientDataStreamId2; |
| 42 using net::test::kClientDataStreamId3; | 42 using net::test::kClientDataStreamId3; |
| 43 using net::test::kInitialSessionFlowControlWindowForTest; | 43 using net::test::kInitialSessionFlowControlWindowForTest; |
| (...skipping 443 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 487 QuicServerSessionPeer::IsBandwidthResumptionEnabled(session_.get())); | 487 QuicServerSessionPeer::IsBandwidthResumptionEnabled(session_.get())); |
| 488 session_->OnConfigNegotiated(); | 488 session_->OnConfigNegotiated(); |
| 489 EXPECT_FALSE( | 489 EXPECT_FALSE( |
| 490 QuicServerSessionPeer::IsBandwidthResumptionEnabled(session_.get())); | 490 QuicServerSessionPeer::IsBandwidthResumptionEnabled(session_.get())); |
| 491 } | 491 } |
| 492 | 492 |
| 493 } // namespace | 493 } // namespace |
| 494 } // namespace test | 494 } // namespace test |
| 495 } // namespace tools | 495 } // namespace tools |
| 496 } // namespace net | 496 } // namespace net |
| OLD | NEW |