naiveproxy/src/net/ssl/test_ssl_config_service.h

30 lines
775 B
C
Raw Normal View History

2022-12-03 11:11:17 +03:00
// 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_