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