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

Side by Side Diff: net/quic/test_tools/quic_stream_factory_peer.cc

Issue 1765603002: Add QUIC 31 in which the server's proof covers both the static server config as well as a hash of t… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 years, 9 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
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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/test_tools/quic_stream_factory_peer.h" 5 #include "net/quic/test_tools/quic_stream_factory_peer.h"
6 6
7 #include "net/quic/crypto/quic_crypto_client_config.h" 7 #include "net/quic/crypto/quic_crypto_client_config.h"
8 #include "net/quic/quic_chromium_client_session.h" 8 #include "net/quic/quic_chromium_client_session.h"
9 #include "net/quic/quic_clock.h" 9 #include "net/quic/quic_clock.h"
10 #include "net/quic/quic_http_stream.h" 10 #include "net/quic/quic_http_stream.h"
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after
150 string source_address_token("test_source_address_token"); 150 string source_address_token("test_source_address_token");
151 string signature("test_signature"); 151 string signature("test_signature");
152 string test_cert("test_cert"); 152 string test_cert("test_cert");
153 vector<string> certs; 153 vector<string> certs;
154 certs.push_back(test_cert); 154 certs.push_back(test_cert);
155 155
156 QuicCryptoClientConfig* crypto_config = &factory->crypto_config_; 156 QuicCryptoClientConfig* crypto_config = &factory->crypto_config_;
157 QuicCryptoClientConfig::CachedState* cached = 157 QuicCryptoClientConfig::CachedState* cached =
158 crypto_config->LookupOrCreate(quic_server_id); 158 crypto_config->LookupOrCreate(quic_server_id);
159 QuicClock clock; 159 QuicClock clock;
160 cached->Initialize(server_config, source_address_token, certs, "", signature, 160 cached->Initialize(server_config, source_address_token, certs, "", "",
161 clock.WallNow()); 161 signature, clock.WallNow());
162 } 162 }
163 163
164 QuicClientPushPromiseIndex* QuicStreamFactoryPeer::GetPushPromiseIndex( 164 QuicClientPushPromiseIndex* QuicStreamFactoryPeer::GetPushPromiseIndex(
165 QuicStreamFactory* factory) { 165 QuicStreamFactory* factory) {
166 return &factory->push_promise_index_; 166 return &factory->push_promise_index_;
167 } 167 }
168 168
169 int QuicStreamFactoryPeer::GetNumPushStreamsCreated( 169 int QuicStreamFactoryPeer::GetNumPushStreamsCreated(
170 QuicStreamFactory* factory) { 170 QuicStreamFactory* factory) {
171 return factory->num_push_streams_created_; 171 return factory->num_push_streams_created_;
172 } 172 }
173 173
174 } // namespace test 174 } // namespace test
175 } // namespace net 175 } // namespace net
OLDNEW
« no previous file with comments | « net/quic/test_tools/crypto_test_utils_chromium.cc ('k') | net/tools/quic/quic_client_session_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698