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

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

Issue 885443002: Roll Chrome into Mojo. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Rebase to ToT mojo Created 5 years, 10 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
« no previous file with comments | « net/quic/quic_stream_factory.cc ('k') | net/quic/quic_stream_sequencer.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "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 145 matching lines...) Expand 10 before | Expand all | Expand 10 after
156 &crypto_client_stream_factory_, 156 &crypto_client_stream_factory_,
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,
167 /*load_server_info_timeout_srtt_multiplier=*/0.0f, 166 /*load_server_info_timeout_srtt_multiplier=*/0.0f,
168 /*enable_truncated_connection_ids=*/true, 167 /*enable_truncated_connection_ids=*/true,
169 QuicTagVector()), 168 QuicTagVector()),
170 host_port_pair_(kDefaultServerHostName, kDefaultServerPort), 169 host_port_pair_(kDefaultServerHostName, kDefaultServerPort),
171 is_https_(false), 170 is_https_(false),
172 privacy_mode_(PRIVACY_MODE_DISABLED) { 171 privacy_mode_(PRIVACY_MODE_DISABLED) {
173 factory_.set_require_confirmation(false); 172 factory_.set_require_confirmation(false);
174 clock_->AdvanceTime(QuicTime::Delta::FromSeconds(1)); 173 clock_->AdvanceTime(QuicTime::Delta::FromSeconds(1));
175 } 174 }
176 175
(...skipping 1423 matching lines...) Expand 10 before | Expand all | Expand 10 after
1600 ASSERT_EQ(0u, runner_->GetPostedTasks().size()); 1599 ASSERT_EQ(0u, runner_->GetPostedTasks().size());
1601 1600
1602 scoped_ptr<QuicHttpStream> stream = request.ReleaseStream(); 1601 scoped_ptr<QuicHttpStream> stream = request.ReleaseStream();
1603 EXPECT_TRUE(stream.get()); 1602 EXPECT_TRUE(stream.get());
1604 EXPECT_TRUE(socket_data.at_read_eof()); 1603 EXPECT_TRUE(socket_data.at_read_eof());
1605 EXPECT_TRUE(socket_data.at_write_eof()); 1604 EXPECT_TRUE(socket_data.at_write_eof());
1606 } 1605 }
1607 1606
1608 } // namespace test 1607 } // namespace test
1609 } // namespace net 1608 } // namespace net
OLDNEW
« no previous file with comments | « net/quic/quic_stream_factory.cc ('k') | net/quic/quic_stream_sequencer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698