mirror of
https://github.com/klzgrad/naiveproxy.git
synced 2024-12-01 01:36:09 +03:00
40 lines
1.3 KiB
C++
40 lines
1.3 KiB
C++
// Copyright (c) 2017 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 NET_QUIC_TEST_TOOLS_FAILING_PROOF_SOURCE_H_
|
|
#define NET_QUIC_TEST_TOOLS_FAILING_PROOF_SOURCE_H_
|
|
|
|
#include "net/quic/core/crypto/proof_source.h"
|
|
#include "net/quic/platform/api/quic_string_piece.h"
|
|
|
|
namespace net {
|
|
namespace test {
|
|
|
|
class FailingProofSource : public ProofSource {
|
|
public:
|
|
void GetProof(const QuicSocketAddress& server_address,
|
|
const std::string& hostname,
|
|
const std::string& server_config,
|
|
QuicTransportVersion transport_version,
|
|
QuicStringPiece chlo_hash,
|
|
const QuicTagVector& connection_options,
|
|
std::unique_ptr<Callback> callback) override;
|
|
|
|
QuicReferenceCountedPointer<Chain> GetCertChain(
|
|
const QuicSocketAddress& server_address,
|
|
const std::string& hostname) override;
|
|
|
|
void ComputeTlsSignature(
|
|
const QuicSocketAddress& server_address,
|
|
const std::string& hostname,
|
|
uint16_t signature_algorithm,
|
|
QuicStringPiece in,
|
|
std::unique_ptr<SignatureCallback> callback) override;
|
|
};
|
|
|
|
} // namespace test
|
|
} // namespace net
|
|
|
|
#endif // NET_QUIC_TEST_TOOLS_FAILING_PROOF_SOURCE_H_
|