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" |
11 #include "net/quic/crypto/crypto_handshake.h" | 11 #include "net/quic/crypto/crypto_handshake.h" |
12 #include "net/quic/crypto/crypto_utils.h" | 12 #include "net/quic/crypto/crypto_utils.h" |
13 #include "net/quic/crypto/null_encrypter.h" | 13 #include "net/quic/crypto/null_encrypter.h" |
14 #include "net/quic/crypto/quic_decrypter.h" | 14 #include "net/quic/crypto/quic_decrypter.h" |
15 #include "net/quic/crypto/quic_encrypter.h" | 15 #include "net/quic/crypto/quic_encrypter.h" |
16 #include "net/quic/quic_framer.h" | 16 #include "net/quic/quic_framer.h" |
17 #include "net/quic/quic_packet_creator.h" | 17 #include "net/quic/quic_packet_creator.h" |
18 #include "net/quic/quic_utils.h" | 18 #include "net/quic/quic_utils.h" |
19 #include "net/quic/test_tools/quic_connection_peer.h" | 19 #include "net/quic/test_tools/quic_connection_peer.h" |
20 #include "net/spdy/spdy_frame_builder.h" | 20 #include "net/spdy/spdy_frame_builder.h" |
21 | 21 |
22 using base::StringPiece; | 22 using base::StringPiece; |
23 using std::max; | 23 using std::max; |
24 using std::min; | 24 using std::min; |
25 using std::string; | 25 using std::string; |
| 26 using testing::AnyNumber; |
26 using testing::_; | 27 using testing::_; |
27 using testing::AnyNumber; | |
28 | 28 |
29 namespace net { | 29 namespace net { |
30 namespace test { | 30 namespace test { |
31 namespace { | 31 namespace { |
32 | 32 |
33 // No-op alarm implementation used by MockHelper. | 33 // No-op alarm implementation used by MockHelper. |
34 class TestAlarm : public QuicAlarm { | 34 class TestAlarm : public QuicAlarm { |
35 public: | 35 public: |
36 explicit TestAlarm(QuicAlarm::Delegate* delegate) | 36 explicit TestAlarm(QuicAlarm::Delegate* delegate) |
37 : QuicAlarm(delegate) { | 37 : QuicAlarm(delegate) { |
(...skipping 553 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
591 } | 591 } |
592 | 592 |
593 QuicVersionVector SupportedVersions(QuicVersion version) { | 593 QuicVersionVector SupportedVersions(QuicVersion version) { |
594 QuicVersionVector versions; | 594 QuicVersionVector versions; |
595 versions.push_back(version); | 595 versions.push_back(version); |
596 return versions; | 596 return versions; |
597 } | 597 } |
598 | 598 |
599 } // namespace test | 599 } // namespace test |
600 } // namespace net | 600 } // namespace net |
OLD | NEW |