summaryrefslogtreecommitdiffstats
path: root/webkit/tools
diff options
context:
space:
mode:
Diffstat (limited to 'webkit/tools')
-rw-r--r--webkit/tools/test_shell/mac/main.mm6
-rw-r--r--webkit/tools/test_shell/test_shell.cc4
-rw-r--r--webkit/tools/test_shell/test_shell_main.cc4
3 files changed, 7 insertions, 7 deletions
diff --git a/webkit/tools/test_shell/mac/main.mm b/webkit/tools/test_shell/mac/main.mm
index 9dd39be..a3dbeb8 100644
--- a/webkit/tools/test_shell/mac/main.mm
+++ b/webkit/tools/test_shell/mac/main.mm
@@ -27,7 +27,7 @@
static char g_currentTestName[PATH_MAX];
-static const char* kStatsFile = "testshell";
+static const wchar_t* kStatsFile = L"testshell";
static int kStatsFileThreads = 20;
static int kStatsFileCounters = 100;
@@ -164,8 +164,8 @@ int main(const int argc, const char *argv[]) {
// Load and initialize the stats table (one per process, so that multiple
// instances don't interfere with each other)
- char statsfile[64];
- snprintf(statsfile, 64, "%s-%d", kStatsFile, getpid());
+ wchar_t statsfile[64];
+ swprintf(statsfile, 64, L"%ls-%d", kStatsFile, getpid());
StatsTable *table =
new StatsTable(statsfile, kStatsFileThreads, kStatsFileCounters);
StatsTable::set_current(table);
diff --git a/webkit/tools/test_shell/test_shell.cc b/webkit/tools/test_shell/test_shell.cc
index 559145c..04b05b3 100644
--- a/webkit/tools/test_shell/test_shell.cc
+++ b/webkit/tools/test_shell/test_shell.cc
@@ -138,10 +138,10 @@ TestShell::~TestShell() {
if (table != NULL) {
int counter_max = table->GetMaxCounters();
for (int index=0; index < counter_max; index++) {
- std::string name(table->GetRowName(index));
+ std::wstring name(table->GetRowName(index));
if (name.length() > 0) {
int value = table->GetRowValue(index);
- printf("%s:\t%d\n", name.c_str(), value);
+ printf("%s:\t%d\n", WideToUTF8(name).c_str(), value);
}
}
}
diff --git a/webkit/tools/test_shell/test_shell_main.cc b/webkit/tools/test_shell/test_shell_main.cc
index 9d619ef..91a9567 100644
--- a/webkit/tools/test_shell/test_shell_main.cc
+++ b/webkit/tools/test_shell/test_shell_main.cc
@@ -54,7 +54,7 @@ static const size_t kPathBufSize = 2048;
namespace {
// StatsTable initialization parameters.
-static const char* kStatsFilePrefix = "testshell_";
+static const wchar_t* kStatsFilePrefix = L"testshell_";
static int kStatsFileThreads = 20;
static int kStatsFileCounters = 200;
@@ -233,7 +233,7 @@ int main(int argc, char* argv[]) {
// Load and initialize the stats table. Attempt to construct a somewhat
// unique name to isolate separate instances from each other.
StatsTable *table = new StatsTable(
- kStatsFilePrefix + Uint64ToString(base::RandUint64()),
+ kStatsFilePrefix + Uint64ToWString(base::RandUint64()),
kStatsFileThreads,
kStatsFileCounters);
StatsTable::set_current(table);