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

Unified Diff: chrome/browser/prefs/incognito_mode_prefs_unittest.cc

Issue 7649006: more changes (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix another typo Created 9 years, 4 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/prefs/incognito_mode_prefs_unittest.cc
diff --git a/chrome/browser/prefs/incognito_mode_prefs_unittest.cc b/chrome/browser/prefs/incognito_mode_prefs_unittest.cc
index 053f0bf20fa869155f1dba0dd2abf10171fb9d5c..f7b3e80c882b76fd969766e1862a5dc270a898ce 100644
--- a/chrome/browser/prefs/incognito_mode_prefs_unittest.cc
+++ b/chrome/browser/prefs/incognito_mode_prefs_unittest.cc
@@ -38,17 +38,17 @@ TEST_F(IncognitoModePrefsTest, IntToAvailability) {
TEST_F(IncognitoModePrefsTest, GetAvailability) {
prefs_.SetUserPref(prefs::kIncognitoModeAvailability,
- Value::CreateIntegerValue(IncognitoModePrefs::ENABLED));
+ base::NumberValue::New(IncognitoModePrefs::ENABLED));
EXPECT_EQ(IncognitoModePrefs::ENABLED,
IncognitoModePrefs::GetAvailability(&prefs_));
prefs_.SetUserPref(prefs::kIncognitoModeAvailability,
- Value::CreateIntegerValue(IncognitoModePrefs::DISABLED));
+ base::NumberValue::New(IncognitoModePrefs::DISABLED));
EXPECT_EQ(IncognitoModePrefs::DISABLED,
IncognitoModePrefs::GetAvailability(&prefs_));
prefs_.SetUserPref(prefs::kIncognitoModeAvailability,
- Value::CreateIntegerValue(IncognitoModePrefs::FORCED));
+ base::NumberValue::New(IncognitoModePrefs::FORCED));
EXPECT_EQ(IncognitoModePrefs::FORCED,
IncognitoModePrefs::GetAvailability(&prefs_));
}
@@ -57,7 +57,7 @@ typedef IncognitoModePrefsTest IncognitoModePrefsDeathTest;
TEST_F(IncognitoModePrefsDeathTest, GetAvailabilityBadValue) {
prefs_.SetUserPref(prefs::kIncognitoModeAvailability,
- Value::CreateIntegerValue(-1));
+ base::NumberValue::New(-1));
EXPECT_DEBUG_DEATH({
IncognitoModePrefs::Availability availability =
IncognitoModePrefs::GetAvailability(&prefs_);
« no previous file with comments | « chrome/browser/prefs/command_line_pref_store.cc ('k') | chrome/browser/prefs/incognito_user_pref_store_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698