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

Side by Side Diff: chrome/browser/prefs/chrome_pref_service_unittest.cc

Issue 16216007: split webkit/glue/webpreferences to common and renderer (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: new location for public/platform Created 7 years, 6 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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 "base/command_line.h" 5 #include "base/command_line.h"
6 #include "base/file_util.h" 6 #include "base/file_util.h"
7 #include "base/files/scoped_temp_dir.h" 7 #include "base/files/scoped_temp_dir.h"
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "base/path_service.h" 9 #include "base/path_service.h"
10 #include "base/prefs/pref_registry_simple.h" 10 #include "base/prefs/pref_registry_simple.h"
11 #include "base/utf_string_conversions.h" 11 #include "base/utf_string_conversions.h"
12 #include "base/values.h" 12 #include "base/values.h"
13 #include "chrome/browser/policy/configuration_policy_pref_store.h" 13 #include "chrome/browser/policy/configuration_policy_pref_store.h"
14 #include "chrome/browser/policy/mock_configuration_policy_provider.h" 14 #include "chrome/browser/policy/mock_configuration_policy_provider.h"
15 #include "chrome/browser/prefs/browser_prefs.h" 15 #include "chrome/browser/prefs/browser_prefs.h"
16 #include "chrome/browser/prefs/command_line_pref_store.h" 16 #include "chrome/browser/prefs/command_line_pref_store.h"
17 #include "chrome/browser/prefs/pref_service_mock_builder.h" 17 #include "chrome/browser/prefs/pref_service_mock_builder.h"
18 #include "chrome/browser/prefs/scoped_user_pref_update.h" 18 #include "chrome/browser/prefs/scoped_user_pref_update.h"
19 #include "chrome/common/chrome_paths.h" 19 #include "chrome/common/chrome_paths.h"
20 #include "chrome/common/chrome_switches.h" 20 #include "chrome/common/chrome_switches.h"
21 #include "chrome/common/pref_names.h" 21 #include "chrome/common/pref_names.h"
22 #include "chrome/test/base/chrome_render_view_host_test_harness.h" 22 #include "chrome/test/base/chrome_render_view_host_test_harness.h"
23 #include "chrome/test/base/testing_pref_service_syncable.h" 23 #include "chrome/test/base/testing_pref_service_syncable.h"
24 #include "chrome/test/base/testing_profile.h" 24 #include "chrome/test/base/testing_profile.h"
25 #include "components/user_prefs/pref_registry_syncable.h" 25 #include "components/user_prefs/pref_registry_syncable.h"
26 #include "content/public/test/test_browser_thread.h" 26 #include "content/public/test/test_browser_thread.h"
27 #include "content/public/test/web_contents_tester.h" 27 #include "content/public/test/web_contents_tester.h"
28 #include "ui/base/test/data/resource.h" 28 #include "ui/base/test/data/resource.h"
29 #include "webkit/glue/webpreferences.h" 29 #include "webkit/common/webpreferences.h"
30 30
31 using content::BrowserThread; 31 using content::BrowserThread;
32 using content::WebContentsTester; 32 using content::WebContentsTester;
33 33
34 TEST(ChromePrefServiceTest, UpdateCommandLinePrefStore) { 34 TEST(ChromePrefServiceTest, UpdateCommandLinePrefStore) {
35 TestingPrefServiceSimple prefs; 35 TestingPrefServiceSimple prefs;
36 prefs.registry()->RegisterBooleanPref(prefs::kCloudPrintProxyEnabled, false); 36 prefs.registry()->RegisterBooleanPref(prefs::kCloudPrintProxyEnabled, false);
37 37
38 // Check to make sure the value is as expected. 38 // Check to make sure the value is as expected.
39 const PrefService::Preference* pref = 39 const PrefService::Preference* pref =
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after
194 const char kDefaultFont[] = "Times"; 194 const char kDefaultFont[] = "Times";
195 #elif defined(OS_CHROMEOS) 195 #elif defined(OS_CHROMEOS)
196 const char kDefaultFont[] = "Tinos"; 196 const char kDefaultFont[] = "Tinos";
197 #else 197 #else
198 const char kDefaultFont[] = "Times New Roman"; 198 const char kDefaultFont[] = "Times New Roman";
199 #endif 199 #endif
200 EXPECT_EQ(ASCIIToUTF16(kDefaultFont), 200 EXPECT_EQ(ASCIIToUTF16(kDefaultFont),
201 webkit_prefs.standard_font_family_map[prefs::kWebKitCommonScript]); 201 webkit_prefs.standard_font_family_map[prefs::kWebKitCommonScript]);
202 EXPECT_TRUE(webkit_prefs.javascript_enabled); 202 EXPECT_TRUE(webkit_prefs.javascript_enabled);
203 } 203 }
OLDNEW
« no previous file with comments | « chrome/browser/extensions/gpu_browsertest.cc ('k') | chrome/browser/printing/print_dialog_cloud.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698