Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(15)

Side by Side Diff: content/shell/common/layout_test/layout_test_switches.cc

Issue 2540603004: [Android] Redirect std{in,out,err} to sockets for layout tests. (Closed)
Patch Set: rebase Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 "content/shell/common/layout_test/layout_test_switches.h" 5 #include "content/shell/common/layout_test/layout_test_switches.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/strings/string_split.h" 8 #include "base/strings/string_split.h"
9 9
10 namespace switches { 10 namespace switches {
11 11
12 // Allow access to external pages during layout tests. 12 // Allow access to external pages during layout tests.
13 const char kAllowExternalPages[] = "allow-external-pages"; 13 const char kAllowExternalPages[] = "allow-external-pages";
14 14
15 #if defined(OS_ANDROID)
16 // Redirect stderr to the given port. Only supported on Android.
17 const char kAndroidStderrPort[] = "android-stderr-port";
18
19 // Redirect stdin to the given port. Only supported on Android.
20 const char kAndroidStdinPort[] = "android-stdin-port";
21
22 // Redirect stdout to the given port. Only supported on Android.
23 const char kAndroidStdoutPort[] = "android-stdout-port";
24 #endif // defined(OS_ANDROID)
25
15 // Check whether all system dependencies for running layout tests are met. 26 // Check whether all system dependencies for running layout tests are met.
16 const char kCheckLayoutTestSysDeps[] = "check-layout-test-sys-deps"; 27 const char kCheckLayoutTestSysDeps[] = "check-layout-test-sys-deps";
17 28
18 // When specified to "enable-leak-detection" command-line option, 29 // When specified to "enable-leak-detection" command-line option,
19 // causes the leak detector to cause immediate crash when found leak. 30 // causes the leak detector to cause immediate crash when found leak.
20 const char kCrashOnFailure[] = "crash-on-failure"; 31 const char kCrashOnFailure[] = "crash-on-failure";
21 32
22 // Run devtools tests in debug mode (not bundled and minified) 33 // Run devtools tests in debug mode (not bundled and minified)
23 const char kDebugDevTools[] = "debug-devtools"; 34 const char kDebugDevTools[] = "debug-devtools";
24 35
(...skipping 20 matching lines...) Expand all
45 // finished loading. 56 // finished loading.
46 const char kRunLayoutTest[] = "run-layout-test"; 57 const char kRunLayoutTest[] = "run-layout-test";
47 58
48 // This makes us disable some web-platform runtime features so that we test 59 // This makes us disable some web-platform runtime features so that we test
49 // content_shell as if it was a stable release. It is only followed when 60 // content_shell as if it was a stable release. It is only followed when
50 // kRunLayoutTest is set. For the features' level, see 61 // kRunLayoutTest is set. For the features' level, see
51 // http://dev.chromium.org/blink/runtime-enabled-features. 62 // http://dev.chromium.org/blink/runtime-enabled-features.
52 const char kStableReleaseMode[] = "stable-release-mode"; 63 const char kStableReleaseMode[] = "stable-release-mode";
53 64
54 } // namespace switches 65 } // namespace switches
OLDNEW
« no previous file with comments | « content/shell/common/layout_test/layout_test_switches.h ('k') | testing/android/native_test/native_test_launcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698