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/quic/quic_client_session.h" | 5 #include "net/quic/quic_client_session.h" |
6 | 6 |
7 #include <vector> | 7 #include <vector> |
8 | 8 |
9 #include "base/base64.h" | 9 #include "base/base64.h" |
10 #include "base/files/file_path.h" | 10 #include "base/files/file_path.h" |
(...skipping 28 matching lines...) Expand all Loading... |
39 const uint16 kServerPort = 80; | 39 const uint16 kServerPort = 80; |
40 | 40 |
41 class QuicClientSessionTest : public ::testing::TestWithParam<QuicVersion> { | 41 class QuicClientSessionTest : public ::testing::TestWithParam<QuicVersion> { |
42 protected: | 42 protected: |
43 QuicClientSessionTest() | 43 QuicClientSessionTest() |
44 : connection_( | 44 : connection_( |
45 new PacketSavingConnection(false, SupportedVersions(GetParam()))), | 45 new PacketSavingConnection(false, SupportedVersions(GetParam()))), |
46 session_(connection_, GetSocket().Pass(), nullptr, | 46 session_(connection_, GetSocket().Pass(), nullptr, |
47 &transport_security_state_, | 47 &transport_security_state_, |
48 make_scoped_ptr((QuicServerInfo*)nullptr), DefaultQuicConfig(), | 48 make_scoped_ptr((QuicServerInfo*)nullptr), DefaultQuicConfig(), |
49 /*is_secure=*/false, | |
50 base::MessageLoop::current()->message_loop_proxy().get(), | 49 base::MessageLoop::current()->message_loop_proxy().get(), |
51 &net_log_) { | 50 &net_log_) { |
52 session_.InitializeSession(QuicServerId(kServerHostname, kServerPort, | 51 session_.InitializeSession(QuicServerId(kServerHostname, kServerPort, |
53 /*is_secure=*/false, | 52 /*is_secure=*/false, |
54 PRIVACY_MODE_DISABLED), | 53 PRIVACY_MODE_DISABLED), |
55 &crypto_config_, nullptr); | 54 &crypto_config_, nullptr); |
56 } | 55 } |
57 | 56 |
58 void TearDown() override { session_.CloseSessionOnError(ERR_ABORTED); } | 57 void TearDown() override { session_.CloseSessionOnError(ERR_ABORTED); } |
59 | 58 |
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
224 session_.OnProofVerifyDetailsAvailable(details); | 223 session_.OnProofVerifyDetailsAvailable(details); |
225 CompleteCryptoHandshake(); | 224 CompleteCryptoHandshake(); |
226 QuicClientSessionPeer::SetChannelIDSent(&session_, true); | 225 QuicClientSessionPeer::SetChannelIDSent(&session_, true); |
227 | 226 |
228 EXPECT_TRUE(session_.CanPool("mail.example.org")); | 227 EXPECT_TRUE(session_.CanPool("mail.example.org")); |
229 } | 228 } |
230 | 229 |
231 } // namespace | 230 } // namespace |
232 } // namespace test | 231 } // namespace test |
233 } // namespace net | 232 } // namespace net |
OLD | NEW |