test_ssl_config_service.cc 762 B

1234567891011121314151617181920212223242526272829
  1. // Copyright 2019 The Chromium Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style license that can be
  3. // found in the LICENSE file.
  4. #include "net/ssl/test_ssl_config_service.h"
  5. namespace net {
  6. TestSSLConfigService::TestSSLConfigService(const SSLContextConfig& config)
  7. : config_(config) {}
  8. TestSSLConfigService::~TestSSLConfigService() = default;
  9. SSLContextConfig TestSSLConfigService::GetSSLContextConfig() {
  10. return config_;
  11. }
  12. bool TestSSLConfigService::CanShareConnectionWithClientCerts(
  13. const std::string& hostname) const {
  14. return false;
  15. }
  16. void TestSSLConfigService::UpdateSSLConfigAndNotify(
  17. const SSLContextConfig& config) {
  18. config_ = config;
  19. NotifySSLContextConfigChange();
  20. }
  21. } // namespace net