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/cached_network_parameters.h" | 7 #include "net/quic/crypto/cached_network_parameters.h" |
8 #include "net/quic/crypto/quic_crypto_server_config.h" | 8 #include "net/quic/crypto/quic_crypto_server_config.h" |
9 #include "net/quic/crypto/quic_random.h" | 9 #include "net/quic/crypto/quic_random.h" |
10 #include "net/quic/quic_connection.h" | 10 #include "net/quic/quic_connection.h" |
(...skipping 19 matching lines...) Expand all Loading... |
30 using net::test::QuicDataStreamPeer; | 30 using net::test::QuicDataStreamPeer; |
31 using net::test::QuicSentPacketManagerPeer; | 31 using net::test::QuicSentPacketManagerPeer; |
32 using net::test::QuicSessionPeer; | 32 using net::test::QuicSessionPeer; |
33 using net::test::QuicSustainedBandwidthRecorderPeer; | 33 using net::test::QuicSustainedBandwidthRecorderPeer; |
34 using net::test::SupportedVersions; | 34 using net::test::SupportedVersions; |
35 using net::test::ValueRestore; | 35 using net::test::ValueRestore; |
36 using net::test::kClientDataStreamId1; | 36 using net::test::kClientDataStreamId1; |
37 using net::test::kClientDataStreamId2; | 37 using net::test::kClientDataStreamId2; |
38 using net::test::kClientDataStreamId3; | 38 using net::test::kClientDataStreamId3; |
39 using net::test::kClientDataStreamId4; | 39 using net::test::kClientDataStreamId4; |
| 40 using std::string; |
40 using testing::StrictMock; | 41 using testing::StrictMock; |
41 using testing::_; | 42 using testing::_; |
42 | 43 |
43 namespace net { | 44 namespace net { |
44 namespace tools { | 45 namespace tools { |
45 namespace test { | 46 namespace test { |
46 | 47 |
47 class QuicServerSessionPeer { | 48 class QuicServerSessionPeer { |
48 public: | 49 public: |
49 static QuicDataStream* GetIncomingDataStream( | 50 static QuicDataStream* GetIncomingDataStream( |
(...skipping 378 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
428 cached_network_params.set_serving_region(kTestServingRegion); | 429 cached_network_params.set_serving_region(kTestServingRegion); |
429 crypto_stream->set_previous_cached_network_params(cached_network_params); | 430 crypto_stream->set_previous_cached_network_params(cached_network_params); |
430 EXPECT_CALL(*connection_, ResumeConnectionState(_)).Times(1); | 431 EXPECT_CALL(*connection_, ResumeConnectionState(_)).Times(1); |
431 session_->OnConfigNegotiated(); | 432 session_->OnConfigNegotiated(); |
432 } | 433 } |
433 | 434 |
434 } // namespace | 435 } // namespace |
435 } // namespace test | 436 } // namespace test |
436 } // namespace tools | 437 } // namespace tools |
437 } // namespace net | 438 } // namespace net |
OLD | NEW |