| 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/basictypes.h" | 7 #include "base/basictypes.h" |
| 8 #include "base/strings/string_util.h" | 8 #include "base/strings/string_util.h" |
| 9 #include "net/quic/test_tools/crypto_test_utils.h" |
| 9 #include "net/quic/test_tools/quic_test_utils.h" | 10 #include "net/quic/test_tools/quic_test_utils.h" |
| 10 #include "testing/gtest/include/gtest/gtest.h" | 11 #include "testing/gtest/include/gtest/gtest.h" |
| 11 | 12 |
| 13 using net::test::CryptoTestUtils; |
| 14 |
| 12 namespace net { | 15 namespace net { |
| 13 namespace tools { | 16 namespace tools { |
| 14 namespace test { | 17 namespace test { |
| 15 | 18 |
| 16 TEST(QuicSimpleClientTest, Initialize) { | 19 TEST(QuicSimpleClientTest, Initialize) { |
| 17 IPEndPoint server_address(IPEndPoint(net::test::Loopback4(), 80)); | 20 IPEndPoint server_address(IPEndPoint(net::test::Loopback4(), 80)); |
| 18 QuicServerId server_id("hostname", server_address.port(), false, | 21 QuicServerId server_id("hostname", server_address.port(), |
| 19 PRIVACY_MODE_DISABLED); | 22 PRIVACY_MODE_DISABLED); |
| 20 QuicVersionVector versions = QuicSupportedVersions(); | 23 QuicVersionVector versions = QuicSupportedVersions(); |
| 21 QuicSimpleClient client(server_address, server_id, versions); | 24 QuicSimpleClient client(server_address, server_id, versions, |
| 25 CryptoTestUtils::ProofVerifierForTesting()); |
| 22 EXPECT_TRUE(client.Initialize()); | 26 EXPECT_TRUE(client.Initialize()); |
| 23 } | 27 } |
| 24 | 28 |
| 25 } // namespace test | 29 } // namespace test |
| 26 } // namespace tools | 30 } // namespace tools |
| 27 } // namespace net | 31 } // namespace net |
| OLD | NEW |