OLD | NEW |
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 <string> | 5 #include <string> |
6 | 6 |
7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
8 #include "base/file_util.h" | 8 #include "base/file_util.h" |
9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
10 #include "base/path_service.h" | 10 #include "base/path_service.h" |
(...skipping 10 matching lines...) Expand all Loading... |
21 #include "chrome/browser/prefs/pref_value_store.h" | 21 #include "chrome/browser/prefs/pref_value_store.h" |
22 #include "chrome/browser/prefs/scoped_user_pref_update.h" | 22 #include "chrome/browser/prefs/scoped_user_pref_update.h" |
23 #include "chrome/browser/prefs/testing_pref_store.h" | 23 #include "chrome/browser/prefs/testing_pref_store.h" |
24 #include "chrome/common/chrome_paths.h" | 24 #include "chrome/common/chrome_paths.h" |
25 #include "chrome/common/chrome_switches.h" | 25 #include "chrome/common/chrome_switches.h" |
26 #include "chrome/common/json_pref_store.h" | 26 #include "chrome/common/json_pref_store.h" |
27 #include "chrome/common/pref_names.h" | 27 #include "chrome/common/pref_names.h" |
28 #include "chrome/test/base/chrome_render_view_host_test_harness.h" | 28 #include "chrome/test/base/chrome_render_view_host_test_harness.h" |
29 #include "chrome/test/base/testing_pref_service.h" | 29 #include "chrome/test/base/testing_pref_service.h" |
30 #include "chrome/test/base/testing_profile.h" | 30 #include "chrome/test/base/testing_profile.h" |
31 #include "content/test/test_browser_thread.h" | 31 #include "content/public/test/test_browser_thread.h" |
32 #include "content/test/web_contents_tester.h" | 32 #include "content/test/web_contents_tester.h" |
33 #include "testing/gmock/include/gmock/gmock.h" | 33 #include "testing/gmock/include/gmock/gmock.h" |
34 #include "testing/gtest/include/gtest/gtest.h" | 34 #include "testing/gtest/include/gtest/gtest.h" |
35 #include "ui/base/test/data/resource.h" | 35 #include "ui/base/test/data/resource.h" |
36 #include "webkit/glue/webpreferences.h" | 36 #include "webkit/glue/webpreferences.h" |
37 | 37 |
38 using content::BrowserThread; | 38 using content::BrowserThread; |
39 using content::WebContentsTester; | 39 using content::WebContentsTester; |
40 using testing::_; | 40 using testing::_; |
41 using testing::Mock; | 41 using testing::Mock; |
(...skipping 359 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
401 const char kDefaultFont[] = "Times"; | 401 const char kDefaultFont[] = "Times"; |
402 #elif defined(OS_CHROMEOS) | 402 #elif defined(OS_CHROMEOS) |
403 const char kDefaultFont[] = "Tinos"; | 403 const char kDefaultFont[] = "Tinos"; |
404 #else | 404 #else |
405 const char kDefaultFont[] = "Times New Roman"; | 405 const char kDefaultFont[] = "Times New Roman"; |
406 #endif | 406 #endif |
407 EXPECT_EQ(ASCIIToUTF16(kDefaultFont), | 407 EXPECT_EQ(ASCIIToUTF16(kDefaultFont), |
408 webkit_prefs.standard_font_family_map[prefs::kWebKitCommonScript]); | 408 webkit_prefs.standard_font_family_map[prefs::kWebKitCommonScript]); |
409 EXPECT_TRUE(webkit_prefs.javascript_enabled); | 409 EXPECT_TRUE(webkit_prefs.javascript_enabled); |
410 } | 410 } |
OLD | NEW |