| 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 #include <memory> | 8 #include <memory> |
| 9 | 9 |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| (...skipping 25 matching lines...) Expand all Loading... |
| 36 using net::test::MockQuicConnection; | 36 using net::test::MockQuicConnection; |
| 37 using net::test::MockQuicConnectionHelper; | 37 using net::test::MockQuicConnectionHelper; |
| 38 using net::test::QuicConfigPeer; | 38 using net::test::QuicConfigPeer; |
| 39 using net::test::QuicConnectionPeer; | 39 using net::test::QuicConnectionPeer; |
| 40 using net::test::QuicSpdyStreamPeer; | 40 using net::test::QuicSpdyStreamPeer; |
| 41 using net::test::QuicSentPacketManagerPeer; | 41 using net::test::QuicSentPacketManagerPeer; |
| 42 using net::test::QuicSessionPeer; | 42 using net::test::QuicSessionPeer; |
| 43 using net::test::QuicSpdySessionPeer; | 43 using net::test::QuicSpdySessionPeer; |
| 44 using net::test::QuicSustainedBandwidthRecorderPeer; | 44 using net::test::QuicSustainedBandwidthRecorderPeer; |
| 45 using net::test::SupportedVersions; | 45 using net::test::SupportedVersions; |
| 46 using net::test::ValueRestore; | |
| 47 using net::test::kClientDataStreamId1; | 46 using net::test::kClientDataStreamId1; |
| 48 using net::test::kClientDataStreamId2; | 47 using net::test::kClientDataStreamId2; |
| 49 using net::test::kClientDataStreamId3; | 48 using net::test::kClientDataStreamId3; |
| 50 using net::test::kInitialSessionFlowControlWindowForTest; | 49 using net::test::kInitialSessionFlowControlWindowForTest; |
| 51 using net::test::kInitialStreamFlowControlWindowForTest; | 50 using net::test::kInitialStreamFlowControlWindowForTest; |
| 52 using std::string; | 51 using std::string; |
| 53 using testing::StrictMock; | 52 using testing::StrictMock; |
| 54 using testing::_; | 53 using testing::_; |
| 55 using testing::InSequence; | 54 using testing::InSequence; |
| 56 using testing::Return; | 55 using testing::Return; |
| (...skipping 563 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 620 .WillOnce(Return(QuicConsumedData(kStreamFlowControlWindowSize, false))); | 619 .WillOnce(Return(QuicConsumedData(kStreamFlowControlWindowSize, false))); |
| 621 | 620 |
| 622 EXPECT_CALL(*connection_, SendBlocked(stream_to_open)); | 621 EXPECT_CALL(*connection_, SendBlocked(stream_to_open)); |
| 623 QuicRstStreamFrame rst(stream_got_reset, QUIC_STREAM_CANCELLED, 0); | 622 QuicRstStreamFrame rst(stream_got_reset, QUIC_STREAM_CANCELLED, 0); |
| 624 visitor_->OnRstStream(rst); | 623 visitor_->OnRstStream(rst); |
| 625 } | 624 } |
| 626 | 625 |
| 627 } // namespace | 626 } // namespace |
| 628 } // namespace test | 627 } // namespace test |
| 629 } // namespace net | 628 } // namespace net |
| OLD | NEW |