summaryrefslogtreecommitdiffstats
path: root/chrome/test/v8_unit_test.cc
diff options
context:
space:
mode:
authorjhawkins@chromium.org <jhawkins@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-05-12 01:55:40 +0000
committerjhawkins@chromium.org <jhawkins@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-05-12 01:55:40 +0000
commit1870d5cfa5ca359b44a32322c225cca1b2818e91 (patch)
tree410cfe2ee14081320dfbab6743ba85683e1aa6f3 /chrome/test/v8_unit_test.cc
parent2ba45d1412dd0bbfea931a497efad37540a8d9df (diff)
downloadchromium_src-1870d5cfa5ca359b44a32322c225cca1b2818e91.zip
chromium_src-1870d5cfa5ca359b44a32322c225cca1b2818e91.tar.gz
chromium_src-1870d5cfa5ca359b44a32322c225cca1b2818e91.tar.bz2
iwyu: Include stringprintf.h where appropriate, part 3.
BUG=82098 TEST=none R=csilv@chromium.org Review URL: http://codereview.chromium.org/7016011 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@85088 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/test/v8_unit_test.cc')
-rw-r--r--chrome/test/v8_unit_test.cc11
1 files changed, 6 insertions, 5 deletions
diff --git a/chrome/test/v8_unit_test.cc b/chrome/test/v8_unit_test.cc
index aee85c2..281bacc 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;
}