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 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
157 &random_generator_, | 157 &random_generator_, |
158 clock_, | 158 clock_, |
159 kDefaultMaxPacketSize, | 159 kDefaultMaxPacketSize, |
160 std::string(), | 160 std::string(), |
161 SupportedVersions(GetParam()), | 161 SupportedVersions(GetParam()), |
162 /*enable_port_selection=*/true, | 162 /*enable_port_selection=*/true, |
163 /*always_require_handshake_confirmation=*/false, | 163 /*always_require_handshake_confirmation=*/false, |
164 /*disable_connection_pooling=*/false, | 164 /*disable_connection_pooling=*/false, |
165 /*load_server_info_timeout=*/0u, | 165 /*load_server_info_timeout=*/0u, |
166 /*disable_loading_server_info_for_new_servers=*/false, | 166 /*disable_loading_server_info_for_new_servers=*/false, |
| 167 /*load_server_info_timeout_srtt_multiplier=*/0.0f, |
167 QuicTagVector()), | 168 QuicTagVector()), |
168 host_port_pair_(kDefaultServerHostName, kDefaultServerPort), | 169 host_port_pair_(kDefaultServerHostName, kDefaultServerPort), |
169 is_https_(false), | 170 is_https_(false), |
170 privacy_mode_(PRIVACY_MODE_DISABLED) { | 171 privacy_mode_(PRIVACY_MODE_DISABLED) { |
171 factory_.set_require_confirmation(false); | 172 factory_.set_require_confirmation(false); |
172 clock_->AdvanceTime(QuicTime::Delta::FromSeconds(1)); | 173 clock_->AdvanceTime(QuicTime::Delta::FromSeconds(1)); |
173 } | 174 } |
174 | 175 |
175 scoped_ptr<QuicHttpStream> CreateIfSessionExists( | 176 scoped_ptr<QuicHttpStream> CreateIfSessionExists( |
176 const HostPortPair& host_port_pair, | 177 const HostPortPair& host_port_pair, |
(...skipping 1421 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1598 ASSERT_EQ(0u, runner_->GetPostedTasks().size()); | 1599 ASSERT_EQ(0u, runner_->GetPostedTasks().size()); |
1599 | 1600 |
1600 scoped_ptr<QuicHttpStream> stream = request.ReleaseStream(); | 1601 scoped_ptr<QuicHttpStream> stream = request.ReleaseStream(); |
1601 EXPECT_TRUE(stream.get()); | 1602 EXPECT_TRUE(stream.get()); |
1602 EXPECT_TRUE(socket_data.at_read_eof()); | 1603 EXPECT_TRUE(socket_data.at_read_eof()); |
1603 EXPECT_TRUE(socket_data.at_write_eof()); | 1604 EXPECT_TRUE(socket_data.at_write_eof()); |
1604 } | 1605 } |
1605 | 1606 |
1606 } // namespace test | 1607 } // namespace test |
1607 } // namespace net | 1608 } // namespace net |
OLD | NEW |