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

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

Issue 2799143002: Improve profile stats performace. (Closed)
Patch Set: Use enum Created 3 years, 8 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
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/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"
(...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after
230 230
231 EXPECT_EQ(chrome_browser_net::NETWORK_PREDICTION_NEVER, 231 EXPECT_EQ(chrome_browser_net::NETWORK_PREDICTION_NEVER,
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()
241 ->GetPreferenceValues(PrefService::INCLUDE_DEFAULTS)
242 .get());
241 } 243 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698