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 565 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
576 strike_register_client_->RunPendingVerifications(); | 576 strike_register_client_->RunPendingVerifications(); |
577 } | 577 } |
578 | 578 |
579 class FailingProofSource : public ProofSource { | 579 class FailingProofSource : public ProofSource { |
580 public: | 580 public: |
581 bool GetProof(const IPAddress& server_ip, | 581 bool GetProof(const IPAddress& server_ip, |
582 const string& hostname, | 582 const string& hostname, |
583 const string& server_config, | 583 const string& server_config, |
584 QuicVersion quic_version, | 584 QuicVersion quic_version, |
585 StringPiece chlo_hash, | 585 StringPiece chlo_hash, |
| 586 const QuicTagVector& connection_options, |
586 scoped_refptr<ProofSource::Chain>* out_chain, | 587 scoped_refptr<ProofSource::Chain>* out_chain, |
587 string* out_signature, | 588 string* out_signature, |
588 string* out_leaf_cert_sct) override { | 589 string* out_leaf_cert_sct) override { |
589 return false; | 590 return false; |
590 } | 591 } |
591 | 592 |
592 void GetProof(const IPAddress& server_ip, | 593 void GetProof(const IPAddress& server_ip, |
593 const string& hostname, | 594 const string& hostname, |
594 const string& server_config, | 595 const string& server_config, |
595 QuicVersion quic_version, | 596 QuicVersion quic_version, |
596 StringPiece chlo_hash, | 597 StringPiece chlo_hash, |
| 598 const QuicTagVector& connection_options, |
597 std::unique_ptr<Callback> callback) override { | 599 std::unique_ptr<Callback> callback) override { |
598 callback->Run(false, nullptr, "", "", nullptr); | 600 callback->Run(false, nullptr, "", "", nullptr); |
599 } | 601 } |
600 }; | 602 }; |
601 | 603 |
602 class QuicCryptoServerStreamTestWithFailingProofSource | 604 class QuicCryptoServerStreamTestWithFailingProofSource |
603 : public QuicCryptoServerStreamTest { | 605 : public QuicCryptoServerStreamTest { |
604 public: | 606 public: |
605 QuicCryptoServerStreamTestWithFailingProofSource() | 607 QuicCryptoServerStreamTestWithFailingProofSource() |
606 : QuicCryptoServerStreamTest( | 608 : QuicCryptoServerStreamTest( |
(...skipping 11 matching lines...) Expand all Loading... |
618 // Regression test for b/31521252, in which a crash would happen here. | 620 // Regression test for b/31521252, in which a crash would happen here. |
619 AdvanceHandshakeWithFakeClient(); | 621 AdvanceHandshakeWithFakeClient(); |
620 EXPECT_FALSE(server_stream()->encryption_established()); | 622 EXPECT_FALSE(server_stream()->encryption_established()); |
621 EXPECT_FALSE(server_stream()->handshake_confirmed()); | 623 EXPECT_FALSE(server_stream()->handshake_confirmed()); |
622 } | 624 } |
623 | 625 |
624 } // namespace | 626 } // namespace |
625 | 627 |
626 } // namespace test | 628 } // namespace test |
627 } // namespace net | 629 } // namespace net |
OLD | NEW |