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

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

Issue 1545233002: Convert Pass()→std::move() in //net (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 12 months 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_chromium_client_session.cc ('k') | net/quic/quic_connection_logger.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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
OLDNEW
« no previous file with comments | « net/quic/quic_chromium_client_session.cc ('k') | net/quic/quic_connection_logger.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698