// Copyright (c) 2016 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef QUICHE_QUIC_TEST_TOOLS_FAKE_PROOF_SOURCE_H_ #define QUICHE_QUIC_TEST_TOOLS_FAKE_PROOF_SOURCE_H_ #include <memory> #include <string> #include <vector> #include "absl/strings/string_view.h" #include "quiche/quic/core/crypto/proof_source.h" namespace quic { namespace test { // Implementation of ProofSource which delegates to a ProofSourceForTesting, but // allows for overriding certain functionality. FakeProofSource allows // intercepting calls to GetProof and ComputeTlsSignature to force them to run // asynchronously, and allow the caller to see that the call is pending and // resume the operation at the caller's choosing. FakeProofSource also allows // the caller to replace the TicketCrypter provided by // FakeProofSource::GetTicketCrypter. class FakeProofSource : public ProofSource { … }; } // namespace test } // namespace quic #endif // QUICHE_QUIC_TEST_TOOLS_FAKE_PROOF_SOURCE_H_