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

Unified Diff: chrome/browser/sync/sync_setup_wizard_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
« no previous file with comments | « chrome/browser/sync/sync_js_controller_unittest.cc ('k') | chrome/browser/sync/sync_ui_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/sync/sync_setup_wizard_unittest.cc
diff --git a/chrome/browser/sync/sync_setup_wizard_unittest.cc b/chrome/browser/sync/sync_setup_wizard_unittest.cc
index 9611dc71ef1f3fb498045cc0e46f3706bfe2bd46..adb0fa5639702b84c751a91956d167b90edb7f94 100644
--- a/chrome/browser/sync/sync_setup_wizard_unittest.cc
+++ b/chrome/browser/sync/sync_setup_wizard_unittest.cc
@@ -246,7 +246,7 @@ TEST_F(SyncSetupWizardTest, InitialStepLogin) {
auth += std::string(kTestPassword) + "\",\"captcha\":\"";
auth += std::string(kTestCaptcha) + "\",\"access_code\":\"";
auth += std::string() + "\"}";
- credentials.Append(new StringValue(auth));
+ credentials.Append(base::StringValue::New(auth));
EXPECT_FALSE(wizard_->IsVisible());
EXPECT_EQ(static_cast<SyncSetupFlow*>(NULL), flow_);
@@ -327,7 +327,7 @@ TEST_F(SyncSetupWizardTest, ChooseDataTypesSetsPrefs) {
"\"syncAutofill\":false,\"syncExtensions\":false,\"syncTypedUrls\":true,"
"\"syncApps\":true,\"syncSessions\":false,\"usePassphrase\":false,"
"\"encryptAllData\":false}";
- data_type_choices_value.Append(new StringValue(data_type_choices));
+ data_type_choices_value.Append(base::StringValue::New(data_type_choices));
// Simulate the user choosing data types; bookmarks, prefs, typed URLS, and
// apps are on, the rest are off.
@@ -358,7 +358,7 @@ TEST_F(SyncSetupWizardTest, EnterPassphraseRequired) {
EXPECT_EQ(SyncSetupWizard::ENTER_PASSPHRASE, flow_->current_state_);
ListValue value;
- value.Append(new StringValue("{\"passphrase\":\"myPassphrase\","
+ value.Append(base::StringValue::New("{\"passphrase\":\"myPassphrase\","
"\"mode\":\"gaia\"}"));
handler_.HandlePassphraseEntry(&value);
EXPECT_EQ("myPassphrase", service_->passphrase_);
« no previous file with comments | « chrome/browser/sync/sync_js_controller_unittest.cc ('k') | chrome/browser/sync/sync_ui_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698