blob: 822895a9729d0a8e48a4bff4dace67f69219fdce [file] [log] [blame]
// Copyright 2019 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef NET_SSL_TEST_SSL_CONFIG_SERVICE_H_
#define NET_SSL_TEST_SSL_CONFIG_SERVICE_H_
#include "net/ssl/ssl_config_service.h"
namespace net {
class TestSSLConfigService : public SSLConfigService {
public:
explicit TestSSLConfigService(const SSLContextConfig& config);
~TestSSLConfigService() override;
void UpdateSSLConfigAndNotify(const SSLContextConfig& config);
SSLContextConfig GetSSLContextConfig() override;
bool CanShareConnectionWithClientCerts(
const std::string& hostname) const override;
private:
SSLContextConfig config_;
};
} // namespace net
#endif // NET_SSL_TEST_SSL_CONFIG_SERVICE_H_