blob: 2c6baef3145c5a508334c7b57e6b7e437d896583 [file] [log] [blame]
// 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 "net/quic/test_tools/crypto_test_utils.h"
#include "net/quic/test_tools/quic_test_utils.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace net {
namespace test {
TEST(QuicSimpleClientTest, Initialize) {
QuicSocketAddress server_address(QuicIpAddress::Loopback4(), 80);
QuicServerId server_id("hostname", server_address.port(),
PRIVACY_MODE_DISABLED);
QuicTransportVersionVector versions = AllSupportedTransportVersions();
QuicSimpleClient client(server_address, server_id, versions,
crypto_test_utils::ProofVerifierForTesting());
EXPECT_TRUE(client.Initialize());
}
} // namespace test
} // namespace net