| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "webkit/tools/test_shell/test_shell.h" | 5 #include "webkit/tools/test_shell/test_shell.h" |
| 6 | 6 |
| 7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
| 8 #include "base/debug_on_start.h" | 8 #include "base/debug_on_start.h" |
| 9 #include "base/file_path.h" | 9 #include "base/file_path.h" |
| 10 #include "base/file_util.h" | 10 #include "base/file_util.h" |
| (...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 117 | 117 |
| 118 PlatformCleanUp(); | 118 PlatformCleanUp(); |
| 119 | 119 |
| 120 StatsTable *table = StatsTable::current(); | 120 StatsTable *table = StatsTable::current(); |
| 121 if (dump_stats_table_on_exit_) { | 121 if (dump_stats_table_on_exit_) { |
| 122 // Dump the stats table. | 122 // Dump the stats table. |
| 123 printf("<stats>\n"); | 123 printf("<stats>\n"); |
| 124 if (table != NULL) { | 124 if (table != NULL) { |
| 125 int counter_max = table->GetMaxCounters(); | 125 int counter_max = table->GetMaxCounters(); |
| 126 for (int index=0; index < counter_max; index++) { | 126 for (int index=0; index < counter_max; index++) { |
| 127 std::wstring name(table->GetRowName(index)); | 127 std::string name(table->GetRowName(index)); |
| 128 if (name.length() > 0) { | 128 if (name.length() > 0) { |
| 129 int value = table->GetRowValue(index); | 129 int value = table->GetRowValue(index); |
| 130 printf("%s:\t%d\n", WideToUTF8(name).c_str(), value); | 130 printf("%s:\t%d\n", name.c_str(), value); |
| 131 } | 131 } |
| 132 } | 132 } |
| 133 } | 133 } |
| 134 printf("</stats>\n"); | 134 printf("</stats>\n"); |
| 135 } | 135 } |
| 136 } | 136 } |
| 137 | 137 |
| 138 void TestShell::ShutdownTestShell() { | 138 void TestShell::ShutdownTestShell() { |
| 139 #if defined(OS_WIN) || defined(OS_MACOSX) | 139 #if defined(OS_WIN) || defined(OS_MACOSX) |
| 140 PlatformShutdown(); | 140 PlatformShutdown(); |
| (...skipping 364 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 505 | 505 |
| 506 bool IsDefaultPluginEnabled() { | 506 bool IsDefaultPluginEnabled() { |
| 507 return false; | 507 return false; |
| 508 } | 508 } |
| 509 | 509 |
| 510 std::wstring GetWebKitLocale() { | 510 std::wstring GetWebKitLocale() { |
| 511 return L"en-US"; | 511 return L"en-US"; |
| 512 } | 512 } |
| 513 | 513 |
| 514 } // namespace webkit_glue | 514 } // namespace webkit_glue |
| OLD | NEW |