OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/support/webkit_support.h" | 5 #include "webkit/support/webkit_support.h" |
6 | 6 |
7 #include "base/at_exit.h" | 7 #include "base/at_exit.h" |
8 #include "base/base64.h" | 8 #include "base/base64.h" |
9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
10 #include "base/debug/debugger.h" | 10 #include "base/debug/debugger.h" |
(...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
223 static TestEnvironment* test_environment; | 223 static TestEnvironment* test_environment; |
224 | 224 |
225 static void SetUpTestEnvironmentImpl(bool unit_test_mode) { | 225 static void SetUpTestEnvironmentImpl(bool unit_test_mode) { |
226 base::EnableInProcessStackDumping(); | 226 base::EnableInProcessStackDumping(); |
227 base::EnableTerminationOnHeapCorruption(); | 227 base::EnableTerminationOnHeapCorruption(); |
228 | 228 |
229 // Initialize the singleton CommandLine with fixed values. Some code refer to | 229 // Initialize the singleton CommandLine with fixed values. Some code refer to |
230 // CommandLine::ForCurrentProcess(). We don't use the actual command-line | 230 // CommandLine::ForCurrentProcess(). We don't use the actual command-line |
231 // arguments of DRT to avoid unexpected behavior change. | 231 // arguments of DRT to avoid unexpected behavior change. |
232 // | 232 // |
233 // webkit/glue/webmediaplayer_impl.cc checks --enable-openmax. | |
234 // webkit/glue/plugin/plugin_list_posix.cc checks --debug-plugin-loading. | 233 // webkit/glue/plugin/plugin_list_posix.cc checks --debug-plugin-loading. |
235 // webkit/glue/plugin/plugin_list_win.cc checks --old-wmp. | 234 // webkit/glue/plugin/plugin_list_win.cc checks --old-wmp. |
236 // If DRT needs these flags, specify them in the following kFixedArguments. | 235 // If DRT needs these flags, specify them in the following kFixedArguments. |
237 const char* kFixedArguments[] = {"DumpRenderTree"}; | 236 const char* kFixedArguments[] = {"DumpRenderTree"}; |
238 CommandLine::Init(arraysize(kFixedArguments), kFixedArguments); | 237 CommandLine::Init(arraysize(kFixedArguments), kFixedArguments); |
239 | 238 |
240 webkit_support::BeforeInitialize(unit_test_mode); | 239 webkit_support::BeforeInitialize(unit_test_mode); |
241 webkit_support::test_environment = new TestEnvironment(unit_test_mode); | 240 webkit_support::test_environment = new TestEnvironment(unit_test_mode); |
242 webkit_support::AfterInitialize(unit_test_mode); | 241 webkit_support::AfterInitialize(unit_test_mode); |
243 if (!unit_test_mode) { | 242 if (!unit_test_mode) { |
(...skipping 359 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
603 test_environment->webkit_client()->fileSystem()); | 602 test_environment->webkit_client()->fileSystem()); |
604 fileSystem->OpenFileSystem(frame, type, size, create, callbacks); | 603 fileSystem->OpenFileSystem(frame, type, size, create, callbacks); |
605 } | 604 } |
606 | 605 |
607 // Timers | 606 // Timers |
608 double GetForegroundTabTimerInterval() { | 607 double GetForegroundTabTimerInterval() { |
609 return webkit_glue::kForegroundTabTimerInterval; | 608 return webkit_glue::kForegroundTabTimerInterval; |
610 } | 609 } |
611 | 610 |
612 } // namespace webkit_support | 611 } // namespace webkit_support |
OLD | NEW |