Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(138)

Side by Side Diff: net/quic/quic_chromium_client_session_test.cc

Issue 1433433003: Rename MockHelper to the more descriptive (and more consistent with other Mock classes) MockConnect… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@106414015
Patch Set: Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | net/quic/quic_connection_logger_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « no previous file | net/quic/quic_connection_logger_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698