| 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 <memory> | 7 #include <memory> |
| 8 | 8 |
| 9 #include "base/sha1.h" | 9 #include "base/sha1.h" |
| 10 #include "base/stl_util.h" | 10 #include "base/stl_util.h" |
| 11 #include "base/strings/string_number_conversions.h" | 11 #include "base/strings/string_number_conversions.h" |
| 12 #include "net/quic/crypto/crypto_framer.h" | 12 #include "net/quic/core/crypto/crypto_framer.h" |
| 13 #include "net/quic/crypto/crypto_handshake.h" | 13 #include "net/quic/core/crypto/crypto_handshake.h" |
| 14 #include "net/quic/crypto/crypto_utils.h" | 14 #include "net/quic/core/crypto/crypto_utils.h" |
| 15 #include "net/quic/crypto/null_encrypter.h" | 15 #include "net/quic/core/crypto/null_encrypter.h" |
| 16 #include "net/quic/crypto/quic_decrypter.h" | 16 #include "net/quic/core/crypto/quic_decrypter.h" |
| 17 #include "net/quic/crypto/quic_encrypter.h" | 17 #include "net/quic/core/crypto/quic_encrypter.h" |
| 18 #include "net/quic/quic_data_writer.h" | 18 #include "net/quic/core/quic_data_writer.h" |
| 19 #include "net/quic/quic_framer.h" | 19 #include "net/quic/core/quic_framer.h" |
| 20 #include "net/quic/quic_packet_creator.h" | 20 #include "net/quic/core/quic_packet_creator.h" |
| 21 #include "net/quic/quic_utils.h" | 21 #include "net/quic/core/quic_utils.h" |
| 22 #include "net/quic/test_tools/crypto_test_utils.h" | 22 #include "net/quic/test_tools/crypto_test_utils.h" |
| 23 #include "net/quic/test_tools/quic_connection_peer.h" | 23 #include "net/quic/test_tools/quic_connection_peer.h" |
| 24 #include "net/spdy/spdy_frame_builder.h" | 24 #include "net/spdy/spdy_frame_builder.h" |
| 25 #include "net/tools/quic/quic_per_connection_packet_writer.h" | 25 #include "net/tools/quic/quic_per_connection_packet_writer.h" |
| 26 | 26 |
| 27 using base::StringPiece; | 27 using base::StringPiece; |
| 28 using std::max; | 28 using std::max; |
| 29 using std::min; | 29 using std::min; |
| 30 using std::string; | 30 using std::string; |
| 31 using testing::Invoke; | 31 using testing::Invoke; |
| (...skipping 861 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 893 // strike register worries that we've just overflowed a uint32_t time. | 893 // strike register worries that we've just overflowed a uint32_t time. |
| 894 (*server_connection)->AdvanceTime(connection_start_time); | 894 (*server_connection)->AdvanceTime(connection_start_time); |
| 895 } | 895 } |
| 896 | 896 |
| 897 QuicStreamId QuicClientDataStreamId(int i) { | 897 QuicStreamId QuicClientDataStreamId(int i) { |
| 898 return kClientDataStreamId1 + 2 * i; | 898 return kClientDataStreamId1 + 2 * i; |
| 899 } | 899 } |
| 900 | 900 |
| 901 } // namespace test | 901 } // namespace test |
| 902 } // namespace net | 902 } // namespace net |
| OLD | NEW |