| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "components/ssl_config/ssl_config_service_manager.h" | 5 #include "components/ssl_config/ssl_config_service_manager.h" |
| 6 | 6 |
| 7 #include "base/memory/ref_counted.h" | 7 #include "base/memory/ref_counted.h" |
| 8 #include "base/message_loop/message_loop.h" | 8 #include "base/message_loop/message_loop.h" |
| 9 #include "base/prefs/testing_pref_service.h" | |
| 10 #include "base/thread_task_runner_handle.h" | 9 #include "base/thread_task_runner_handle.h" |
| 11 #include "base/values.h" | 10 #include "base/values.h" |
| 11 #include "components/prefs/testing_pref_service.h" |
| 12 #include "components/ssl_config/ssl_config_prefs.h" | 12 #include "components/ssl_config/ssl_config_prefs.h" |
| 13 #include "components/ssl_config/ssl_config_switches.h" | 13 #include "components/ssl_config/ssl_config_switches.h" |
| 14 #include "net/ssl/ssl_config.h" | 14 #include "net/ssl/ssl_config.h" |
| 15 #include "net/ssl/ssl_config_service.h" | 15 #include "net/ssl/ssl_config_service.h" |
| 16 #include "testing/gtest/include/gtest/gtest.h" | 16 #include "testing/gtest/include/gtest/gtest.h" |
| 17 | 17 |
| 18 using base::ListValue; | 18 using base::ListValue; |
| 19 using net::SSLConfig; | 19 using net::SSLConfig; |
| 20 using net::SSLConfigService; | 20 using net::SSLConfigService; |
| 21 using ssl_config::SSLConfigServiceManager; | 21 using ssl_config::SSLConfigServiceManager; |
| (...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 166 &local_state, base::ThreadTaskRunnerHandle::Get())); | 166 &local_state, base::ThreadTaskRunnerHandle::Get())); |
| 167 ASSERT_TRUE(config_manager.get()); | 167 ASSERT_TRUE(config_manager.get()); |
| 168 scoped_refptr<SSLConfigService> config_service(config_manager->Get()); | 168 scoped_refptr<SSLConfigService> config_service(config_manager->Get()); |
| 169 ASSERT_TRUE(config_service.get()); | 169 ASSERT_TRUE(config_service.get()); |
| 170 | 170 |
| 171 SSLConfig ssl_config; | 171 SSLConfig ssl_config; |
| 172 config_service->GetSSLConfig(&ssl_config); | 172 config_service->GetSSLConfig(&ssl_config); |
| 173 // The command-line option must not have been honored. | 173 // The command-line option must not have been honored. |
| 174 EXPECT_LE(net::SSL_PROTOCOL_VERSION_TLS1, ssl_config.version_min); | 174 EXPECT_LE(net::SSL_PROTOCOL_VERSION_TLS1, ssl_config.version_min); |
| 175 } | 175 } |
| OLD | NEW |