| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/test_tools/quic_test_utils.h" | 5 #include "net/tools/quic/test_tools/quic_test_utils.h" |
| 6 | 6 |
| 7 #include "net/quic/quic_connection.h" | 7 #include "net/quic/quic_connection.h" |
| 8 #include "net/quic/test_tools/quic_connection_peer.h" | 8 #include "net/quic/test_tools/quic_connection_peer.h" |
| 9 #include "net/quic/test_tools/quic_test_utils.h" | 9 #include "net/quic/test_tools/quic_test_utils.h" |
| 10 #include "net/tools/quic/quic_epoll_connection_helper.h" | 10 #include "net/tools/quic/quic_epoll_connection_helper.h" |
| 11 | 11 |
| 12 using base::StringPiece; | 12 using base::StringPiece; |
| 13 using net::test::MakeAckFrame; | 13 using net::test::MakeAckFrame; |
| 14 using net::test::MockHelper; | 14 using net::test::MockHelper; |
| 15 using net::test::QuicConnectionPeer; | 15 using net::test::QuicConnectionPeer; |
| 16 using net::test::kInitialFlowControlWindowForTest; | |
| 17 | 16 |
| 18 namespace net { | 17 namespace net { |
| 19 namespace tools { | 18 namespace tools { |
| 20 namespace test { | 19 namespace test { |
| 21 | 20 |
| 22 MockConnection::MockConnection(bool is_server) | 21 MockConnection::MockConnection(bool is_server) |
| 23 : QuicConnection(kTestConnectionId, | 22 : QuicConnection(kTestConnectionId, |
| 24 IPEndPoint(net::test::Loopback4(), kTestPort), | 23 IPEndPoint(net::test::Loopback4(), kTestPort), |
| 25 new testing::NiceMock<MockHelper>(), | 24 new testing::NiceMock<MockHelper>(), |
| 26 new testing::NiceMock<MockPacketWriter>(), | 25 new testing::NiceMock<MockPacketWriter>(), |
| (...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 109 | 108 |
| 110 MockAckNotifierDelegate::MockAckNotifierDelegate() { | 109 MockAckNotifierDelegate::MockAckNotifierDelegate() { |
| 111 } | 110 } |
| 112 | 111 |
| 113 MockAckNotifierDelegate::~MockAckNotifierDelegate() { | 112 MockAckNotifierDelegate::~MockAckNotifierDelegate() { |
| 114 } | 113 } |
| 115 | 114 |
| 116 } // namespace test | 115 } // namespace test |
| 117 } // namespace tools | 116 } // namespace tools |
| 118 } // namespace net | 117 } // namespace net |
| OLD | NEW |