| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/pref_proxy_config_service.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/values.h" | 10 #include "base/values.h" |
| 11 #include "chrome/browser/net/ssl_config_service_manager.h" | |
| 12 #include "chrome/browser/prefs/pref_service_mock_builder.h" | 11 #include "chrome/browser/prefs/pref_service_mock_builder.h" |
| 13 #include "chrome/browser/prefs/testing_pref_store.h" | 12 #include "chrome/browser/prefs/testing_pref_store.h" |
| 14 #include "chrome/common/chrome_switches.h" | 13 #include "chrome/common/chrome_switches.h" |
| 15 #include "chrome/common/pref_names.h" | 14 #include "chrome/common/pref_names.h" |
| 16 #include "chrome/test/base/testing_pref_service.h" | 15 #include "chrome/test/base/testing_pref_service.h" |
| 17 #include "content/test/test_browser_thread.h" | 16 #include "content/test/test_browser_thread.h" |
| 18 #include "net/base/ssl_config_service.h" | 17 #include "net/base/ssl_config_service.h" |
| 19 #include "testing/gtest/include/gtest/gtest.h" | 18 #include "testing/gtest/include/gtest/gtest.h" |
| 20 | 19 |
| 21 using base::ListValue; | 20 using base::ListValue; |
| (...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 206 pref_service->FindPreference(prefs::kSSL3Enabled); | 205 pref_service->FindPreference(prefs::kSSL3Enabled); |
| 207 EXPECT_FALSE(ssl3_enabled_pref->IsUserModifiable()); | 206 EXPECT_FALSE(ssl3_enabled_pref->IsUserModifiable()); |
| 208 | 207 |
| 209 const PrefService::Preference* tls1_enabled_pref = | 208 const PrefService::Preference* tls1_enabled_pref = |
| 210 pref_service->FindPreference(prefs::kTLS1Enabled); | 209 pref_service->FindPreference(prefs::kTLS1Enabled); |
| 211 EXPECT_FALSE(tls1_enabled_pref->IsUserModifiable()); | 210 EXPECT_FALSE(tls1_enabled_pref->IsUserModifiable()); |
| 212 | 211 |
| 213 EXPECT_FALSE(user_prefs->GetBoolean(prefs::kSSL3Enabled, &is_ssl3_enabled)); | 212 EXPECT_FALSE(user_prefs->GetBoolean(prefs::kSSL3Enabled, &is_ssl3_enabled)); |
| 214 EXPECT_FALSE(user_prefs->GetBoolean(prefs::kTLS1Enabled, &is_tls1_enabled)); | 213 EXPECT_FALSE(user_prefs->GetBoolean(prefs::kTLS1Enabled, &is_tls1_enabled)); |
| 215 } | 214 } |
| OLD | NEW |