Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(504)

Side by Side Diff: net/tools/quic/quic_simple_client_test.cc

Issue 1535363003: Switch to standard integer types in net/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: stddef Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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"
8 #include "base/strings/string_util.h" 7 #include "base/strings/string_util.h"
9 #include "net/quic/test_tools/crypto_test_utils.h" 8 #include "net/quic/test_tools/crypto_test_utils.h"
10 #include "net/quic/test_tools/quic_test_utils.h" 9 #include "net/quic/test_tools/quic_test_utils.h"
11 #include "testing/gtest/include/gtest/gtest.h" 10 #include "testing/gtest/include/gtest/gtest.h"
12 11
13 using net::test::CryptoTestUtils; 12 using net::test::CryptoTestUtils;
14 13
15 namespace net { 14 namespace net {
16 namespace tools { 15 namespace tools {
17 namespace test { 16 namespace test {
18 17
19 TEST(QuicSimpleClientTest, Initialize) { 18 TEST(QuicSimpleClientTest, Initialize) {
20 IPEndPoint server_address(IPEndPoint(net::test::Loopback4(), 80)); 19 IPEndPoint server_address(IPEndPoint(net::test::Loopback4(), 80));
21 QuicServerId server_id("hostname", server_address.port(), 20 QuicServerId server_id("hostname", server_address.port(),
22 PRIVACY_MODE_DISABLED); 21 PRIVACY_MODE_DISABLED);
23 QuicVersionVector versions = QuicSupportedVersions(); 22 QuicVersionVector versions = QuicSupportedVersions();
24 QuicSimpleClient client(server_address, server_id, versions, 23 QuicSimpleClient client(server_address, server_id, versions,
25 CryptoTestUtils::ProofVerifierForTesting()); 24 CryptoTestUtils::ProofVerifierForTesting());
26 EXPECT_TRUE(client.Initialize()); 25 EXPECT_TRUE(client.Initialize());
27 } 26 }
28 27
29 } // namespace test 28 } // namespace test
30 } // namespace tools 29 } // namespace tools
31 } // namespace net 30 } // namespace net
OLDNEW
« no previous file with comments | « net/tools/quic/quic_simple_client_bin.cc ('k') | net/tools/quic/quic_simple_per_connection_packet_writer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698