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_chromium_client_session.h" | 5 #include "net/quic/quic_chromium_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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
47 class QuicChromiumClientSessionTest | 47 class QuicChromiumClientSessionTest |
48 : public ::testing::TestWithParam<QuicVersion> { | 48 : public ::testing::TestWithParam<QuicVersion> { |
49 protected: | 49 protected: |
50 QuicChromiumClientSessionTest() | 50 QuicChromiumClientSessionTest() |
51 : crypto_config_(CryptoTestUtils::ProofVerifierForTesting()), | 51 : crypto_config_(CryptoTestUtils::ProofVerifierForTesting()), |
52 connection_(new PacketSavingConnection(&helper_, | 52 connection_(new PacketSavingConnection(&helper_, |
53 Perspective::IS_CLIENT, | 53 Perspective::IS_CLIENT, |
54 SupportedVersions(GetParam()))), | 54 SupportedVersions(GetParam()))), |
55 session_( | 55 session_( |
56 connection_, | 56 connection_, |
57 GetSocket().Pass(), | 57 GetSocket(), |
58 /*stream_factory=*/nullptr, | 58 /*stream_factory=*/nullptr, |
59 /*crypto_client_stream_factory=*/nullptr, | 59 /*crypto_client_stream_factory=*/nullptr, |
60 &clock_, | 60 &clock_, |
61 &transport_security_state_, | 61 &transport_security_state_, |
62 make_scoped_ptr((QuicServerInfo*)nullptr), | 62 make_scoped_ptr((QuicServerInfo*)nullptr), |
63 QuicServerId(kServerHostname, kServerPort, PRIVACY_MODE_DISABLED), | 63 QuicServerId(kServerHostname, kServerPort, PRIVACY_MODE_DISABLED), |
64 kQuicYieldAfterPacketsRead, | 64 kQuicYieldAfterPacketsRead, |
65 QuicTime::Delta::FromMilliseconds( | 65 QuicTime::Delta::FromMilliseconds( |
66 kQuicYieldAfterDurationMilliseconds), | 66 kQuicYieldAfterDurationMilliseconds), |
67 /*cert_verify_flags=*/0, | 67 /*cert_verify_flags=*/0, |
(...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
270 session_.OnProofVerifyDetailsAvailable(details); | 270 session_.OnProofVerifyDetailsAvailable(details); |
271 QuicChromiumClientSessionPeer::SetHostname(&session_, "www.example.org"); | 271 QuicChromiumClientSessionPeer::SetHostname(&session_, "www.example.org"); |
272 QuicChromiumClientSessionPeer::SetChannelIDSent(&session_, true); | 272 QuicChromiumClientSessionPeer::SetChannelIDSent(&session_, true); |
273 | 273 |
274 EXPECT_TRUE(session_.CanPool("mail.example.org", PRIVACY_MODE_DISABLED)); | 274 EXPECT_TRUE(session_.CanPool("mail.example.org", PRIVACY_MODE_DISABLED)); |
275 } | 275 } |
276 | 276 |
277 } // namespace | 277 } // namespace |
278 } // namespace test | 278 } // namespace test |
279 } // namespace net | 279 } // namespace net |
OLD | NEW |