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

Side by Side Diff: net/quic/core/quic_crypto_server_stream_test.cc

Issue 2589983002: Create a QUIC wrapper around scoped_refptr. (Closed)
Patch Set: rm = nullptr Created 4 years 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/core/quic_crypto_server_stream.cc ('k') | net/quic/core/quic_crypto_stream.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/core/quic_crypto_server_stream.h" 5 #include "net/quic/core/quic_crypto_server_stream.h"
6 6
7 #include <map> 7 #include <map>
8 #include <memory> 8 #include <memory>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 473 matching lines...) Expand 10 before | Expand all | Expand 10 after
484 } 484 }
485 485
486 class FailingProofSource : public ProofSource { 486 class FailingProofSource : public ProofSource {
487 public: 487 public:
488 bool GetProof(const QuicSocketAddress& server_address, 488 bool GetProof(const QuicSocketAddress& server_address,
489 const string& hostname, 489 const string& hostname,
490 const string& server_config, 490 const string& server_config,
491 QuicVersion quic_version, 491 QuicVersion quic_version,
492 StringPiece chlo_hash, 492 StringPiece chlo_hash,
493 const QuicTagVector& connection_options, 493 const QuicTagVector& connection_options,
494 scoped_refptr<ProofSource::Chain>* out_chain, 494 QuicReferenceCountedPointer<ProofSource::Chain>* out_chain,
495 QuicCryptoProof* out_proof) override { 495 QuicCryptoProof* out_proof) override {
496 return false; 496 return false;
497 } 497 }
498 498
499 void GetProof(const QuicSocketAddress& server_address, 499 void GetProof(const QuicSocketAddress& server_address,
500 const string& hostname, 500 const string& hostname,
501 const string& server_config, 501 const string& server_config,
502 QuicVersion quic_version, 502 QuicVersion quic_version,
503 StringPiece chlo_hash, 503 StringPiece chlo_hash,
504 const QuicTagVector& connection_options, 504 const QuicTagVector& connection_options,
(...skipping 21 matching lines...) Expand all
526 // Regression test for b/31521252, in which a crash would happen here. 526 // Regression test for b/31521252, in which a crash would happen here.
527 AdvanceHandshakeWithFakeClient(); 527 AdvanceHandshakeWithFakeClient();
528 EXPECT_FALSE(server_stream()->encryption_established()); 528 EXPECT_FALSE(server_stream()->encryption_established());
529 EXPECT_FALSE(server_stream()->handshake_confirmed()); 529 EXPECT_FALSE(server_stream()->handshake_confirmed());
530 } 530 }
531 531
532 } // namespace 532 } // namespace
533 533
534 } // namespace test 534 } // namespace test
535 } // namespace net 535 } // namespace net
OLDNEW
« no previous file with comments | « net/quic/core/quic_crypto_server_stream.cc ('k') | net/quic/core/quic_crypto_stream.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698