Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(614)

Side by Side Diff: net/tools/quic/test_tools/quic_test_utils.cc

Issue 181483006: PACKET_NBYTE_GUID -> PACKET_NBYTE_CONNECTION_ID (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: small comment fix Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « net/tools/quic/test_tools/quic_test_utils.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 "base/sha1.h" 7 #include "base/sha1.h"
8 #include "net/quic/quic_connection.h" 8 #include "net/quic/quic_connection.h"
9 #include "net/quic/test_tools/quic_connection_peer.h" 9 #include "net/quic/test_tools/quic_connection_peer.h"
10 #include "net/quic/test_tools/quic_test_utils.h" 10 #include "net/quic/test_tools/quic_test_utils.h"
11 #include "net/tools/quic/quic_epoll_connection_helper.h" 11 #include "net/tools/quic/quic_epoll_connection_helper.h"
12 12
13 using base::StringPiece; 13 using base::StringPiece;
14 using net::test::MockHelper; 14 using net::test::MockHelper;
15 15
16 namespace net { 16 namespace net {
17 namespace tools { 17 namespace tools {
18 namespace test { 18 namespace test {
19 19
20 MockConnection::MockConnection(bool is_server) 20 MockConnection::MockConnection(bool is_server)
21 : QuicConnection(kTestGuid, 21 : QuicConnection(kTestConnectionId,
22 IPEndPoint(net::test::Loopback4(), kTestPort), 22 IPEndPoint(net::test::Loopback4(), kTestPort),
23 new testing::NiceMock<MockHelper>(), 23 new testing::NiceMock<MockHelper>(),
24 new testing::NiceMock<MockPacketWriter>(), 24 new testing::NiceMock<MockPacketWriter>(),
25 is_server, QuicSupportedVersions()), 25 is_server, QuicSupportedVersions()),
26 writer_(net::test::QuicConnectionPeer::GetWriter(this)), 26 writer_(net::test::QuicConnectionPeer::GetWriter(this)),
27 helper_(helper()) { 27 helper_(helper()) {
28 } 28 }
29 29
30 MockConnection::MockConnection(IPEndPoint address, 30 MockConnection::MockConnection(IPEndPoint address,
31 bool is_server) 31 bool is_server)
32 : QuicConnection(kTestGuid, address, 32 : QuicConnection(kTestConnectionId, address,
33 new testing::NiceMock<MockHelper>(), 33 new testing::NiceMock<MockHelper>(),
34 new testing::NiceMock<MockPacketWriter>(), 34 new testing::NiceMock<MockPacketWriter>(),
35 is_server, QuicSupportedVersions()), 35 is_server, QuicSupportedVersions()),
36 writer_(net::test::QuicConnectionPeer::GetWriter(this)), 36 writer_(net::test::QuicConnectionPeer::GetWriter(this)),
37 helper_(helper()) { 37 helper_(helper()) {
38 } 38 }
39 39
40 MockConnection::MockConnection(QuicGuid guid, 40 MockConnection::MockConnection(QuicConnectionId connection_id,
41 bool is_server) 41 bool is_server)
42 : QuicConnection(guid, 42 : QuicConnection(connection_id,
43 IPEndPoint(net::test::Loopback4(), kTestPort), 43 IPEndPoint(net::test::Loopback4(), kTestPort),
44 new testing::NiceMock<MockHelper>(), 44 new testing::NiceMock<MockHelper>(),
45 new testing::NiceMock<MockPacketWriter>(), 45 new testing::NiceMock<MockPacketWriter>(),
46 is_server, QuicSupportedVersions()), 46 is_server, QuicSupportedVersions()),
47 writer_(net::test::QuicConnectionPeer::GetWriter(this)), 47 writer_(net::test::QuicConnectionPeer::GetWriter(this)),
48 helper_(helper()) { 48 helper_(helper()) {
49 } 49 }
50 50
51 MockConnection::MockConnection(bool is_server, 51 MockConnection::MockConnection(bool is_server,
52 const QuicVersionVector& supported_versions) 52 const QuicVersionVector& supported_versions)
53 : QuicConnection(kTestGuid, 53 : QuicConnection(kTestConnectionId,
54 IPEndPoint(net::test::Loopback4(), kTestPort), 54 IPEndPoint(net::test::Loopback4(), kTestPort),
55 new testing::NiceMock<MockHelper>(), 55 new testing::NiceMock<MockHelper>(),
56 new testing::NiceMock<MockPacketWriter>(), 56 new testing::NiceMock<MockPacketWriter>(),
57 is_server, supported_versions), 57 is_server, supported_versions),
58 writer_(net::test::QuicConnectionPeer::GetWriter(this)), 58 writer_(net::test::QuicConnectionPeer::GetWriter(this)),
59 helper_(helper()) { 59 helper_(helper()) {
60 } 60 }
61 61
62 MockConnection::~MockConnection() { 62 MockConnection::~MockConnection() {
63 } 63 }
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
113 113
114 MockAckNotifierDelegate::MockAckNotifierDelegate() { 114 MockAckNotifierDelegate::MockAckNotifierDelegate() {
115 } 115 }
116 116
117 MockAckNotifierDelegate::~MockAckNotifierDelegate() { 117 MockAckNotifierDelegate::~MockAckNotifierDelegate() {
118 } 118 }
119 119
120 } // namespace test 120 } // namespace test
121 } // namespace tools 121 } // namespace tools
122 } // namespace net 122 } // namespace net
OLDNEW
« no previous file with comments | « net/tools/quic/test_tools/quic_test_utils.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698