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

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

Issue 15018013: Revert 198736 "Land Recent QUIC changes" (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 7 years, 7 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 | « trunk/src/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 "net/quic/test_tools/quic_test_utils.h" 7 #include "net/quic/test_tools/quic_test_utils.h"
8 #include "net/tools/quic/quic_epoll_connection_helper.h" 8 #include "net/tools/quic/quic_epoll_connection_helper.h"
9 9
10 using base::StringPiece;
11 using net::test::MockHelper; 10 using net::test::MockHelper;
12 11
13 namespace net { 12 namespace net {
14 namespace tools { 13 namespace tools {
15 namespace test { 14 namespace test {
16 15
17 MockConnection::MockConnection(QuicGuid guid, 16 MockConnection::MockConnection(QuicGuid guid,
18 IPEndPoint address, 17 IPEndPoint address,
19 int fd, 18 int fd,
20 EpollServer* eps, 19 EpollServer* eps,
(...skipping 20 matching lines...) Expand all
41 40
42 MockConnection::~MockConnection() { 41 MockConnection::~MockConnection() {
43 } 42 }
44 43
45 void MockConnection::AdvanceTime(QuicTime::Delta delta) { 44 void MockConnection::AdvanceTime(QuicTime::Delta delta) {
46 CHECK(has_mock_helper_) << "Cannot advance time unless a MockClock is being" 45 CHECK(has_mock_helper_) << "Cannot advance time unless a MockClock is being"
47 " used"; 46 " used";
48 static_cast<MockHelper*>(helper())->AdvanceTime(delta); 47 static_cast<MockHelper*>(helper())->AdvanceTime(delta);
49 } 48 }
50 49
51 bool TestDecompressorVisitor::OnDecompressedData(StringPiece data) {
52 data.AppendToString(&data_);
53 return true;
54 }
55
56 } // namespace test 50 } // namespace test
57 } // namespace tools 51 } // namespace tools
58 } // namespace net 52 } // namespace net
OLDNEW
« no previous file with comments | « trunk/src/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