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 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
87 } | 87 } |
88 | 88 |
89 void CompleteCryptoHandshake() { | 89 void CompleteCryptoHandshake() { |
90 ASSERT_EQ(ERR_IO_PENDING, | 90 ASSERT_EQ(ERR_IO_PENDING, |
91 session_.CryptoConnect(false, callback_.callback())); | 91 session_.CryptoConnect(false, callback_.callback())); |
92 CryptoTestUtils::HandshakeWithFakeServer(&helper_, connection_, | 92 CryptoTestUtils::HandshakeWithFakeServer(&helper_, connection_, |
93 session_.GetCryptoStream()); | 93 session_.GetCryptoStream()); |
94 ASSERT_EQ(OK, callback_.WaitForResult()); | 94 ASSERT_EQ(OK, callback_.WaitForResult()); |
95 } | 95 } |
96 | 96 |
97 MockHelper helper_; | 97 MockConnectionHelper helper_; |
98 QuicCryptoClientConfig crypto_config_; | 98 QuicCryptoClientConfig crypto_config_; |
99 PacketSavingConnection* connection_; | 99 PacketSavingConnection* connection_; |
100 TestNetLog net_log_; | 100 TestNetLog net_log_; |
101 MockClientSocketFactory socket_factory_; | 101 MockClientSocketFactory socket_factory_; |
102 StaticSocketDataProvider socket_data_; | 102 StaticSocketDataProvider socket_data_; |
103 TransportSecurityState transport_security_state_; | 103 TransportSecurityState transport_security_state_; |
104 QuicChromiumClientSession session_; | 104 QuicChromiumClientSession session_; |
105 MockClock clock_; | 105 MockClock clock_; |
106 MockRandom random_; | 106 MockRandom random_; |
107 QuicConnectionVisitorInterface* visitor_; | 107 QuicConnectionVisitorInterface* visitor_; |
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
256 QuicChromiumClientSessionPeer::SetChannelIDSent(&session_, true); | 256 QuicChromiumClientSessionPeer::SetChannelIDSent(&session_, true); |
257 | 257 |
258 EXPECT_TRUE(session_.CanPool("mail.example.org", PRIVACY_MODE_DISABLED)); | 258 EXPECT_TRUE(session_.CanPool("mail.example.org", PRIVACY_MODE_DISABLED)); |
259 } | 259 } |
260 | 260 |
261 #endif | 261 #endif |
262 | 262 |
263 } // namespace | 263 } // namespace |
264 } // namespace test | 264 } // namespace test |
265 } // namespace net | 265 } // namespace net |
OLD | NEW |