| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/shell_switches.h" | 5 #include "content/shell/common/shell_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 #include "content/shell/common/layout_test/layout_test_switches.h" | 9 #include "content/shell/common/layout_test/layout_test_switches.h" |
| 10 | 10 |
| 11 namespace switches { | 11 namespace switches { |
| 12 | 12 |
| 13 // Tells Content Shell that it's running as a content_browsertest. | 13 // Tells Content Shell that it's running as a content_browsertest. |
| 14 const char kContentBrowserTest[] = "browser-test"; | 14 const char kContentBrowserTest[] = "browser-test"; |
| 15 | 15 |
| 16 // Makes Content Shell use the given path for its data directory. | 16 // Makes Content Shell use the given path for its data directory. |
| 17 const char kContentShellDataPath[] = "data-path"; | 17 const char kContentShellDataPath[] = "data-path"; |
| 18 | 18 |
| 19 // The directory breakpad should store minidumps in. | 19 // The directory breakpad should store minidumps in. |
| 20 const char kCrashDumpsDir[] = "crash-dumps-dir"; | 20 const char kCrashDumpsDir[] = "crash-dumps-dir"; |
| 21 | 21 |
| 22 // Exposes the window.internals object to JavaScript for interactive development |
| 23 // and debugging of layout tests that rely on it. |
| 24 const char kExposeInternalsForTesting[] = "expose-internals-for-testing"; |
| 25 |
| 22 // Enable site isolation (--site-per-process style isolation) for a subset of | 26 // Enable site isolation (--site-per-process style isolation) for a subset of |
| 23 // sites. The argument is a wildcard pattern which will be matched against the | 27 // sites. The argument is a wildcard pattern which will be matched against the |
| 24 // site URL to determine which sites to isolate. This can be used to isolate | 28 // site URL to determine which sites to isolate. This can be used to isolate |
| 25 // just one top-level domain, or just one scheme. Example usages: | 29 // just one top-level domain, or just one scheme. Example usages: |
| 26 // --isolate-sites-for-testing=*.com | 30 // --isolate-sites-for-testing=*.com |
| 27 // --isolate-sites-for-testing=https://* | 31 // --isolate-sites-for-testing=https://* |
| 28 const char kIsolateSitesForTesting[] = "isolate-sites-for-testing"; | 32 const char kIsolateSitesForTesting[] = "isolate-sites-for-testing"; |
| 29 | 33 |
| 30 // Registers additional font files on Windows (for fonts outside the usual | 34 // Registers additional font files on Windows (for fonts outside the usual |
| 31 // %WINDIR%\Fonts location). Multiple files can be used by separating them | 35 // %WINDIR%\Fonts location). Multiple files can be used by separating them |
| (...skipping 14 matching lines...) Expand all Loading... |
| 46 } | 50 } |
| 47 return files; | 51 return files; |
| 48 } | 52 } |
| 49 | 53 |
| 50 bool IsRunLayoutTestSwitchPresent() { | 54 bool IsRunLayoutTestSwitchPresent() { |
| 51 return base::CommandLine::ForCurrentProcess()->HasSwitch( | 55 return base::CommandLine::ForCurrentProcess()->HasSwitch( |
| 52 switches::kRunLayoutTest); | 56 switches::kRunLayoutTest); |
| 53 } | 57 } |
| 54 | 58 |
| 55 } // namespace switches | 59 } // namespace switches |
| OLD | NEW |