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

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

Issue 648293002: Remove TestNetworkPredictionEnabledPref. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove TestNetworkPredictionEnabledPref. Created 6 years, 2 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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"
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
118 browser()->tab_strip_model()->GetActiveWebContents()->GetTitle()); 118 browser()->tab_strip_model()->GetActiveWebContents()->GetTitle());
119 browser()->profile()->GetPrefs()->SetBoolean(prefs::kWebKitJavascriptEnabled, 119 browser()->profile()->GetPrefs()->SetBoolean(prefs::kWebKitJavascriptEnabled,
120 false); 120 false);
121 ui_test_utils::NavigateToURL( 121 ui_test_utils::NavigateToURL(
122 browser(), 122 browser(),
123 test_server()->GetURL("files/javaScriptTitle.html")); 123 test_server()->GetURL("files/javaScriptTitle.html"));
124 EXPECT_EQ(base::ASCIIToUTF16("This is html title"), 124 EXPECT_EQ(base::ASCIIToUTF16("This is html title"),
125 browser()->tab_strip_model()->GetActiveWebContents()->GetTitle()); 125 browser()->tab_strip_model()->GetActiveWebContents()->GetTitle());
126 } 126 }
127 127
128 // Verify DNS prefetching pref.
129 IN_PROC_BROWSER_TEST_F(PrefsFunctionalTest, TestNetworkPredictionEnabledPref) {
130 EXPECT_TRUE(browser()->profile()->GetPrefs()->GetBoolean(
131 prefs::kNetworkPredictionEnabled));
132 browser()->profile()->GetPrefs()->SetBoolean(prefs::kNetworkPredictionEnabled,
133 false);
134 EXPECT_FALSE(browser()->profile()->GetPrefs()->GetBoolean(
135 prefs::kNetworkPredictionEnabled));
136 }
137
138 // Verify restore for bookmark bar visibility. 128 // Verify restore for bookmark bar visibility.
139 IN_PROC_BROWSER_TEST_F(PrefsFunctionalTest, 129 IN_PROC_BROWSER_TEST_F(PrefsFunctionalTest,
140 TestSessionRestoreShowBookmarkBar) { 130 TestSessionRestoreShowBookmarkBar) {
141 EXPECT_FALSE(browser()->profile()->GetPrefs()->GetBoolean( 131 EXPECT_FALSE(browser()->profile()->GetPrefs()->GetBoolean(
142 bookmarks::prefs::kShowBookmarkBar)); 132 bookmarks::prefs::kShowBookmarkBar));
143 browser()->profile()->GetPrefs()->SetBoolean( 133 browser()->profile()->GetPrefs()->SetBoolean(
144 bookmarks::prefs::kShowBookmarkBar, true); 134 bookmarks::prefs::kShowBookmarkBar, true);
145 EXPECT_TRUE(browser()->profile()->GetPrefs()->GetBoolean( 135 EXPECT_TRUE(browser()->profile()->GetPrefs()->GetBoolean(
146 bookmarks::prefs::kShowBookmarkBar)); 136 bookmarks::prefs::kShowBookmarkBar));
147 137
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
236 EXPECT_FALSE(prefs->GetBoolean(prefs::kSafeBrowsingEnabled)); 226 EXPECT_FALSE(prefs->GetBoolean(prefs::kSafeBrowsingEnabled));
237 EXPECT_FALSE(prefs->GetBoolean(prefs::kAlternateErrorPagesEnabled)); 227 EXPECT_FALSE(prefs->GetBoolean(prefs::kAlternateErrorPagesEnabled));
238 EXPECT_FALSE(prefs->GetBoolean(prefs::kSearchSuggestEnabled)); 228 EXPECT_FALSE(prefs->GetBoolean(prefs::kSearchSuggestEnabled));
239 } 229 }
240 230
241 // Verify that we have some Local State prefs. 231 // Verify that we have some Local State prefs.
242 IN_PROC_BROWSER_TEST_F(PrefsFunctionalTest, TestHaveLocalStatePrefs) { 232 IN_PROC_BROWSER_TEST_F(PrefsFunctionalTest, TestHaveLocalStatePrefs) {
243 EXPECT_TRUE(g_browser_process->local_state()->GetPreferenceValues().get()); 233 EXPECT_TRUE(g_browser_process->local_state()->GetPreferenceValues().get());
244 } 234 }
245 235
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698