OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |