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

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

Issue 399153003: Land Recent QUIC Changes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Added NET_EXPORT_PRIVATE Created 6 years, 5 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/sha1.h" 7 #include "base/sha1.h"
8 #include "base/stl_util.h" 8 #include "base/stl_util.h"
9 #include "base/strings/string_number_conversions.h" 9 #include "base/strings/string_number_conversions.h"
10 #include "net/quic/crypto/crypto_framer.h" 10 #include "net/quic/crypto/crypto_framer.h"
(...skipping 350 matching lines...) Expand 10 before | Expand all | Expand 10 after
361 361
362 MockLossAlgorithm::~MockLossAlgorithm() { 362 MockLossAlgorithm::~MockLossAlgorithm() {
363 } 363 }
364 364
365 MockAckNotifierDelegate::MockAckNotifierDelegate() { 365 MockAckNotifierDelegate::MockAckNotifierDelegate() {
366 } 366 }
367 367
368 MockAckNotifierDelegate::~MockAckNotifierDelegate() { 368 MockAckNotifierDelegate::~MockAckNotifierDelegate() {
369 } 369 }
370 370
371 MockNetworkChangeVisitor::MockNetworkChangeVisitor() {
372 }
373
374 MockNetworkChangeVisitor::~MockNetworkChangeVisitor() {
375 }
376
371 namespace { 377 namespace {
372 378
373 string HexDumpWithMarks(const char* data, int length, 379 string HexDumpWithMarks(const char* data, int length,
374 const bool* marks, int mark_length) { 380 const bool* marks, int mark_length) {
375 static const char kHexChars[] = "0123456789abcdef"; 381 static const char kHexChars[] = "0123456789abcdef";
376 static const int kColumns = 4; 382 static const int kColumns = 4;
377 383
378 const int kSizeLimit = 1024; 384 const int kSizeLimit = 1024;
379 if (length > kSizeLimit || mark_length > kSizeLimit) { 385 if (length > kSizeLimit || mark_length > kSizeLimit) {
380 LOG(ERROR) << "Only dumping first " << kSizeLimit << " bytes."; 386 LOG(ERROR) << "Only dumping first " << kSizeLimit << " bytes.";
(...skipping 218 matching lines...) Expand 10 before | Expand all | Expand 10 after
599 } 605 }
600 606
601 QuicVersionVector SupportedVersions(QuicVersion version) { 607 QuicVersionVector SupportedVersions(QuicVersion version) {
602 QuicVersionVector versions; 608 QuicVersionVector versions;
603 versions.push_back(version); 609 versions.push_back(version);
604 return versions; 610 return versions;
605 } 611 }
606 612
607 } // namespace test 613 } // namespace test
608 } // namespace net 614 } // 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