OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 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 <string> | 5 #include <string> |
6 | 6 |
7 #include "base/memory/ptr_util.h" | 7 #include "base/memory/ptr_util.h" |
8 #include "base/strings/utf_string_conversions.h" | 8 #include "base/strings/utf_string_conversions.h" |
9 #include "chrome/browser/download/download_prefs.h" | 9 #include "chrome/browser/download/download_prefs.h" |
10 #include "chrome/browser/net/prediction_options.h" | 10 #include "chrome/browser/net/prediction_options.h" |
11 #include "chrome/browser/ui/browser.h" | 11 #include "chrome/browser/ui/browser.h" |
12 #include "chrome/browser/ui/browser_commands.h" | 12 #include "chrome/browser/ui/browser_commands.h" |
13 #include "chrome/browser/ui/tabs/tab_strip_model.h" | 13 #include "chrome/browser/ui/tabs/tab_strip_model.h" |
14 #include "chrome/common/chrome_paths.h" | 14 #include "chrome/common/chrome_paths.h" |
15 #include "chrome/common/pref_names.h" | 15 #include "chrome/common/pref_names.h" |
16 #include "chrome/test/base/in_process_browser_test.h" | 16 #include "chrome/test/base/in_process_browser_test.h" |
17 #include "chrome/test/base/testing_browser_process.h" | 17 #include "chrome/test/base/testing_browser_process.h" |
18 #include "chrome/test/base/testing_profile.h" | 18 #include "chrome/test/base/testing_profile.h" |
19 #include "chrome/test/base/ui_test_utils.h" | 19 #include "chrome/test/base/ui_test_utils.h" |
20 #include "components/bookmarks/common/bookmark_pref_names.h" | 20 #include "components/bookmarks/common/bookmark_pref_names.h" |
21 #include "components/content_settings/core/browser/website_settings_info.h" | 21 #include "components/content_settings/core/browser/website_settings_info.h" |
22 #include "components/content_settings/core/browser/website_settings_registry.h" | 22 #include "components/content_settings/core/browser/website_settings_registry.h" |
23 #include "components/content_settings/core/common/content_settings_types.h" | 23 #include "components/content_settings/core/common/content_settings_types.h" |
24 #include "components/content_settings/core/common/pref_names.h" | 24 #include "components/content_settings/core/common/pref_names.h" |
25 #include "components/syncable_prefs/pref_service_syncable.h" | 25 #include "components/sync_preferences/pref_service_syncable.h" |
26 #include "content/public/browser/web_contents.h" | 26 #include "content/public/browser/web_contents.h" |
27 #include "content/public/test/browser_test_utils.h" | 27 #include "content/public/test/browser_test_utils.h" |
28 #include "content/public/test/download_test_observer.h" | 28 #include "content/public/test/download_test_observer.h" |
29 #include "net/test/embedded_test_server/embedded_test_server.h" | 29 #include "net/test/embedded_test_server/embedded_test_server.h" |
30 | 30 |
31 using content::BrowserContext; | 31 using content::BrowserContext; |
32 using content::DownloadManager; | 32 using content::DownloadManager; |
33 | 33 |
34 class PrefsFunctionalTest : public InProcessBrowserTest { | 34 class PrefsFunctionalTest : public InProcessBrowserTest { |
35 protected: | 35 protected: |
(...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
232 prefs->GetInteger(prefs::kNetworkPredictionOptions)); | 232 prefs->GetInteger(prefs::kNetworkPredictionOptions)); |
233 EXPECT_FALSE(prefs->GetBoolean(prefs::kSafeBrowsingEnabled)); | 233 EXPECT_FALSE(prefs->GetBoolean(prefs::kSafeBrowsingEnabled)); |
234 EXPECT_FALSE(prefs->GetBoolean(prefs::kAlternateErrorPagesEnabled)); | 234 EXPECT_FALSE(prefs->GetBoolean(prefs::kAlternateErrorPagesEnabled)); |
235 EXPECT_FALSE(prefs->GetBoolean(prefs::kSearchSuggestEnabled)); | 235 EXPECT_FALSE(prefs->GetBoolean(prefs::kSearchSuggestEnabled)); |
236 } | 236 } |
237 | 237 |
238 // Verify that we have some Local State prefs. | 238 // Verify that we have some Local State prefs. |
239 IN_PROC_BROWSER_TEST_F(PrefsFunctionalTest, TestHaveLocalStatePrefs) { | 239 IN_PROC_BROWSER_TEST_F(PrefsFunctionalTest, TestHaveLocalStatePrefs) { |
240 EXPECT_TRUE(g_browser_process->local_state()->GetPreferenceValues().get()); | 240 EXPECT_TRUE(g_browser_process->local_state()->GetPreferenceValues().get()); |
241 } | 241 } |
OLD | NEW |