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

Unified Diff: chrome/test/v8_unit_test.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/test/v8_unit_test.cc
diff --git a/chrome/test/v8_unit_test.cc b/chrome/test/v8_unit_test.cc
index aee85c2cb3c7ee54077bfd91eb0dffeb822a2923..281bacc356695d2fc030147a21cb3c1437c58c03 100644
--- a/chrome/test/v8_unit_test.cc
+++ b/chrome/test/v8_unit_test.cc
@@ -2,7 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "base/string_util.h"
+#include "base/stringprintf.h"
+#include "base/string_piece.h"
#include "chrome/test/v8_unit_test.h"
V8UnitTest::V8UnitTest() {}
@@ -51,15 +52,15 @@ std::string V8UnitTest::ExceptionToString(v8::TryCatch* try_catch) {
v8::String::Utf8Value exception(try_catch->Exception());
v8::Handle<v8::Message> message = try_catch->Message();
if (message.IsEmpty()) {
- str.append(StringPrintf("%s\n", *exception));
+ str.append(base::StringPrintf("%s\n", *exception));
} else {
v8::String::Utf8Value filename(message->GetScriptResourceName());
int linenum = message->GetLineNumber();
int colnum = message->GetStartColumn();
- str.append(StringPrintf("%s:%i:%i %s\n", *filename, linenum, colnum,
- *exception));
+ str.append(base::StringPrintf(
+ "%s:%i:%i %s\n", *filename, linenum, colnum, *exception));
v8::String::Utf8Value sourceline(message->GetSourceLine());
- str.append(StringPrintf("%s\n", *sourceline));
+ str.append(base::StringPrintf("%s\n", *sourceline));
}
return str;
}
« no previous file with comments | « chrome/test/sync/engine/mock_connection_manager.cc ('k') | chrome/tools/convert_dict/convert_dict_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698