| 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 23 matching lines...) Expand all Loading... |
| 34 namespace net { | 34 namespace net { |
| 35 namespace test { | 35 namespace test { |
| 36 namespace { | 36 namespace { |
| 37 | 37 |
| 38 const char kServerHostname[] = "www.example.org"; | 38 const char kServerHostname[] = "www.example.org"; |
| 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_(new PacketSavingConnection(Perspective::IS_CLIENT, |
| 45 new PacketSavingConnection(false, SupportedVersions(GetParam()))), | 45 SupportedVersions(GetParam()))), |
| 46 session_(connection_, | 46 session_(connection_, |
| 47 GetSocket().Pass(), | 47 GetSocket().Pass(), |
| 48 nullptr, | 48 nullptr, |
| 49 &transport_security_state_, | 49 &transport_security_state_, |
| 50 make_scoped_ptr((QuicServerInfo*)nullptr), | 50 make_scoped_ptr((QuicServerInfo*)nullptr), |
| 51 DefaultQuicConfig(), | 51 DefaultQuicConfig(), |
| 52 "CONNECTION_UNKNOWN", | 52 "CONNECTION_UNKNOWN", |
| 53 base::TimeTicks::Now(), | 53 base::TimeTicks::Now(), |
| 54 base::MessageLoop::current()->message_loop_proxy().get(), | 54 base::MessageLoop::current()->message_loop_proxy().get(), |
| 55 &net_log_) { | 55 &net_log_) { |
| (...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 230 session_.OnProofVerifyDetailsAvailable(details); | 230 session_.OnProofVerifyDetailsAvailable(details); |
| 231 CompleteCryptoHandshake(); | 231 CompleteCryptoHandshake(); |
| 232 QuicClientSessionPeer::SetChannelIDSent(&session_, true); | 232 QuicClientSessionPeer::SetChannelIDSent(&session_, true); |
| 233 | 233 |
| 234 EXPECT_TRUE(session_.CanPool("mail.example.org", PRIVACY_MODE_DISABLED)); | 234 EXPECT_TRUE(session_.CanPool("mail.example.org", PRIVACY_MODE_DISABLED)); |
| 235 } | 235 } |
| 236 | 236 |
| 237 } // namespace | 237 } // namespace |
| 238 } // namespace test | 238 } // namespace test |
| 239 } // namespace net | 239 } // namespace net |
| OLD | NEW |