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

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

Issue 15074007: Land Recent QUIC changes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix for windows 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 | « 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; 10 using base::StringPiece;
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 CHECK(has_mock_helper_) << "Cannot advance time unless a MockClock is being" 47 CHECK(has_mock_helper_) << "Cannot advance time unless a MockClock is being"
48 " used"; 48 " used";
49 static_cast<MockHelper*>(helper())->AdvanceTime(delta); 49 static_cast<MockHelper*>(helper())->AdvanceTime(delta);
50 } 50 }
51 51
52 bool TestDecompressorVisitor::OnDecompressedData(StringPiece data) { 52 bool TestDecompressorVisitor::OnDecompressedData(StringPiece data) {
53 data.AppendToString(&data_); 53 data.AppendToString(&data_);
54 return true; 54 return true;
55 } 55 }
56 56
57 TestSession::TestSession(QuicConnection* connection, bool is_server) 57 void TestDecompressorVisitor::OnDecompressionError() {
58 : QuicSession(connection, is_server), 58 error_ = true;
59 }
60
61 TestSession::TestSession(QuicConnection* connection,
62 const QuicConfig& config,
63 bool is_server)
64 : QuicSession(connection, config, is_server),
59 crypto_stream_(NULL) { 65 crypto_stream_(NULL) {
60 } 66 }
61 67
62 TestSession::~TestSession() {} 68 TestSession::~TestSession() {}
63 69
64 void TestSession::SetCryptoStream(QuicCryptoStream* stream) { 70 void TestSession::SetCryptoStream(QuicCryptoStream* stream) {
65 crypto_stream_ = stream; 71 crypto_stream_ = stream;
66 } 72 }
67 73
68 QuicCryptoStream* TestSession::GetCryptoStream() { 74 QuicCryptoStream* TestSession::GetCryptoStream() {
69 return crypto_stream_; 75 return crypto_stream_;
70 } 76 }
71 77
72 } // namespace test 78 } // namespace test
73 } // namespace tools 79 } // namespace tools
74 } // namespace net 80 } // 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