| 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 <iostream> | 5 #include <iostream> |
| 6 | 6 |
| 7 #include "base/at_exit.h" | 7 #include "base/at_exit.h" |
| 8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
| 10 #include "base/event_recorder.h" | 10 #include "base/event_recorder.h" |
| (...skipping 21 matching lines...) Expand all Loading... |
| 32 #include "webkit/extensions/v8/gc_extension.h" | 32 #include "webkit/extensions/v8/gc_extension.h" |
| 33 #include "webkit/extensions/v8/playback_extension.h" | 33 #include "webkit/extensions/v8/playback_extension.h" |
| 34 #include "webkit/extensions/v8/profiler_extension.h" | 34 #include "webkit/extensions/v8/profiler_extension.h" |
| 35 #include "webkit/tools/test_shell/simple_resource_loader_bridge.h" | 35 #include "webkit/tools/test_shell/simple_resource_loader_bridge.h" |
| 36 #include "webkit/tools/test_shell/test_shell.h" | 36 #include "webkit/tools/test_shell/test_shell.h" |
| 37 #include "webkit/tools/test_shell/test_shell_platform_delegate.h" | 37 #include "webkit/tools/test_shell/test_shell_platform_delegate.h" |
| 38 #include "webkit/tools/test_shell/test_shell_request_context.h" | 38 #include "webkit/tools/test_shell/test_shell_request_context.h" |
| 39 #include "webkit/tools/test_shell/test_shell_switches.h" | 39 #include "webkit/tools/test_shell/test_shell_switches.h" |
| 40 #include "webkit/tools/test_shell/test_shell_webkit_init.h" | 40 #include "webkit/tools/test_shell/test_shell_webkit_init.h" |
| 41 | 41 |
| 42 using namespace std; | |
| 43 | |
| 44 static const size_t kPathBufSize = 2048; | 42 static const size_t kPathBufSize = 2048; |
| 45 | 43 |
| 46 namespace { | 44 namespace { |
| 47 | 45 |
| 48 // StatsTable initialization parameters. | 46 // StatsTable initialization parameters. |
| 49 static const char* kStatsFilePrefix = "testshell_"; | 47 static const char* kStatsFilePrefix = "testshell_"; |
| 50 static int kStatsFileThreads = 20; | 48 static int kStatsFileThreads = 20; |
| 51 static int kStatsFileCounters = 200; | 49 static int kStatsFileCounters = 200; |
| 52 | 50 |
| 53 } // namespace | 51 } // namespace |
| (...skipping 279 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 333 | 331 |
| 334 TestShell::ShutdownTestShell(); | 332 TestShell::ShutdownTestShell(); |
| 335 TestShell::CleanupLogging(); | 333 TestShell::CleanupLogging(); |
| 336 | 334 |
| 337 // Tear down shared StatsTable; prevents unit_tests from leaking it. | 335 // Tear down shared StatsTable; prevents unit_tests from leaking it. |
| 338 StatsTable::set_current(NULL); | 336 StatsTable::set_current(NULL); |
| 339 delete table; | 337 delete table; |
| 340 | 338 |
| 341 return 0; | 339 return 0; |
| 342 } | 340 } |
| OLD | NEW |