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

Unified Diff: chrome/service/service_process_prefs_unittest.cc

Issue 13145003: Rewrite std::string("") to std::string(), Linux edition. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Ugh Created 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/service/service_process.cc ('k') | chrome/test/base/ui_test_utils.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/service/service_process_prefs_unittest.cc
diff --git a/chrome/service/service_process_prefs_unittest.cc b/chrome/service/service_process_prefs_unittest.cc
index 5d68ab31d17ac482801ce2b89ee1dae75e44ac9f..3d7ae1fee09a4123e18d971bd51877e528acbe70 100644
--- a/chrome/service/service_process_prefs_unittest.cc
+++ b/chrome/service/service_process_prefs_unittest.cc
@@ -39,9 +39,8 @@ TEST_F(ServiceProcessPrefsTest, RetrievePrefs) {
prefs_->WritePrefs();
message_loop_.RunUntilIdle();
prefs_->SetBoolean("testb", false); // overwrite
- prefs_->SetString("tests", ""); // overwrite
+ prefs_->SetString("tests", std::string()); // overwrite
prefs_->ReadPrefs();
EXPECT_EQ(prefs_->GetBoolean("testb", false), true);
- EXPECT_EQ(prefs_->GetString("tests", ""), "testvalue");
+ EXPECT_EQ(prefs_->GetString("tests", std::string()), "testvalue");
}
-
« no previous file with comments | « chrome/service/service_process.cc ('k') | chrome/test/base/ui_test_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698