| 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 "chrome/browser/net/ssl_config_service_manager.h" | 5 #include "chrome/browser/net/ssl_config_service_manager.h" |
| 6 | 6 |
| 7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
| 8 #include "base/memory/ref_counted.h" | 8 #include "base/memory/ref_counted.h" |
| 9 #include "base/message_loop/message_loop.h" | 9 #include "base/message_loop/message_loop.h" |
| 10 #include "base/prefs/pref_registry_simple.h" | 10 #include "base/prefs/pref_registry_simple.h" |
| 11 #include "base/prefs/testing_pref_store.h" | 11 #include "base/prefs/testing_pref_store.h" |
| 12 #include "base/values.h" | 12 #include "base/values.h" |
| 13 #include "chrome/browser/content_settings/host_content_settings_map.h" | |
| 14 #include "chrome/browser/prefs/pref_service_mock_factory.h" | 13 #include "chrome/browser/prefs/pref_service_mock_factory.h" |
| 15 #include "chrome/common/chrome_switches.h" | 14 #include "chrome/common/chrome_switches.h" |
| 16 #include "chrome/common/pref_names.h" | 15 #include "chrome/common/pref_names.h" |
| 17 #include "chrome/test/base/testing_pref_service_syncable.h" | 16 #include "chrome/test/base/testing_pref_service_syncable.h" |
| 18 #include "chrome/test/base/testing_profile.h" | 17 #include "chrome/test/base/testing_profile.h" |
| 18 #include "components/content_settings/core/browser/host_content_settings_map.h" |
| 19 #include "components/content_settings/core/common/content_settings.h" | 19 #include "components/content_settings/core/common/content_settings.h" |
| 20 #include "content/public/test/test_browser_thread.h" | 20 #include "content/public/test/test_browser_thread.h" |
| 21 #include "net/ssl/ssl_config_service.h" | 21 #include "net/ssl/ssl_config_service.h" |
| 22 #include "testing/gtest/include/gtest/gtest.h" | 22 #include "testing/gtest/include/gtest/gtest.h" |
| 23 | 23 |
| 24 using base::ListValue; | 24 using base::ListValue; |
| 25 using base::Value; | 25 using base::Value; |
| 26 using content::BrowserThread; | 26 using content::BrowserThread; |
| 27 using net::SSLConfig; | 27 using net::SSLConfig; |
| 28 using net::SSLConfigService; | 28 using net::SSLConfigService; |
| (...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 202 local_state->FindPreference(prefs::kSSLVersionMax); | 202 local_state->FindPreference(prefs::kSSLVersionMax); |
| 203 EXPECT_FALSE(version_max_pref->IsUserModifiable()); | 203 EXPECT_FALSE(version_max_pref->IsUserModifiable()); |
| 204 | 204 |
| 205 std::string version_min_str; | 205 std::string version_min_str; |
| 206 std::string version_max_str; | 206 std::string version_max_str; |
| 207 EXPECT_FALSE(local_state_store->GetString(prefs::kSSLVersionMin, | 207 EXPECT_FALSE(local_state_store->GetString(prefs::kSSLVersionMin, |
| 208 &version_min_str)); | 208 &version_min_str)); |
| 209 EXPECT_FALSE(local_state_store->GetString(prefs::kSSLVersionMax, | 209 EXPECT_FALSE(local_state_store->GetString(prefs::kSSLVersionMax, |
| 210 &version_max_str)); | 210 &version_max_str)); |
| 211 } | 211 } |
| OLD | NEW |