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

Unified Diff: chrome/browser/metrics/metrics_log_unittest.cc

Issue 7004007: iwyu: Include stringprintf.h where appropriate, part 2. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix 2. 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
« no previous file with comments | « chrome/browser/importer/profile_writer.cc ('k') | chrome/browser/net/load_timing_observer_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/metrics/metrics_log_unittest.cc
diff --git a/chrome/browser/metrics/metrics_log_unittest.cc b/chrome/browser/metrics/metrics_log_unittest.cc
index 9fd9c50f92d8e74318c23a12c0658bda242d2910..c8f42bfba6f5c453a69b169e649a45f881a3a92c 100644
--- a/chrome/browser/metrics/metrics_log_unittest.cc
+++ b/chrome/browser/metrics/metrics_log_unittest.cc
@@ -4,6 +4,7 @@
#include <string>
+#include "base/stringprintf.h"
#include "base/string_util.h"
#include "base/time.h"
#include "chrome/browser/metrics/metrics_log.h"
@@ -43,7 +44,7 @@ static void NormalizeBuildtime(std::string* xml_encoded) {
}
TEST(MetricsLogTest, EmptyRecord) {
- std::string expected_output = StringPrintf(
+ std::string expected_output = base::StringPrintf(
"<log clientid=\"bogus client ID\" buildtime=\"123456789\" "
"appversion=\"%s\"/>", MetricsLog::GetVersionString().c_str());
@@ -65,7 +66,7 @@ TEST(MetricsLogTest, EmptyRecord) {
#if defined(OS_CHROMEOS)
TEST(MetricsLogTest, ChromeOSEmptyRecord) {
- std::string expected_output = StringPrintf(
+ std::string expected_output = base::StringPrintf(
"<log clientid=\"bogus client ID\" buildtime=\"123456789\" "
"appversion=\"%s\" hardwareclass=\"sample-class\"/>",
MetricsLog::GetVersionString().c_str());
@@ -105,7 +106,7 @@ class NoTimeMetricsLog : public MetricsLog {
}; // namespace
TEST(MetricsLogTest, WindowEvent) {
- std::string expected_output = StringPrintf(
+ std::string expected_output = base::StringPrintf(
"<log clientid=\"bogus client ID\" buildtime=\"123456789\" "
"appversion=\"%s\">\n"
" <window action=\"create\" windowid=\"0\" session=\"0\" time=\"\"/>\n"
@@ -139,7 +140,7 @@ TEST(MetricsLogTest, WindowEvent) {
}
TEST(MetricsLogTest, LoadEvent) {
- std::string expected_output = StringPrintf(
+ std::string expected_output = base::StringPrintf(
"<log clientid=\"bogus client ID\" buildtime=\"123456789\" "
"appversion=\"%s\">\n"
" <document action=\"load\" docid=\"1\" window=\"3\" loadtime=\"7219\" "
@@ -169,7 +170,7 @@ TEST(MetricsLogTest, LoadEvent) {
#if defined(OS_CHROMEOS)
TEST(MetricsLogTest, ChromeOSLoadEvent) {
- std::string expected_output = StringPrintf(
+ std::string expected_output = base::StringPrintf(
"<log clientid=\"bogus client ID\" buildtime=\"123456789\" "
"appversion=\"%s\" hardwareclass=\"sample-class\">\n"
" <document action=\"load\" docid=\"1\" window=\"3\" loadtime=\"7219\" "
@@ -206,7 +207,7 @@ TEST(MetricsLogTest, ChromeOSStabilityData) {
prefs.SetInteger(prefs::kStabilityOtherUserCrashCount, 11);
prefs.SetInteger(prefs::kStabilityKernelCrashCount, 12);
prefs.SetInteger(prefs::kStabilitySystemUncleanShutdownCount, 13);
- std::string expected_output = StringPrintf(
+ std::string expected_output = base::StringPrintf(
"<log clientid=\"bogus client ID\" buildtime=\"123456789\" "
"appversion=\"%s\">\n"
"<stability stuff>\n", MetricsLog::GetVersionString().c_str());
« no previous file with comments | « chrome/browser/importer/profile_writer.cc ('k') | chrome/browser/net/load_timing_observer_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698