| OLD | NEW |
| 1 // Copyright (c) 2014 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2014 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_client.h" | 5 #include "net/tools/quic/quic_simple_client.h" |
| 6 | 6 |
| 7 #include "base/strings/string_util.h" | 7 #include "base/strings/string_util.h" |
| 8 #include "net/quic/test_tools/crypto_test_utils.h" | 8 #include "net/quic/test_tools/crypto_test_utils.h" |
| 9 #include "net/quic/test_tools/quic_test_utils.h" | 9 #include "net/quic/test_tools/quic_test_utils.h" |
| 10 #include "testing/gtest/include/gtest/gtest.h" | 10 #include "testing/gtest/include/gtest/gtest.h" |
| 11 | 11 |
| 12 namespace net { | 12 namespace net { |
| 13 namespace test { | 13 namespace test { |
| 14 | 14 |
| 15 TEST(QuicSimpleClientTest, Initialize) { | 15 TEST(QuicSimpleClientTest, Initialize) { |
| 16 QuicSocketAddress server_address(QuicIpAddress::Loopback4(), 80); | 16 QuicSocketAddress server_address(QuicIpAddress::Loopback4(), 80); |
| 17 QuicServerId server_id("hostname", server_address.port(), | 17 QuicServerId server_id("hostname", server_address.port(), |
| 18 PRIVACY_MODE_DISABLED); | 18 PRIVACY_MODE_DISABLED); |
| 19 QuicVersionVector versions = AllSupportedVersions(); | 19 QuicVersionVector versions = AllSupportedVersions(); |
| 20 QuicSimpleClient client(server_address, server_id, versions, | 20 QuicSimpleClient client(server_address, server_id, versions, |
| 21 CryptoTestUtils::ProofVerifierForTesting()); | 21 crypto_test_utils::ProofVerifierForTesting()); |
| 22 EXPECT_TRUE(client.Initialize()); | 22 EXPECT_TRUE(client.Initialize()); |
| 23 } | 23 } |
| 24 | 24 |
| 25 } // namespace test | 25 } // namespace test |
| 26 } // namespace net | 26 } // namespace net |
| OLD | NEW |