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_switches.h" | 5 #include "webkit/tools/test_shell/test_shell_switches.h" |
6 | 6 |
7 namespace test_shell { | 7 namespace test_shell { |
8 | 8 |
9 // Suppresses all error dialogs when present. | 9 // Suppresses all error dialogs when present. |
10 const wchar_t kNoErrorDialogs[] = L"noerrdialogs"; | 10 const char kNoErrorDialogs[] = "noerrdialogs"; |
11 | 11 |
12 // Causes the test_shell to run using stdin and stdout for URLs and output, | 12 // Causes the test_shell to run using stdin and stdout for URLs and output, |
13 // respectively, and interferes with interactive use of the UI. | 13 // respectively, and interferes with interactive use of the UI. |
14 const wchar_t kLayoutTests[] = L"layout-tests"; | 14 const char kLayoutTests[] = "layout-tests"; |
15 const wchar_t kCrashDumps[] = L"crash-dumps"; // Enable crash dumps | 15 const char kCrashDumps[] = "crash-dumps"; // Enable crash dumps |
16 | 16 |
17 // Causes the test_shell to run with a generic theme (part of layout_tests). | 17 // Causes the test_shell to run with a generic theme (part of layout_tests). |
18 const wchar_t kGenericTheme[] = L"generic-theme"; | 18 const char kGenericTheme[] = "generic-theme"; |
19 | 19 |
20 // This causes the test_shell to run with the classic theme. | 20 // This causes the test_shell to run with the classic theme. |
21 // Passing --layout-tests enables this by default. | 21 // Passing --layout-tests enables this by default. |
22 const wchar_t kClassicTheme[] = L"classic-theme"; | 22 const char kClassicTheme[] = "classic-theme"; |
23 | 23 |
24 // This causes the test_shell to run with the new windows theming engine | 24 // This causes the test_shell to run with the new windows theming engine |
25 // enabled. This is the default unless --layout-tests is specified. | 25 // enabled. This is the default unless --layout-tests is specified. |
26 const wchar_t kUxTheme[] = L"ux-theme"; | 26 const char kUxTheme[] = "ux-theme"; |
27 | 27 |
28 // Command line flags that control the tests when layout-tests is specified. | 28 // Command line flags that control the tests when layout-tests is specified. |
29 const wchar_t kNoTree[] = L"notree"; // Don't dump the render tree. | 29 const char kNoTree[] = "notree"; // Don't dump the render tree. |
30 const wchar_t kDumpPixels[] = L"pixel-tests"; // Enable pixel tests. | 30 const char kDumpPixels[] = "pixel-tests"; // Enable pixel tests. |
31 // Optional command line switch that specifies timeout time for page load when | 31 // Optional command line switch that specifies timeout time for page load when |
32 // running file tests in layout test mode, in ms. | 32 // running file tests in layout test mode, in ms. |
33 const wchar_t kTestShellTimeOut[] = L"time-out-ms"; | 33 const char kTestShellTimeOut[] = "time-out-ms"; |
34 | 34 |
35 const wchar_t kStartupDialog[] = L"testshell-startup-dialog"; | 35 const char kStartupDialog[] = "testshell-startup-dialog"; |
36 | 36 |
37 // Enable the Windows dialogs for GP faults in the test shell. This allows makes | 37 // Enable the Windows dialogs for GP faults in the test shell. This allows makes |
38 // it possible to attach a crashed test shell to a debugger. | 38 // it possible to attach a crashed test shell to a debugger. |
39 const wchar_t kGPFaultErrorBox[] = L"gp-fault-error-box"; | 39 const char kGPFaultErrorBox[] = "gp-fault-error-box"; |
40 | 40 |
41 // JavaScript flags passed to engine. | 41 // JavaScript flags passed to engine. |
42 const wchar_t kJavaScriptFlags[] = L"js-flags"; | 42 const char kJavaScriptFlags[] = "js-flags"; |
43 | 43 |
44 // Run the http cache in record mode. | 44 // Run the http cache in record mode. |
45 const wchar_t kRecordMode[] = L"record-mode"; | 45 const char kRecordMode[] = "record-mode"; |
46 | 46 |
47 // Run the http cache in playback mode. | 47 // Run the http cache in playback mode. |
48 const wchar_t kPlaybackMode[] = L"playback-mode"; | 48 const char kPlaybackMode[] = "playback-mode"; |
49 | 49 |
50 // Don't record/playback events when using record & playback. | 50 // Don't record/playback events when using record & playback. |
51 const wchar_t kNoEvents[] = L"no-events"; | 51 const char kNoEvents[] = "no-events"; |
52 | 52 |
53 // Dump stats table on exit. | 53 // Dump stats table on exit. |
54 const wchar_t kDumpStatsTable[] = L"stats"; | 54 const char kDumpStatsTable[] = "stats"; |
55 | 55 |
56 // Use a specified cache directory. | 56 // Use a specified cache directory. |
57 const wchar_t kCacheDir[] = L"cache-dir"; | 57 const char kCacheDir[] = "cache-dir"; |
58 | 58 |
59 // When being run through a memory profiler, trigger memory in use dumps at | 59 // When being run through a memory profiler, trigger memory in use dumps at |
60 // startup and just prior to shutdown. | 60 // startup and just prior to shutdown. |
61 const wchar_t kDebugMemoryInUse[] = L"debug-memory-in-use"; | 61 const char kDebugMemoryInUse[] = "debug-memory-in-use"; |
62 | 62 |
63 // Enable cookies on the file:// scheme. --layout-tests also enables this. | 63 // Enable cookies on the file:// scheme. --layout-tests also enables this. |
64 const wchar_t kEnableFileCookies[] = L"enable-file-cookies"; | 64 const char kEnableFileCookies[] = "enable-file-cookies"; |
65 | 65 |
66 // Enable tracing events (see base/trace_event.h) | 66 // Enable tracing events (see base/trace_event.h) |
67 const wchar_t kEnableTracing[] = L"enable-tracing"; | 67 const char kEnableTracing[] = "enable-tracing"; |
68 | 68 |
69 // Allow scripts to close windows in all cases. | 69 // Allow scripts to close windows in all cases. |
70 const wchar_t kAllowScriptsToCloseWindows[] = L"allow-scripts-to-close-windows"; | 70 const char kAllowScriptsToCloseWindows[] = "allow-scripts-to-close-windows"; |
71 | 71 |
72 // Test the system dependencies (themes, fonts, ...). When this flag is | 72 // Test the system dependencies (themes, fonts, ...). When this flag is |
73 // specified, the test shell will exit immediately with either 0 (success) or | 73 // specified, the test shell will exit immediately with either 0 (success) or |
74 // 1 (failure). Combining with other flags has no effect. | 74 // 1 (failure). Combining with other flags has no effect. |
75 extern const wchar_t kCheckLayoutTestSystemDeps[] = | 75 extern const char kCheckLayoutTestSystemDeps[] = |
76 L"check-layout-test-sys-deps"; | 76 "check-layout-test-sys-deps"; |
77 | 77 |
78 // If set, we are running under GDB so allow a certain class of errors | 78 // If set, we are running under GDB so allow a certain class of errors |
79 // to happen even if in layout test mode. | 79 // to happen even if in layout test mode. |
80 extern const wchar_t kGDB[] = L"gdb"; | 80 extern const char kGDB[] = "gdb"; |
81 | 81 |
82 // Make functions of the Profiler class available in javascript | 82 // Make functions of the Profiler class available in javascript |
83 extern const wchar_t kProfiler[] = L"profiler"; | 83 extern const char kProfiler[] = "profiler"; |
84 | 84 |
85 } // namespace test_shell | 85 } // namespace test_shell |
OLD | NEW |