| 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 "base/at_exit.h" | 5 #include "base/at_exit.h" |
| 6 #include "base/basictypes.h" | 6 #include "base/basictypes.h" |
| 7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
| 8 #include "base/event_recorder.h" | 8 #include "base/event_recorder.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 21 matching lines...) Expand all Loading... |
| 32 #include "webkit/extensions/v8/heap_profiler_extension.h" | 32 #include "webkit/extensions/v8/heap_profiler_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 #if defined(OS_WIN) |
| 43 #pragma warning(disable: 4996) |
| 44 #endif |
| 45 |
| 42 static const size_t kPathBufSize = 2048; | 46 static const size_t kPathBufSize = 2048; |
| 43 | 47 |
| 44 using WebKit::WebScriptController; | 48 using WebKit::WebScriptController; |
| 45 | 49 |
| 46 namespace { | 50 namespace { |
| 47 | 51 |
| 48 // StatsTable initialization parameters. | 52 // StatsTable initialization parameters. |
| 49 const char* const kStatsFilePrefix = "testshell_"; | 53 const char* const kStatsFilePrefix = "testshell_"; |
| 50 int kStatsFileThreads = 20; | 54 int kStatsFileThreads = 20; |
| 51 int kStatsFileCounters = 200; | 55 int kStatsFileCounters = 200; |
| (...skipping 320 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 372 TestShell::ShutdownTestShell(); | 376 TestShell::ShutdownTestShell(); |
| 373 TestShell::CleanupLogging(); | 377 TestShell::CleanupLogging(); |
| 374 | 378 |
| 375 // Tear down shared StatsTable; prevents unit_tests from leaking it. | 379 // Tear down shared StatsTable; prevents unit_tests from leaking it. |
| 376 StatsTable::set_current(NULL); | 380 StatsTable::set_current(NULL); |
| 377 delete table; | 381 delete table; |
| 378 RemoveSharedMemoryFile(stats_filename); | 382 RemoveSharedMemoryFile(stats_filename); |
| 379 | 383 |
| 380 return 0; | 384 return 0; |
| 381 } | 385 } |
| OLD | NEW |