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

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

Issue 231733005: Delete the GTK+ port of Chrome. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remerge to ToT Created 6 years, 8 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"
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
92 protected: 92 protected:
93 virtual void SetUp() { 93 virtual void SetUp() {
94 ChromeRenderViewHostTestHarness::SetUp(); 94 ChromeRenderViewHostTestHarness::SetUp();
95 95
96 // Supply our own profile so we use the correct profile data. The test 96 // Supply our own profile so we use the correct profile data. The test
97 // harness is not supposed to overwrite a profile if it's already created. 97 // harness is not supposed to overwrite a profile if it's already created.
98 98
99 // Set some (WebKit) user preferences. 99 // Set some (WebKit) user preferences.
100 TestingPrefServiceSyncable* pref_services = 100 TestingPrefServiceSyncable* pref_services =
101 profile()->GetTestingPrefService(); 101 profile()->GetTestingPrefService();
102 #if defined(TOOLKIT_GTK)
103 pref_services->SetUserPref(prefs::kUsesSystemTheme,
104 base::Value::CreateBooleanValue(false));
105 #endif
106 pref_services->SetUserPref(prefs::kDefaultCharset, 102 pref_services->SetUserPref(prefs::kDefaultCharset,
107 base::Value::CreateStringValue("utf8")); 103 base::Value::CreateStringValue("utf8"));
108 pref_services->SetUserPref(prefs::kWebKitDefaultFontSize, 104 pref_services->SetUserPref(prefs::kWebKitDefaultFontSize,
109 base::Value::CreateIntegerValue(20)); 105 base::Value::CreateIntegerValue(20));
110 pref_services->SetUserPref(prefs::kWebKitTextAreasAreResizable, 106 pref_services->SetUserPref(prefs::kWebKitTextAreasAreResizable,
111 base::Value::CreateBooleanValue(false)); 107 base::Value::CreateBooleanValue(false));
112 pref_services->SetUserPref(prefs::kWebKitUsesUniversalDetector, 108 pref_services->SetUserPref(prefs::kWebKitUsesUniversalDetector,
113 base::Value::CreateBooleanValue(true)); 109 base::Value::CreateBooleanValue(true));
114 pref_services->SetUserPref("webkit.webprefs.foo", 110 pref_services->SetUserPref("webkit.webprefs.foo",
115 base::Value::CreateStringValue("bar")); 111 base::Value::CreateStringValue("bar"));
(...skipping 17 matching lines...) Expand all
133 const char kDefaultFont[] = "Times"; 129 const char kDefaultFont[] = "Times";
134 #elif defined(OS_CHROMEOS) 130 #elif defined(OS_CHROMEOS)
135 const char kDefaultFont[] = "Tinos"; 131 const char kDefaultFont[] = "Tinos";
136 #else 132 #else
137 const char kDefaultFont[] = "Times New Roman"; 133 const char kDefaultFont[] = "Times New Roman";
138 #endif 134 #endif
139 EXPECT_EQ(base::ASCIIToUTF16(kDefaultFont), 135 EXPECT_EQ(base::ASCIIToUTF16(kDefaultFont),
140 webkit_prefs.standard_font_family_map[prefs::kWebKitCommonScript]); 136 webkit_prefs.standard_font_family_map[prefs::kWebKitCommonScript]);
141 EXPECT_TRUE(webkit_prefs.javascript_enabled); 137 EXPECT_TRUE(webkit_prefs.javascript_enabled);
142 } 138 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698