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

Unified Diff: chrome/browser/safe_browsing/client_side_detection_host_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/browser/safe_browsing/client_side_detection_host_unittest.cc
diff --git a/chrome/browser/safe_browsing/client_side_detection_host_unittest.cc b/chrome/browser/safe_browsing/client_side_detection_host_unittest.cc
index 74ec857dfc2b4d68312617003f840978801d5603..ec8b4e3ddb6a7d697f9ad32e751d6c874c9cd393 100644
--- a/chrome/browser/safe_browsing/client_side_detection_host_unittest.cc
+++ b/chrome/browser/safe_browsing/client_side_detection_host_unittest.cc
@@ -635,11 +635,11 @@ TEST_F(ClientSideDetectionHostTest, UpdateIPHostMap) {
BrowseInfo* browse_info = GetBrowseInfo();
// Empty IP or host are skipped
- UpdateIPHostMap("250.10.10.10", "");
+ UpdateIPHostMap("250.10.10.10", std::string());
ASSERT_EQ(0U, browse_info->ips.size());
- UpdateIPHostMap("", "google.com/");
+ UpdateIPHostMap(std::string(), "google.com/");
ASSERT_EQ(0U, browse_info->ips.size());
- UpdateIPHostMap("", "");
+ UpdateIPHostMap(std::string(), std::string());
ASSERT_EQ(0U, browse_info->ips.size());
std::set<std::string> expected_hosts;

Powered by Google App Engine
This is Rietveld 408576698