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

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

Issue 734063004: Update from https://crrev.com/304418 (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 6 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 | « net/quic/quic_client_session_base.cc ('k') | net/quic/quic_config.h » ('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_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
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
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
OLDNEW
« no previous file with comments | « net/quic/quic_client_session_base.cc ('k') | net/quic/quic_config.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698