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_non_blocking_io=*/true, |
214 /*disable_disk_cache=*/false, | 215 /*disable_disk_cache=*/false, |
215 /*receive_buffer_size=*/0, | 216 /*receive_buffer_size=*/0, |
216 QuicTagVector()), | 217 QuicTagVector()), |
217 host_port_pair_(kDefaultServerHostName, kDefaultServerPort), | 218 host_port_pair_(kDefaultServerHostName, kDefaultServerPort), |
218 is_https_(false), | 219 is_https_(false), |
219 privacy_mode_(PRIVACY_MODE_DISABLED) { | 220 privacy_mode_(PRIVACY_MODE_DISABLED) { |
220 factory_.set_require_confirmation(false); | 221 factory_.set_require_confirmation(false); |
221 clock_->AdvanceTime(QuicTime::Delta::FromSeconds(1)); | 222 clock_->AdvanceTime(QuicTime::Delta::FromSeconds(1)); |
222 QuicStreamFactoryPeer::SetEnableConnectionRacing( | 223 QuicStreamFactoryPeer::SetEnableConnectionRacing( |
223 &factory_, GetParam().enable_connection_racing); | 224 &factory_, GetParam().enable_connection_racing); |
(...skipping 1512 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1736 ASSERT_EQ(0u, runner_->GetPostedTasks().size()); | 1737 ASSERT_EQ(0u, runner_->GetPostedTasks().size()); |
1737 | 1738 |
1738 scoped_ptr<QuicHttpStream> stream = request.ReleaseStream(); | 1739 scoped_ptr<QuicHttpStream> stream = request.ReleaseStream(); |
1739 EXPECT_TRUE(stream.get()); | 1740 EXPECT_TRUE(stream.get()); |
1740 EXPECT_TRUE(socket_data.at_read_eof()); | 1741 EXPECT_TRUE(socket_data.at_read_eof()); |
1741 EXPECT_TRUE(socket_data.at_write_eof()); | 1742 EXPECT_TRUE(socket_data.at_write_eof()); |
1742 } | 1743 } |
1743 | 1744 |
1744 } // namespace test | 1745 } // namespace test |
1745 } // namespace net | 1746 } // namespace net |
OLD | NEW |