| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |