| 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::kInitialFlowControlWindowForTest; | |
| 14 using net::test::MakeAckFrame; | 13 using net::test::MakeAckFrame; |
| 15 using net::test::MockHelper; | 14 using net::test::MockHelper; |
| 16 using net::test::QuicConnectionPeer; | 15 using net::test::QuicConnectionPeer; |
| 16 using net::test::kInitialFlowControlWindowForTest; |
| 17 | 17 |
| 18 namespace net { | 18 namespace net { |
| 19 namespace tools { | 19 namespace tools { |
| 20 namespace test { | 20 namespace test { |
| 21 | 21 |
| 22 MockConnection::MockConnection(bool is_server) | 22 MockConnection::MockConnection(bool is_server) |
| 23 : QuicConnection(kTestConnectionId, | 23 : QuicConnection(kTestConnectionId, |
| 24 IPEndPoint(net::test::Loopback4(), kTestPort), | 24 IPEndPoint(net::test::Loopback4(), kTestPort), |
| 25 new testing::NiceMock<MockHelper>(), | 25 new testing::NiceMock<MockHelper>(), |
| 26 new testing::NiceMock<MockPacketWriter>(), | 26 new testing::NiceMock<MockPacketWriter>(), |
| (...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 109 | 109 |
| 110 MockAckNotifierDelegate::MockAckNotifierDelegate() { | 110 MockAckNotifierDelegate::MockAckNotifierDelegate() { |
| 111 } | 111 } |
| 112 | 112 |
| 113 MockAckNotifierDelegate::~MockAckNotifierDelegate() { | 113 MockAckNotifierDelegate::~MockAckNotifierDelegate() { |
| 114 } | 114 } |
| 115 | 115 |
| 116 } // namespace test | 116 } // namespace test |
| 117 } // namespace tools | 117 } // namespace tools |
| 118 } // namespace net | 118 } // namespace net |
| OLD | NEW |