| 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.h" | 9 #include "base/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" | 13 #include "chrome/browser/content_settings/host_content_settings_map.h" |
| 14 #include "chrome/browser/prefs/pref_service_mock_builder.h" | 14 #include "chrome/browser/prefs/pref_service_mock_builder.h" |
| 15 #include "chrome/common/chrome_switches.h" | 15 #include "chrome/common/chrome_switches.h" |
| 16 #include "chrome/common/content_settings.h" | 16 #include "chrome/common/content_settings.h" |
| 17 #include "chrome/common/pref_names.h" | 17 #include "chrome/common/pref_names.h" |
| 18 #include "chrome/test/base/testing_pref_service.h" | 18 #include "chrome/test/base/testing_pref_service_syncable.h" |
| 19 #include "chrome/test/base/testing_profile.h" | 19 #include "chrome/test/base/testing_profile.h" |
| 20 #include "content/public/test/test_browser_thread.h" | 20 #include "content/public/test/test_browser_thread.h" |
| 21 #include "net/base/ssl_config_service.h" | 21 #include "net/base/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 268 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 297 local_state->FindPreference(prefs::kSSLVersionMax); | 297 local_state->FindPreference(prefs::kSSLVersionMax); |
| 298 EXPECT_FALSE(version_max_pref->IsUserModifiable()); | 298 EXPECT_FALSE(version_max_pref->IsUserModifiable()); |
| 299 | 299 |
| 300 std::string version_min_str; | 300 std::string version_min_str; |
| 301 std::string version_max_str; | 301 std::string version_max_str; |
| 302 EXPECT_FALSE(local_state_store->GetString(prefs::kSSLVersionMin, | 302 EXPECT_FALSE(local_state_store->GetString(prefs::kSSLVersionMin, |
| 303 &version_min_str)); | 303 &version_min_str)); |
| 304 EXPECT_FALSE(local_state_store->GetString(prefs::kSSLVersionMax, | 304 EXPECT_FALSE(local_state_store->GetString(prefs::kSSLVersionMax, |
| 305 &version_max_str)); | 305 &version_max_str)); |
| 306 } | 306 } |
| OLD | NEW |