| 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 "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 193 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 204 kDefaultMaxPacketSize, | 204 kDefaultMaxPacketSize, |
| 205 std::string(), | 205 std::string(), |
| 206 SupportedVersions(GetParam().version), | 206 SupportedVersions(GetParam().version), |
| 207 /*enable_port_selection=*/true, | 207 /*enable_port_selection=*/true, |
| 208 /*always_require_handshake_confirmation=*/false, | 208 /*always_require_handshake_confirmation=*/false, |
| 209 /*disable_connection_pooling=*/false, | 209 /*disable_connection_pooling=*/false, |
| 210 /*load_server_info_timeout=*/0u, | 210 /*load_server_info_timeout=*/0u, |
| 211 /*load_server_info_timeout_srtt_multiplier=*/0.0f, | 211 /*load_server_info_timeout_srtt_multiplier=*/0.0f, |
| 212 /*enable_truncated_connection_ids=*/true, | 212 /*enable_truncated_connection_ids=*/true, |
| 213 /*enable_connection_racing=*/false, | 213 /*enable_connection_racing=*/false, |
| 214 /*enable_nonblocking_io=*/true, |
| 214 /*disable_disk_cache=*/false, | 215 /*disable_disk_cache=*/false, |
| 215 QuicTagVector()), | 216 QuicTagVector()), |
| 216 host_port_pair_(kDefaultServerHostName, kDefaultServerPort), | 217 host_port_pair_(kDefaultServerHostName, kDefaultServerPort), |
| 217 is_https_(false), | 218 is_https_(false), |
| 218 privacy_mode_(PRIVACY_MODE_DISABLED) { | 219 privacy_mode_(PRIVACY_MODE_DISABLED) { |
| 219 factory_.set_require_confirmation(false); | 220 factory_.set_require_confirmation(false); |
| 220 clock_->AdvanceTime(QuicTime::Delta::FromSeconds(1)); | 221 clock_->AdvanceTime(QuicTime::Delta::FromSeconds(1)); |
| 221 QuicStreamFactoryPeer::SetEnableConnectionRacing( | 222 QuicStreamFactoryPeer::SetEnableConnectionRacing( |
| 222 &factory_, GetParam().enable_connection_racing); | 223 &factory_, GetParam().enable_connection_racing); |
| 223 } | 224 } |
| (...skipping 1511 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1735 ASSERT_EQ(0u, runner_->GetPostedTasks().size()); | 1736 ASSERT_EQ(0u, runner_->GetPostedTasks().size()); |
| 1736 | 1737 |
| 1737 scoped_ptr<QuicHttpStream> stream = request.ReleaseStream(); | 1738 scoped_ptr<QuicHttpStream> stream = request.ReleaseStream(); |
| 1738 EXPECT_TRUE(stream.get()); | 1739 EXPECT_TRUE(stream.get()); |
| 1739 EXPECT_TRUE(socket_data.at_read_eof()); | 1740 EXPECT_TRUE(socket_data.at_read_eof()); |
| 1740 EXPECT_TRUE(socket_data.at_write_eof()); | 1741 EXPECT_TRUE(socket_data.at_write_eof()); |
| 1741 } | 1742 } |
| 1742 | 1743 |
| 1743 } // namespace test | 1744 } // namespace test |
| 1744 } // namespace net | 1745 } // namespace net |
| OLD | NEW |