| // Copyright (c) 2014 The Chromium Authors. All rights reserved. |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| |
| #include "net/tools/quic/quic_simple_client.h" |
| |
| #include "base/strings/string_util.h" |
| #include "base/test/scoped_task_environment.h" |
| #include "net/third_party/quic/test_tools/crypto_test_utils.h" |
| #include "net/third_party/quic/test_tools/quic_test_utils.h" |
| #include "testing/gtest/include/gtest/gtest.h" |
| |
| namespace net { |
| namespace test { |
| |
| TEST(QuicSimpleClientTest, Initialize) { |
| base::test::ScopedTaskEnvironment scoped_task_environment; |
| quic::QuicSocketAddress server_address(quic::QuicIpAddress::Loopback4(), 80); |
| quic::QuicServerId server_id("hostname", server_address.port(), false); |
| quic::ParsedQuicVersionVector versions = quic::AllSupportedVersions(); |
| QuicSimpleClient client( |
| server_address, server_id, versions, |
| quic::test::crypto_test_utils::ProofVerifierForTesting()); |
| EXPECT_TRUE(client.Initialize()); |
| } |
| |
| } // namespace test |
| } // namespace net |