Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(168)

Side by Side Diff: chrome/browser/net/ssl_config_service_manager_pref_unittest.cc

Issue 541813002: Componentize chrome/common/content_settings files. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: GN fix Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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" 13 #include "chrome/browser/content_settings/host_content_settings_map.h"
14 #include "chrome/browser/prefs/pref_service_mock_factory.h" 14 #include "chrome/browser/prefs/pref_service_mock_factory.h"
15 #include "chrome/common/chrome_switches.h" 15 #include "chrome/common/chrome_switches.h"
16 #include "chrome/common/content_settings.h"
17 #include "chrome/common/pref_names.h" 16 #include "chrome/common/pref_names.h"
18 #include "chrome/test/base/testing_pref_service_syncable.h" 17 #include "chrome/test/base/testing_pref_service_syncable.h"
19 #include "chrome/test/base/testing_profile.h" 18 #include "chrome/test/base/testing_profile.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;
29 29
(...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698