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

Side by Side Diff: net/tools/quic/quic_client_session_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
« no previous file with comments | « net/tools/quic/quic_client_session.h ('k') | net/tools/quic/quic_client_test.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_client_session.h" 5 #include "net/tools/quic/quic_client_session.h"
6 6
7 #include <vector> 7 #include <vector>
8 8
9 #include "net/base/ip_endpoint.h" 9 #include "net/base/ip_endpoint.h"
10 #include "net/quic/crypto/aes_128_gcm_12_encrypter.h" 10 #include "net/quic/crypto/aes_128_gcm_12_encrypter.h"
(...skipping 24 matching lines...) Expand all
35 using testing::Invoke; 35 using testing::Invoke;
36 using testing::Truly; 36 using testing::Truly;
37 using testing::_; 37 using testing::_;
38 38
39 namespace net { 39 namespace net {
40 namespace tools { 40 namespace tools {
41 namespace test { 41 namespace test {
42 namespace { 42 namespace {
43 43
44 const char kServerHostname[] = "test.example.com"; 44 const char kServerHostname[] = "test.example.com";
45 const uint16 kPort = 80; 45 const uint16_t kPort = 80;
46 46
47 class ToolsQuicClientSessionTest 47 class ToolsQuicClientSessionTest
48 : public ::testing::TestWithParam<QuicVersion> { 48 : public ::testing::TestWithParam<QuicVersion> {
49 protected: 49 protected:
50 ToolsQuicClientSessionTest() 50 ToolsQuicClientSessionTest()
51 : crypto_config_(CryptoTestUtils::ProofVerifierForTesting()) { 51 : crypto_config_(CryptoTestUtils::ProofVerifierForTesting()) {
52 Initialize(); 52 Initialize();
53 // Advance the time, because timers do not like uninitialized times. 53 // Advance the time, because timers do not like uninitialized times.
54 connection_->AdvanceTime(QuicTime::Delta::FromSeconds(1)); 54 connection_->AdvanceTime(QuicTime::Delta::FromSeconds(1));
55 } 55 }
(...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after
265 PACKET_6BYTE_PACKET_NUMBER, nullptr)); 265 PACKET_6BYTE_PACKET_NUMBER, nullptr));
266 EXPECT_CALL(*connection_, SendConnectionCloseWithDetails(_, _)).Times(1); 266 EXPECT_CALL(*connection_, SendConnectionCloseWithDetails(_, _)).Times(1);
267 session_->connection()->ProcessUdpPacket(client_address, server_address, 267 session_->connection()->ProcessUdpPacket(client_address, server_address,
268 *packet); 268 *packet);
269 } 269 }
270 270
271 } // namespace 271 } // namespace
272 } // namespace test 272 } // namespace test
273 } // namespace tools 273 } // namespace tools
274 } // namespace net 274 } // namespace net
OLDNEW
« no previous file with comments | « net/tools/quic/quic_client_session.h ('k') | net/tools/quic/quic_client_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698