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

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

Issue 12326073: Remove the --use-spdy-over-quic command line option. Always use SPDY over QUIC. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 7 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 | Annotate | Revision Log
« no previous file with comments | « net/quic/quic_stream_factory.cc ('k') | no next file » | 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/string_util.h" 8 #include "base/string_util.h"
9 #include "net/base/mock_host_resolver.h" 9 #include "net/base/mock_host_resolver.h"
10 #include "net/http/http_response_headers.h" 10 #include "net/http/http_response_headers.h"
11 #include "net/http/http_response_info.h" 11 #include "net/http/http_response_info.h"
12 #include "net/http/http_util.h" 12 #include "net/http/http_util.h"
13 #include "net/quic/quic_http_stream.h" 13 #include "net/quic/quic_http_stream.h"
14 #include "net/quic/test_tools/mock_clock.h" 14 #include "net/quic/test_tools/mock_clock.h"
15 #include "net/quic/test_tools/mock_random.h" 15 #include "net/quic/test_tools/mock_random.h"
16 #include "net/quic/test_tools/quic_test_utils.h" 16 #include "net/quic/test_tools/quic_test_utils.h"
17 #include "net/socket/socket_test_util.h" 17 #include "net/socket/socket_test_util.h"
18 #include "testing/gtest/include/gtest/gtest.h" 18 #include "testing/gtest/include/gtest/gtest.h"
19 19
20 namespace net { 20 namespace net {
21 namespace test { 21 namespace test {
22 22
23 class QuicStreamFactoryTest : public ::testing::Test { 23 class QuicStreamFactoryTest : public ::testing::Test {
24 protected: 24 protected:
25 QuicStreamFactoryTest() 25 QuicStreamFactoryTest()
26 : clock_(new MockClock()), 26 : clock_(new MockClock()),
27 factory_(&host_resolver_, &socket_factory_, 27 factory_(&host_resolver_, &socket_factory_,
28 &random_generator_, clock_, false), 28 &random_generator_, clock_),
29 host_port_proxy_pair_(HostPortPair("www.google.com", 443), 29 host_port_proxy_pair_(HostPortPair("www.google.com", 443),
30 ProxyServer::Direct()) { 30 ProxyServer::Direct()) {
31 } 31 }
32 32
33 scoped_ptr<QuicEncryptedPacket> ConstructChlo() { 33 scoped_ptr<QuicEncryptedPacket> ConstructChlo() {
34 const std::string& host = host_port_proxy_pair_.first.host(); 34 const std::string& host = host_port_proxy_pair_.first.host();
35 scoped_ptr<QuicPacket> chlo(ConstructClientHelloPacket(0xDEADBEEF, 35 scoped_ptr<QuicPacket> chlo(ConstructClientHelloPacket(0xDEADBEEF,
36 clock_, 36 clock_,
37 &random_generator_, 37 &random_generator_,
38 host)); 38 host));
(...skipping 249 matching lines...) Expand 10 before | Expand all | Expand 10 after
288 stream.reset(); // Will reset stream 3. 288 stream.reset(); // Will reset stream 3.
289 289
290 EXPECT_TRUE(socket_data.at_read_eof()); 290 EXPECT_TRUE(socket_data.at_read_eof());
291 EXPECT_TRUE(socket_data.at_write_eof()); 291 EXPECT_TRUE(socket_data.at_write_eof());
292 EXPECT_TRUE(socket_data2.at_read_eof()); 292 EXPECT_TRUE(socket_data2.at_read_eof());
293 EXPECT_TRUE(socket_data2.at_write_eof()); 293 EXPECT_TRUE(socket_data2.at_write_eof());
294 } 294 }
295 295
296 } // namespace test 296 } // namespace test
297 } // namespace net 297 } // namespace net
OLDNEW
« no previous file with comments | « net/quic/quic_stream_factory.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698