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

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

Issue 1165283004: Add a new prefer_aes finch options for QUIC. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 5 years, 6 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_stream_factory.cc ('k') | no next file » | 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_stream_factory.h" 5 #include "net/quic/quic_stream_factory.h"
6 6
7 #include "base/run_loop.h" 7 #include "base/run_loop.h"
8 #include "base/strings/string_util.h" 8 #include "base/strings/string_util.h"
9 #include "net/base/test_data_directory.h" 9 #include "net/base/test_data_directory.h"
10 #include "net/cert/cert_verifier.h" 10 #include "net/cert/cert_verifier.h"
(...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after
211 kDefaultMaxPacketSize, 211 kDefaultMaxPacketSize,
212 std::string(), 212 std::string(),
213 SupportedVersions(GetParam().version), 213 SupportedVersions(GetParam().version),
214 /*enable_port_selection=*/true, 214 /*enable_port_selection=*/true,
215 /*always_require_handshake_confirmation=*/false, 215 /*always_require_handshake_confirmation=*/false,
216 /*disable_connection_pooling=*/false, 216 /*disable_connection_pooling=*/false,
217 /*load_server_info_timeout_srtt_multiplier=*/0.0f, 217 /*load_server_info_timeout_srtt_multiplier=*/0.0f,
218 /*enable_connection_racing=*/false, 218 /*enable_connection_racing=*/false,
219 /*enable_non_blocking_io=*/true, 219 /*enable_non_blocking_io=*/true,
220 /*disable_disk_cache=*/false, 220 /*disable_disk_cache=*/false,
221 /*prefer_aes=*/false,
221 /*max_number_of_lossy_connections=*/0, 222 /*max_number_of_lossy_connections=*/0,
222 /*packet_loss_threshold=*/1.0f, 223 /*packet_loss_threshold=*/1.0f,
223 /*receive_buffer_size=*/0, 224 /*receive_buffer_size=*/0,
224 QuicTagVector()), 225 QuicTagVector()),
225 host_port_pair_(kDefaultServerHostName, kDefaultServerPort), 226 host_port_pair_(kDefaultServerHostName, kDefaultServerPort),
226 is_https_(false), 227 is_https_(false),
227 privacy_mode_(PRIVACY_MODE_DISABLED) { 228 privacy_mode_(PRIVACY_MODE_DISABLED) {
228 factory_.set_require_confirmation(false); 229 factory_.set_require_confirmation(false);
229 clock_->AdvanceTime(QuicTime::Delta::FromSeconds(1)); 230 clock_->AdvanceTime(QuicTime::Delta::FromSeconds(1));
230 QuicStreamFactoryPeer::SetEnableConnectionRacing( 231 QuicStreamFactoryPeer::SetEnableConnectionRacing(
(...skipping 1470 matching lines...) Expand 10 before | Expand all | Expand 10 after
1701 EXPECT_TRUE(socket_data.AllReadDataConsumed()); 1702 EXPECT_TRUE(socket_data.AllReadDataConsumed());
1702 EXPECT_TRUE(socket_data.AllWriteDataConsumed()); 1703 EXPECT_TRUE(socket_data.AllWriteDataConsumed());
1703 EXPECT_TRUE(socket_data2.AllReadDataConsumed()); 1704 EXPECT_TRUE(socket_data2.AllReadDataConsumed());
1704 EXPECT_TRUE(socket_data2.AllWriteDataConsumed()); 1705 EXPECT_TRUE(socket_data2.AllWriteDataConsumed());
1705 EXPECT_TRUE(socket_data3.AllReadDataConsumed()); 1706 EXPECT_TRUE(socket_data3.AllReadDataConsumed());
1706 EXPECT_TRUE(socket_data3.AllWriteDataConsumed()); 1707 EXPECT_TRUE(socket_data3.AllWriteDataConsumed());
1707 } 1708 }
1708 1709
1709 } // namespace test 1710 } // namespace test
1710 } // namespace net 1711 } // namespace net
OLDNEW
« no previous file with comments | « net/quic/quic_stream_factory.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698