| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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/tools/quic/quic_simple_server_session_helper.h" | 5 #include "net/quic/test_tools/mock_random.h" |
| 6 #include "net/tools/quic/quic_simple_crypto_server_stream_helper.h" |
| 6 | 7 |
| 7 #include "net/quic/test_tools/mock_random.h" | |
| 8 #include "testing/gtest/include/gtest/gtest.h" | 8 #include "testing/gtest/include/gtest/gtest.h" |
| 9 | 9 |
| 10 namespace net { | 10 namespace net { |
| 11 | 11 |
| 12 TEST(QuicSimpleServerSessionHelperTest, GenerateConnectionIdForReject) { | 12 TEST(QuicSimpleCryptoServerStreamHelperTest, GenerateConnectionIdForReject) { |
| 13 test::MockRandom random; | 13 test::MockRandom random; |
| 14 QuicSimpleServerSessionHelper helper(&random); | 14 QuicSimpleCryptoServerStreamHelper helper(&random); |
| 15 | 15 |
| 16 EXPECT_EQ(random.RandUint64(), helper.GenerateConnectionIdForReject(42)); | 16 EXPECT_EQ(random.RandUint64(), helper.GenerateConnectionIdForReject(42)); |
| 17 } | 17 } |
| 18 | 18 |
| 19 } // namespace net | 19 } // namespace net |
| OLD | NEW |