OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |