OLD | NEW |
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/strings/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" |
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
185 const char kDefaultFont[] = "Times"; | 185 const char kDefaultFont[] = "Times"; |
186 #elif defined(OS_CHROMEOS) | 186 #elif defined(OS_CHROMEOS) |
187 const char kDefaultFont[] = "Tinos"; | 187 const char kDefaultFont[] = "Tinos"; |
188 #else | 188 #else |
189 const char kDefaultFont[] = "Times New Roman"; | 189 const char kDefaultFont[] = "Times New Roman"; |
190 #endif | 190 #endif |
191 EXPECT_EQ(ASCIIToUTF16(kDefaultFont), | 191 EXPECT_EQ(ASCIIToUTF16(kDefaultFont), |
192 webkit_prefs.standard_font_family_map[prefs::kWebKitCommonScript]); | 192 webkit_prefs.standard_font_family_map[prefs::kWebKitCommonScript]); |
193 EXPECT_TRUE(webkit_prefs.javascript_enabled); | 193 EXPECT_TRUE(webkit_prefs.javascript_enabled); |
194 } | 194 } |
OLD | NEW |