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/path_service.h" | 7 #include "base/path_service.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/prefs/pref_service_syncable.h" | 10 #include "chrome/browser/prefs/pref_service_syncable.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/bookmark_pref_names.h" |
20 #include "content/public/browser/web_contents.h" | 21 #include "content/public/browser/web_contents.h" |
21 #include "content/public/test/browser_test_utils.h" | 22 #include "content/public/test/browser_test_utils.h" |
22 #include "content/public/test/download_test_observer.h" | 23 #include "content/public/test/download_test_observer.h" |
23 | 24 |
24 using content::BrowserContext; | 25 using content::BrowserContext; |
25 using content::DownloadManager; | 26 using content::DownloadManager; |
26 | 27 |
27 class PrefsFunctionalTest : public InProcessBrowserTest { | 28 class PrefsFunctionalTest : public InProcessBrowserTest { |
28 protected: | 29 protected: |
29 // Create a DownloadTestObserverTerminal that will wait for the | 30 // Create a DownloadTestObserverTerminal that will wait for the |
(...skipping 216 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
246 EXPECT_FALSE(prefs->GetBoolean(prefs::kSafeBrowsingEnabled)); | 247 EXPECT_FALSE(prefs->GetBoolean(prefs::kSafeBrowsingEnabled)); |
247 EXPECT_FALSE(prefs->GetBoolean(prefs::kAlternateErrorPagesEnabled)); | 248 EXPECT_FALSE(prefs->GetBoolean(prefs::kAlternateErrorPagesEnabled)); |
248 EXPECT_FALSE(prefs->GetBoolean(prefs::kSearchSuggestEnabled)); | 249 EXPECT_FALSE(prefs->GetBoolean(prefs::kSearchSuggestEnabled)); |
249 } | 250 } |
250 | 251 |
251 // Verify that we have some Local State prefs. | 252 // Verify that we have some Local State prefs. |
252 IN_PROC_BROWSER_TEST_F(PrefsFunctionalTest, TestHaveLocalStatePrefs) { | 253 IN_PROC_BROWSER_TEST_F(PrefsFunctionalTest, TestHaveLocalStatePrefs) { |
253 EXPECT_TRUE(g_browser_process->local_state()->GetPreferenceValues().get()); | 254 EXPECT_TRUE(g_browser_process->local_state()->GetPreferenceValues().get()); |
254 } | 255 } |
255 | 256 |
OLD | NEW |