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

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

Issue 1305293004: Notfiy NQE of QUIC RTT (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Updated with more comments and tests Created 5 years, 3 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
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 "base/thread_task_runner_handle.h" 9 #include "base/thread_task_runner_handle.h"
10 #include "net/base/test_data_directory.h" 10 #include "net/base/test_data_directory.h"
(...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after
222 channel_id_service_( 222 channel_id_service_(
223 new ChannelIDService(new DefaultChannelIDStore(nullptr), 223 new ChannelIDService(new DefaultChannelIDStore(nullptr),
224 base::ThreadTaskRunnerHandle::Get())), 224 base::ThreadTaskRunnerHandle::Get())),
225 factory_(&host_resolver_, 225 factory_(&host_resolver_,
226 &socket_factory_, 226 &socket_factory_,
227 base::WeakPtr<HttpServerProperties>(), 227 base::WeakPtr<HttpServerProperties>(),
228 cert_verifier_.get(), 228 cert_verifier_.get(),
229 nullptr, 229 nullptr,
230 channel_id_service_.get(), 230 channel_id_service_.get(),
231 &transport_security_state_, 231 &transport_security_state_,
232 nullptr,
232 &crypto_client_stream_factory_, 233 &crypto_client_stream_factory_,
233 &random_generator_, 234 &random_generator_,
234 clock_, 235 clock_,
235 kDefaultMaxPacketSize, 236 kDefaultMaxPacketSize,
236 std::string(), 237 std::string(),
237 SupportedVersions(GetParam().version), 238 SupportedVersions(GetParam().version),
238 /*enable_port_selection=*/true, 239 /*enable_port_selection=*/true,
239 /*always_require_handshake_confirmation=*/false, 240 /*always_require_handshake_confirmation=*/false,
240 /*disable_connection_pooling=*/false, 241 /*disable_connection_pooling=*/false,
241 /*load_server_info_timeout_srtt_multiplier=*/0.0f, 242 /*load_server_info_timeout_srtt_multiplier=*/0.0f,
(...skipping 2206 matching lines...) Expand 10 before | Expand all | Expand 10 after
2448 EXPECT_TRUE(socket_data2.AllReadDataConsumed()); 2449 EXPECT_TRUE(socket_data2.AllReadDataConsumed());
2449 EXPECT_TRUE(socket_data2.AllWriteDataConsumed()); 2450 EXPECT_TRUE(socket_data2.AllWriteDataConsumed());
2450 EXPECT_TRUE(socket_data3.AllReadDataConsumed()); 2451 EXPECT_TRUE(socket_data3.AllReadDataConsumed());
2451 EXPECT_TRUE(socket_data3.AllWriteDataConsumed()); 2452 EXPECT_TRUE(socket_data3.AllWriteDataConsumed());
2452 EXPECT_TRUE(socket_data4.AllReadDataConsumed()); 2453 EXPECT_TRUE(socket_data4.AllReadDataConsumed());
2453 EXPECT_TRUE(socket_data4.AllWriteDataConsumed()); 2454 EXPECT_TRUE(socket_data4.AllWriteDataConsumed());
2454 } 2455 }
2455 2456
2456 } // namespace test 2457 } // namespace test
2457 } // namespace net 2458 } // namespace net
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698