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 <string> |
| 8 |
7 #include "net/quic/crypto/cached_network_parameters.h" | 9 #include "net/quic/crypto/cached_network_parameters.h" |
8 #include "net/quic/crypto/quic_crypto_server_config.h" | 10 #include "net/quic/crypto/quic_crypto_server_config.h" |
9 #include "net/quic/crypto/quic_random.h" | 11 #include "net/quic/crypto/quic_random.h" |
10 #include "net/quic/quic_connection.h" | 12 #include "net/quic/quic_connection.h" |
11 #include "net/quic/quic_crypto_server_stream.h" | 13 #include "net/quic/quic_crypto_server_stream.h" |
12 #include "net/quic/quic_flags.h" | 14 #include "net/quic/quic_flags.h" |
13 #include "net/quic/quic_utils.h" | 15 #include "net/quic/quic_utils.h" |
14 #include "net/quic/test_tools/quic_config_peer.h" | 16 #include "net/quic/test_tools/quic_config_peer.h" |
15 #include "net/quic/test_tools/quic_connection_peer.h" | 17 #include "net/quic/test_tools/quic_connection_peer.h" |
16 #include "net/quic/test_tools/quic_data_stream_peer.h" | 18 #include "net/quic/test_tools/quic_data_stream_peer.h" |
(...skipping 13 matching lines...) Expand all Loading... |
30 using net::test::QuicDataStreamPeer; | 32 using net::test::QuicDataStreamPeer; |
31 using net::test::QuicSentPacketManagerPeer; | 33 using net::test::QuicSentPacketManagerPeer; |
32 using net::test::QuicSessionPeer; | 34 using net::test::QuicSessionPeer; |
33 using net::test::QuicSustainedBandwidthRecorderPeer; | 35 using net::test::QuicSustainedBandwidthRecorderPeer; |
34 using net::test::SupportedVersions; | 36 using net::test::SupportedVersions; |
35 using net::test::ValueRestore; | 37 using net::test::ValueRestore; |
36 using net::test::kClientDataStreamId1; | 38 using net::test::kClientDataStreamId1; |
37 using net::test::kClientDataStreamId2; | 39 using net::test::kClientDataStreamId2; |
38 using net::test::kClientDataStreamId3; | 40 using net::test::kClientDataStreamId3; |
39 using net::test::kClientDataStreamId4; | 41 using net::test::kClientDataStreamId4; |
| 42 using std::string; |
40 using testing::StrictMock; | 43 using testing::StrictMock; |
41 using testing::_; | 44 using testing::_; |
42 | 45 |
43 namespace net { | 46 namespace net { |
44 namespace tools { | 47 namespace tools { |
45 namespace test { | 48 namespace test { |
46 | 49 |
47 class QuicServerSessionPeer { | 50 class QuicServerSessionPeer { |
48 public: | 51 public: |
49 static QuicDataStream* GetIncomingDataStream( | 52 static QuicDataStream* GetIncomingDataStream( |
(...skipping 368 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
418 cached_network_params.set_serving_region(kTestServingRegion); | 421 cached_network_params.set_serving_region(kTestServingRegion); |
419 crypto_stream->set_previous_cached_network_params(cached_network_params); | 422 crypto_stream->set_previous_cached_network_params(cached_network_params); |
420 EXPECT_CALL(*connection_, ResumeConnectionState(_)).Times(1); | 423 EXPECT_CALL(*connection_, ResumeConnectionState(_)).Times(1); |
421 session_->OnConfigNegotiated(); | 424 session_->OnConfigNegotiated(); |
422 } | 425 } |
423 | 426 |
424 } // namespace | 427 } // namespace |
425 } // namespace test | 428 } // namespace test |
426 } // namespace tools | 429 } // namespace tools |
427 } // namespace net | 430 } // namespace net |
OLD | NEW |