1 // Copyright 2019 The Chromium Authors 2 // Use of this source code is governed by a BSD-style license that can be 3 // found in the LICENSE file. 4 5 #ifndef NET_SSL_TEST_SSL_CONFIG_SERVICE_H_ 6 #define NET_SSL_TEST_SSL_CONFIG_SERVICE_H_ 7 8 #include "net/ssl/ssl_config_service.h" 9 10 namespace net { 11 12 class TestSSLConfigService : public SSLConfigService { 13 public: 14 explicit TestSSLConfigService(const SSLContextConfig& config); 15 ~TestSSLConfigService() override; 16 17 void UpdateSSLConfigAndNotify(const SSLContextConfig& config); 18 19 SSLContextConfig GetSSLContextConfig() override; 20 bool CanShareConnectionWithClientCerts( 21 std::string_view hostname) const override; 22 23 private: 24 SSLContextConfig config_; 25 }; 26 27 } // namespace net 28 29 #endif // NET_SSL_TEST_SSL_CONFIG_SERVICE_H_ 30