blob: 819b758f05e9b8041c74e0efd91fa0697afa12a5 [file] [log] [blame]
// Copyright 2019 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_QUIC_CRYPTO_CLIENT_CONFIG_HANDLE_H_
#define NET_QUIC_TEST_QUIC_CRYPTO_CLIENT_CONFIG_HANDLE_H_
#include "base/macros.h"
#include "net/quic/quic_crypto_client_config_handle.h"
namespace quic {
class QuicCryptoClientConfig;
} // namespace quic
namespace net {
// Test implementation of QuicCryptoClientConfigHandle. Wraps a passed in
// QuicCryptoClientConfig and returns it as needed. Does nothing on destruction.
class TestQuicCryptoClientConfigHandle : public QuicCryptoClientConfigHandle {
public:
TestQuicCryptoClientConfigHandle(quic::QuicCryptoClientConfig* crypto_config);
~TestQuicCryptoClientConfigHandle() override;
quic::QuicCryptoClientConfig* GetConfig() const override;
private:
quic::QuicCryptoClientConfig* const crypto_config_;
DISALLOW_ASSIGN(TestQuicCryptoClientConfigHandle);
};
} // namespace net
#endif // NET_QUIC_TEST_QUIC_CRYPTO_CLIENT_CONFIG_HANDLE_H_