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 <memory> | 5 #include <memory> |
6 #include <utility> | 6 #include <utility> |
7 | 7 |
8 #include "base/feature_list.h" | 8 #include "base/feature_list.h" |
9 #include "base/memory/ref_counted.h" | 9 #include "base/memory/ref_counted.h" |
10 #include "base/message_loop/message_loop.h" | 10 #include "base/message_loop/message_loop.h" |
11 #include "base/thread_task_runner_handle.h" | 11 #include "base/threading/thread_task_runner_handle.h" |
12 #include "base/values.h" | 12 #include "base/values.h" |
13 #include "components/prefs/testing_pref_service.h" | 13 #include "components/prefs/testing_pref_service.h" |
14 #include "components/ssl_config/ssl_config_prefs.h" | 14 #include "components/ssl_config/ssl_config_prefs.h" |
15 #include "components/ssl_config/ssl_config_service_manager.h" | 15 #include "components/ssl_config/ssl_config_service_manager.h" |
16 #include "components/ssl_config/ssl_config_switches.h" | 16 #include "components/ssl_config/ssl_config_switches.h" |
17 #include "net/ssl/ssl_config.h" | 17 #include "net/ssl/ssl_config.h" |
18 #include "net/ssl/ssl_config_service.h" | 18 #include "net/ssl/ssl_config_service.h" |
19 #include "testing/gtest/include/gtest/gtest.h" | 19 #include "testing/gtest/include/gtest/gtest.h" |
20 | 20 |
21 using base::ListValue; | 21 using base::ListValue; |
(...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
215 SSLConfigServiceManager::CreateDefaultManager( | 215 SSLConfigServiceManager::CreateDefaultManager( |
216 &local_state, base::ThreadTaskRunnerHandle::Get())); | 216 &local_state, base::ThreadTaskRunnerHandle::Get())); |
217 scoped_refptr<SSLConfigService> config_service(config_manager->Get()); | 217 scoped_refptr<SSLConfigService> config_service(config_manager->Get()); |
218 ASSERT_TRUE(config_service.get()); | 218 ASSERT_TRUE(config_service.get()); |
219 | 219 |
220 // The feature should have switched the default version_fallback_min value. | 220 // The feature should have switched the default version_fallback_min value. |
221 SSLConfig ssl_config; | 221 SSLConfig ssl_config; |
222 config_service->GetSSLConfig(&ssl_config); | 222 config_service->GetSSLConfig(&ssl_config); |
223 EXPECT_EQ(net::SSL_PROTOCOL_VERSION_TLS1_1, ssl_config.version_fallback_min); | 223 EXPECT_EQ(net::SSL_PROTOCOL_VERSION_TLS1_1, ssl_config.version_fallback_min); |
224 } | 224 } |
OLD | NEW |