| 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 813 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 824 | 824 |
| 825 *server_connection = new PacketSavingConnection(Perspective::IS_SERVER); | 825 *server_connection = new PacketSavingConnection(Perspective::IS_SERVER); |
| 826 *server_session = new TestQuicSpdyServerSession( | 826 *server_session = new TestQuicSpdyServerSession( |
| 827 *server_connection, DefaultQuicConfig(), server_crypto_config); | 827 *server_connection, DefaultQuicConfig(), server_crypto_config); |
| 828 | 828 |
| 829 // We advance the clock initially because the default time is zero and the | 829 // We advance the clock initially because the default time is zero and the |
| 830 // strike register worries that we've just overflowed a uint32 time. | 830 // strike register worries that we've just overflowed a uint32 time. |
| 831 (*server_connection)->AdvanceTime(connection_start_time); | 831 (*server_connection)->AdvanceTime(connection_start_time); |
| 832 } | 832 } |
| 833 | 833 |
| 834 QuicStreamId QuicClientDataStreamId(int i) { |
| 835 return kClientDataStreamId1 + 2 * i; |
| 836 } |
| 837 |
| 834 } // namespace test | 838 } // namespace test |
| 835 } // namespace net | 839 } // namespace net |
| OLD | NEW |