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

Unified Diff: chrome/renderer/safe_browsing/features_unittest.cc

Issue 7016011: iwyu: Include stringprintf.h where appropriate, part 3. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Win fix. Created 9 years, 7 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/renderer/safe_browsing/features_unittest.cc
diff --git a/chrome/renderer/safe_browsing/features_unittest.cc b/chrome/renderer/safe_browsing/features_unittest.cc
index ac5cb555e16028b2a01f4f5b90dd718b8951cf23..e08de789e79ae809d0c29ad62cb9b591b9dc44a5 100644
--- a/chrome/renderer/safe_browsing/features_unittest.cc
+++ b/chrome/renderer/safe_browsing/features_unittest.cc
@@ -5,7 +5,7 @@
#include "chrome/renderer/safe_browsing/features.h"
#include "base/format_macros.h"
-#include "base/string_util.h"
+#include "base/stringprintf.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
@@ -14,13 +14,15 @@ namespace safe_browsing {
TEST(PhishingFeaturesTest, TooManyFeatures) {
FeatureMap features;
for (size_t i = 0; i < FeatureMap::kMaxFeatureMapSize; ++i) {
- EXPECT_TRUE(features.AddBooleanFeature(StringPrintf("Feature%" PRIuS, i)));
+ EXPECT_TRUE(features.AddBooleanFeature(
+ base::StringPrintf("Feature%" PRIuS, i)));
}
EXPECT_EQ(FeatureMap::kMaxFeatureMapSize, features.features().size());
// Attempting to add more features should fail.
for (size_t i = 0; i < 3; ++i) {
- EXPECT_FALSE(features.AddBooleanFeature(StringPrintf("Extra%" PRIuS, i)));
+ EXPECT_FALSE(features.AddBooleanFeature(
+ base::StringPrintf("Extra%" PRIuS, i)));
}
EXPECT_EQ(FeatureMap::kMaxFeatureMapSize, features.features().size());
}
« no previous file with comments | « chrome/common/net/gaia/gaia_auth_fetcher_unittest.cc ('k') | chrome/renderer/spellchecker/spellcheck_worditerator_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698