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

Unified Diff: chrome/common/pref_names_util_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
Index: chrome/common/pref_names_util_unittest.cc
diff --git a/chrome/common/pref_names_util_unittest.cc b/chrome/common/pref_names_util_unittest.cc
index 2d1356a77213a438d9036305f693c69d936a315c..9f215ea5808d145664170c204f3c2b1523e5e35d 100644
--- a/chrome/common/pref_names_util_unittest.cc
+++ b/chrome/common/pref_names_util_unittest.cc
@@ -28,7 +28,7 @@ void ExpectParse(const std::string& path,
} // namespace
TEST(PrefNamesUtilTest, Basic) {
- ExpectNoParse("");
+ ExpectNoParse(std::string());
ExpectNoParse(".");
ExpectNoParse(".....");
ExpectNoParse("webkit.webprefs.fonts.");
@@ -43,8 +43,8 @@ TEST(PrefNamesUtilTest, Basic) {
// We don't particularly care about the parsed family and script for these
// inputs, but just want to make sure it does something reasonable. Returning
// false may also be an option.
- ExpectParse("webkit.webprefs.fonts...", "", ".");
- ExpectParse("webkit.webprefs.fonts....", "", "..");
+ ExpectParse("webkit.webprefs.fonts...", std::string(), ".");
+ ExpectParse("webkit.webprefs.fonts....", std::string(), "..");
// Check that passing NULL output params is okay.
EXPECT_TRUE(pref_names_util::ParseFontNamePrefPath(
« no previous file with comments | « chrome/common/net/x509_certificate_model_nss.cc ('k') | chrome/renderer/autofill/password_autofill_agent_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698