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

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

Issue 23464033: Land Recent QUIC changes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix valgrind error Created 7 years, 3 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/quic/test_tools/quic_test_utils.h ('k') | net/tools/quic/end_to_end_test.cc » ('j') | 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/quic/test_tools/quic_test_utils.h" 5 #include "net/quic/test_tools/quic_test_utils.h"
6 6
7 #include "base/stl_util.h" 7 #include "base/stl_util.h"
8 #include "net/quic/crypto/crypto_framer.h" 8 #include "net/quic/crypto/crypto_framer.h"
9 #include "net/quic/crypto/crypto_handshake.h" 9 #include "net/quic/crypto/crypto_handshake.h"
10 #include "net/quic/crypto/crypto_utils.h" 10 #include "net/quic/crypto/crypto_utils.h"
(...skipping 266 matching lines...) Expand 10 before | Expand all | Expand 10 after
277 QuicCryptoStream* TestSession::GetCryptoStream() { 277 QuicCryptoStream* TestSession::GetCryptoStream() {
278 return crypto_stream_; 278 return crypto_stream_;
279 } 279 }
280 280
281 MockSendAlgorithm::MockSendAlgorithm() { 281 MockSendAlgorithm::MockSendAlgorithm() {
282 } 282 }
283 283
284 MockSendAlgorithm::~MockSendAlgorithm() { 284 MockSendAlgorithm::~MockSendAlgorithm() {
285 } 285 }
286 286
287 MockAckNotifierDelegate::MockAckNotifierDelegate() {
288 }
289
290 MockAckNotifierDelegate::~MockAckNotifierDelegate() {
291 }
292
287 namespace { 293 namespace {
288 294
289 string HexDumpWithMarks(const char* data, int length, 295 string HexDumpWithMarks(const char* data, int length,
290 const bool* marks, int mark_length) { 296 const bool* marks, int mark_length) {
291 static const char kHexChars[] = "0123456789abcdef"; 297 static const char kHexChars[] = "0123456789abcdef";
292 static const int kColumns = 4; 298 static const int kColumns = 4;
293 299
294 const int kSizeLimit = 1024; 300 const int kSizeLimit = 1024;
295 if (length > kSizeLimit || mark_length > kSizeLimit) { 301 if (length > kSizeLimit || mark_length > kSizeLimit) {
296 LOG(ERROR) << "Only dumping first " << kSizeLimit << " bytes."; 302 LOG(ERROR) << "Only dumping first " << kSizeLimit << " bytes.";
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after
436 data.AppendToString(&data_); 442 data.AppendToString(&data_);
437 return true; 443 return true;
438 } 444 }
439 445
440 void TestDecompressorVisitor::OnDecompressionError() { 446 void TestDecompressorVisitor::OnDecompressionError() {
441 error_ = true; 447 error_ = true;
442 } 448 }
443 449
444 } // namespace test 450 } // namespace test
445 } // namespace net 451 } // namespace net
OLDNEW
« no previous file with comments | « net/quic/test_tools/quic_test_utils.h ('k') | net/tools/quic/end_to_end_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698