OLD | NEW |
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 <ostream> | 7 #include <ostream> |
8 | 8 |
9 #include "base/run_loop.h" | 9 #include "base/run_loop.h" |
10 #include "base/strings/string_util.h" | 10 #include "base/strings/string_util.h" |
(...skipping 276 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
287 enable_connection_racing_(enable_connection_racing), | 287 enable_connection_racing_(enable_connection_racing), |
288 enable_non_blocking_io_(true), | 288 enable_non_blocking_io_(true), |
289 disable_disk_cache_(false), | 289 disable_disk_cache_(false), |
290 prefer_aes_(false), | 290 prefer_aes_(false), |
291 max_number_of_lossy_connections_(0), | 291 max_number_of_lossy_connections_(0), |
292 packet_loss_threshold_(1.0f), | 292 packet_loss_threshold_(1.0f), |
293 max_disabled_reasons_(3), | 293 max_disabled_reasons_(3), |
294 threshold_timeouts_with_open_streams_(2), | 294 threshold_timeouts_with_open_streams_(2), |
295 threshold_public_resets_post_handshake_(2), | 295 threshold_public_resets_post_handshake_(2), |
296 receive_buffer_size_(0), | 296 receive_buffer_size_(0), |
297 delay_tcp_race_(false), | 297 delay_tcp_race_(true), |
298 close_sessions_on_ip_change_(false), | 298 close_sessions_on_ip_change_(false), |
299 disable_quic_on_timeout_with_open_streams_(false), | 299 disable_quic_on_timeout_with_open_streams_(false), |
300 idle_connection_timeout_seconds_(kIdleConnectionTimeoutSeconds), | 300 idle_connection_timeout_seconds_(kIdleConnectionTimeoutSeconds), |
301 migrate_sessions_on_network_change_(false), | 301 migrate_sessions_on_network_change_(false), |
302 migrate_sessions_early_(false) { | 302 migrate_sessions_early_(false) { |
303 clock_->AdvanceTime(QuicTime::Delta::FromSeconds(1)); | 303 clock_->AdvanceTime(QuicTime::Delta::FromSeconds(1)); |
304 } | 304 } |
305 | 305 |
306 ~QuicStreamFactoryTestBase() { | 306 ~QuicStreamFactoryTestBase() { |
307 // If |factory_| was initialized, then it took over ownership of |clock_|. | 307 // If |factory_| was initialized, then it took over ownership of |clock_|. |
(...skipping 4031 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4339 EXPECT_NE(session1, session2); | 4339 EXPECT_NE(session1, session2); |
4340 | 4340 |
4341 EXPECT_EQ(QuicServerId(origin1_, privacy_mode_), session1->server_id()); | 4341 EXPECT_EQ(QuicServerId(origin1_, privacy_mode_), session1->server_id()); |
4342 EXPECT_EQ(QuicServerId(origin2_, privacy_mode_), session2->server_id()); | 4342 EXPECT_EQ(QuicServerId(origin2_, privacy_mode_), session2->server_id()); |
4343 | 4343 |
4344 EXPECT_TRUE(AllDataConsumed()); | 4344 EXPECT_TRUE(AllDataConsumed()); |
4345 } | 4345 } |
4346 | 4346 |
4347 } // namespace test | 4347 } // namespace test |
4348 } // namespace net | 4348 } // namespace net |
OLD | NEW |