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

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

Issue 2671333004: Convert class-full-of-statics CryptoTestUtils into a namespace (Closed)
Patch Set: Created 3 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/test_tools/quic_stream_peer.cc ('k') | net/tools/quic/end_to_end_test.cc » ('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/test_tools/quic_test_utils.h" 5 #include "net/quic/test_tools/quic_test_utils.h"
6 6
7 #include <memory> 7 #include <memory>
8 8
9 #include "net/quic/core/crypto/crypto_framer.h" 9 #include "net/quic/core/crypto/crypto_framer.h"
10 #include "net/quic/core/crypto/crypto_handshake.h" 10 #include "net/quic/core/crypto/crypto_handshake.h"
(...skipping 443 matching lines...) Expand 10 before | Expand all | Expand 10 after
454 rendezvous_stream_ = stream; 454 rendezvous_stream_ = stream;
455 } 455 }
456 456
457 TestQuicSpdyClientSession::TestQuicSpdyClientSession( 457 TestQuicSpdyClientSession::TestQuicSpdyClientSession(
458 QuicConnection* connection, 458 QuicConnection* connection,
459 const QuicConfig& config, 459 const QuicConfig& config,
460 const QuicServerId& server_id, 460 const QuicServerId& server_id,
461 QuicCryptoClientConfig* crypto_config) 461 QuicCryptoClientConfig* crypto_config)
462 : QuicClientSessionBase(connection, &push_promise_index_, config) { 462 : QuicClientSessionBase(connection, &push_promise_index_, config) {
463 crypto_stream_.reset(new QuicCryptoClientStream( 463 crypto_stream_.reset(new QuicCryptoClientStream(
464 server_id, this, CryptoTestUtils::ProofVerifyContextForTesting(), 464 server_id, this, crypto_test_utils::ProofVerifyContextForTesting(),
465 crypto_config, this)); 465 crypto_config, this));
466 Initialize(); 466 Initialize();
467 } 467 }
468 468
469 TestQuicSpdyClientSession::~TestQuicSpdyClientSession() {} 469 TestQuicSpdyClientSession::~TestQuicSpdyClientSession() {}
470 470
471 bool TestQuicSpdyClientSession::IsAuthorized(const string& authority) { 471 bool TestQuicSpdyClientSession::IsAuthorized(const string& authority) {
472 return true; 472 return true;
473 } 473 }
474 474
(...skipping 412 matching lines...) Expand 10 before | Expand all | Expand 10 after
887 // strike register worries that we've just overflowed a uint32_t time. 887 // strike register worries that we've just overflowed a uint32_t time.
888 (*server_connection)->AdvanceTime(connection_start_time); 888 (*server_connection)->AdvanceTime(connection_start_time);
889 } 889 }
890 890
891 QuicStreamId QuicClientDataStreamId(int i) { 891 QuicStreamId QuicClientDataStreamId(int i) {
892 return kClientDataStreamId1 + 2 * i; 892 return kClientDataStreamId1 + 2 * i;
893 } 893 }
894 894
895 } // namespace test 895 } // namespace test
896 } // namespace net 896 } // namespace net
OLDNEW
« no previous file with comments | « net/quic/test_tools/quic_stream_peer.cc ('k') | net/tools/quic/end_to_end_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698