| Index: net/quic/quartc/quartc_session_test.cc
|
| diff --git a/net/quic/quartc/quartc_session_test.cc b/net/quic/quartc/quartc_session_test.cc
|
| index fc19005789d29574cbc01fa2c697b926941ee338..884ff4503839ec8697a39307780496543754abe2 100644
|
| --- a/net/quic/quartc/quartc_session_test.cc
|
| +++ b/net/quic/quartc/quartc_session_test.cc
|
| @@ -53,32 +53,23 @@ class FakeProofSource : public net::ProofSource {
|
| explicit FakeProofSource(bool success) : success_(success) {}
|
|
|
| // ProofSource override.
|
| - bool GetProof(const QuicSocketAddress& server_ip,
|
| + void GetProof(const QuicSocketAddress& server_ip,
|
| const std::string& hostname,
|
| const std::string& server_config,
|
| net::QuicVersion quic_version,
|
| base::StringPiece chlo_hash,
|
| const net::QuicTagVector& connection_options,
|
| - QuicReferenceCountedPointer<net::ProofSource::Chain>* out_certs,
|
| - net::QuicCryptoProof* proof) override {
|
| + std::unique_ptr<Callback> callback) override {
|
| + QuicReferenceCountedPointer<net::ProofSource::Chain> chain;
|
| + net::QuicCryptoProof proof;
|
| if (success_) {
|
| std::vector<std::string> certs;
|
| certs.push_back("Required to establish handshake");
|
| - *out_certs = new ProofSource::Chain(certs);
|
| - proof->signature = "Signature";
|
| - proof->leaf_cert_scts = "Time";
|
| + chain = new ProofSource::Chain(certs);
|
| + proof.signature = "Signature";
|
| + proof.leaf_cert_scts = "Time";
|
| }
|
| - return success_;
|
| - }
|
| -
|
| - void GetProof(const QuicSocketAddress& server_ip,
|
| - const std::string& hostname,
|
| - const std::string& server_config,
|
| - net::QuicVersion quic_version,
|
| - base::StringPiece chlo_hash,
|
| - const net::QuicTagVector& connection_options,
|
| - std::unique_ptr<Callback> callback) override {
|
| - LOG(INFO) << "GetProof() providing dummy credentials for insecure QUIC";
|
| + callback->Run(success_, chain, proof, nullptr /* details */);
|
| }
|
|
|
| private:
|
|
|