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

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

Issue 312193005: Pass chrome version and channel in CHLO message to server. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: compile fix Created 6 years, 6 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/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 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 }; 83 };
84 84
85 class QuicStreamFactoryTest : public ::testing::TestWithParam<QuicVersion> { 85 class QuicStreamFactoryTest : public ::testing::TestWithParam<QuicVersion> {
86 protected: 86 protected:
87 QuicStreamFactoryTest() 87 QuicStreamFactoryTest()
88 : random_generator_(0), 88 : random_generator_(0),
89 maker_(GetParam(), 0), 89 maker_(GetParam(), 0),
90 clock_(new MockClock()), 90 clock_(new MockClock()),
91 cert_verifier_(CertVerifier::CreateDefault()), 91 cert_verifier_(CertVerifier::CreateDefault()),
92 factory_(&host_resolver_, &socket_factory_, 92 factory_(&host_resolver_, &socket_factory_,
93 base::WeakPtr<HttpServerProperties>(), 93 base::WeakPtr<HttpServerProperties>(), cert_verifier_.get(),
94 cert_verifier_.get(), 94 &crypto_client_stream_factory_, &random_generator_, clock_,
95 &crypto_client_stream_factory_, 95 kDefaultMaxPacketSize, std::string(),
96 &random_generator_, clock_, kDefaultMaxPacketSize,
97 SupportedVersions(GetParam()), true, true, true), 96 SupportedVersions(GetParam()), true, true, true),
98 host_port_pair_(kDefaultServerHostName, kDefaultServerPort), 97 host_port_pair_(kDefaultServerHostName, kDefaultServerPort),
99 is_https_(false), 98 is_https_(false),
100 privacy_mode_(PRIVACY_MODE_DISABLED) { 99 privacy_mode_(PRIVACY_MODE_DISABLED) {
101 factory_.set_require_confirmation(false); 100 factory_.set_require_confirmation(false);
102 } 101 }
103 102
104 scoped_ptr<QuicHttpStream> CreateIfSessionExists( 103 scoped_ptr<QuicHttpStream> CreateIfSessionExists(
105 const HostPortPair& host_port_pair, 104 const HostPortPair& host_port_pair,
106 const BoundNetLog& net_log) { 105 const BoundNetLog& net_log) {
(...skipping 1033 matching lines...) Expand 10 before | Expand all | Expand 10 after
1140 QuicCryptoClientConfig::CachedState* cached2 = 1139 QuicCryptoClientConfig::CachedState* cached2 =
1141 crypto_config->LookupOrCreate(server_id2); 1140 crypto_config->LookupOrCreate(server_id2);
1142 EXPECT_NE(cached1->source_address_token(), cached2->source_address_token()); 1141 EXPECT_NE(cached1->source_address_token(), cached2->source_address_token());
1143 EXPECT_TRUE(cached2->source_address_token().empty()); 1142 EXPECT_TRUE(cached2->source_address_token().empty());
1144 EXPECT_FALSE(cached2->proof_valid()); 1143 EXPECT_FALSE(cached2->proof_valid());
1145 } 1144 }
1146 } 1145 }
1147 1146
1148 } // namespace test 1147 } // namespace test
1149 } // namespace net 1148 } // 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