| Index: webkit/tools/test_shell/run_all_tests.cc
|
| diff --git a/webkit/tools/test_shell/run_all_tests.cc b/webkit/tools/test_shell/run_all_tests.cc
|
| index 2277c2ae158422b9faaae621c258fb98dc3fbb17..94c08b73670be31fa3e515ee3cc292f506f6f5f0 100644
|
| --- a/webkit/tools/test_shell/run_all_tests.cc
|
| +++ b/webkit/tools/test_shell/run_all_tests.cc
|
| @@ -26,6 +26,7 @@
|
| #include "webkit/tools/test_shell/simple_resource_loader_bridge.h"
|
| #include "webkit/tools/test_shell/test_shell.h"
|
| #include "webkit/tools/test_shell/test_shell_platform_delegate.h"
|
| +#include "webkit/tools/test_shell/test_shell_switches.h"
|
| #include "webkit/tools/test_shell/test_shell_test.h"
|
| #include "webkit/tools/test_shell/test_shell_webkit_init.h"
|
| #include "testing/gtest/include/gtest/gtest.h"
|
| @@ -58,6 +59,13 @@ int main(int argc, char* argv[]) {
|
| const CommandLine& parsed_command_line = *CommandLine::ForCurrentProcess();
|
| TestShellPlatformDelegate platform(parsed_command_line);
|
|
|
| + // Allow tests to analyze GC information from V8 log, and expose GC
|
| + // triggering function.
|
| + std::wstring js_flags =
|
| + parsed_command_line.GetSwitchValue(test_shell::kJavaScriptFlags);
|
| + js_flags += L" --logfile=* --log_gc --expose_gc";
|
| + webkit_glue::SetJavaScriptFlags(js_flags);
|
| +
|
| // Suppress error dialogs and do not show GP fault error box on Windows.
|
| TestShell::InitLogging(true, false, false);
|
|
|
|
|