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 "base/strings/string_number_conversions.h" | 8 #include "base/strings/string_number_conversions.h" |
9 #include "net/quic/crypto/crypto_framer.h" | 9 #include "net/quic/crypto/crypto_framer.h" |
10 #include "net/quic/crypto/crypto_handshake.h" | 10 #include "net/quic/crypto/crypto_handshake.h" |
(...skipping 553 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
564 config.SetDefaults(); | 564 config.SetDefaults(); |
565 return config; | 565 return config; |
566 } | 566 } |
567 | 567 |
568 QuicVersionVector SupportedVersions(QuicVersion version) { | 568 QuicVersionVector SupportedVersions(QuicVersion version) { |
569 QuicVersionVector versions; | 569 QuicVersionVector versions; |
570 versions.push_back(version); | 570 versions.push_back(version); |
571 return versions; | 571 return versions; |
572 } | 572 } |
573 | 573 |
574 bool TestDecompressorVisitor::OnDecompressedData(StringPiece data) { | |
575 data.AppendToString(&data_); | |
576 return true; | |
577 } | |
578 | |
579 void TestDecompressorVisitor::OnDecompressionError() { | |
580 error_ = true; | |
581 } | |
582 | |
583 } // namespace test | 574 } // namespace test |
584 } // namespace net | 575 } // namespace net |
OLD | NEW |