diff options
author | ericroman@google.com <ericroman@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-11-18 06:01:51 +0000 |
---|---|---|
committer | ericroman@google.com <ericroman@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-11-18 06:01:51 +0000 |
commit | daf05bb1f88fa0c16b5991a814fa077147bb43f1 (patch) | |
tree | 2031b7cda412ad46375a9180feeacef1c19a5b27 /chrome | |
parent | 276ae6d3b89a1b521f54277669e73ed8e548fdb1 (diff) | |
download | chromium_src-daf05bb1f88fa0c16b5991a814fa077147bb43f1.zip chromium_src-daf05bb1f88fa0c16b5991a814fa077147bb43f1.tar.gz chromium_src-daf05bb1f88fa0c16b5991a814fa077147bb43f1.tar.bz2 |
Add the flag "--extra-chrome-flags" for all UI tests.
This is used to plumb though extra flags to pass to chrome.exe.
For example, to run reliability tests with WinHTTP stack:
reliability_tests.exe --extra-chrome-flags="--winhttp"
Note that no attempt is made to avoid duplicate parameters.
Review URL: http://codereview.chromium.org/11436
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@5599 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome')
-rw-r--r-- | chrome/test/ui/ui_test.cc | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/chrome/test/ui/ui_test.cc b/chrome/test/ui/ui_test.cc index 41b1325..72d2f57 100644 --- a/chrome/test/ui/ui_test.cc +++ b/chrome/test/ui/ui_test.cc @@ -46,6 +46,8 @@ bool UITest::disable_breakpad_ = false; int UITest::timeout_ms_ = 20 * 60 * 1000; std::wstring UITest::js_flags_ = L""; +const wchar_t kExtraChromeFlagsSwitch[] = L"extra-chrome-flags"; + // Uncomment this line to have the spawned process wait for the debugger to // attach. // #define WAIT_FOR_DEBUGGER_ON_OPEN 1 @@ -150,6 +152,12 @@ void UITest::LaunchBrowser(const std::wstring& arguments, bool clear_profile) { file_util::AppendToPath(&command_line, chrome::kBrowserProcessExecutableName); + // Add any explict command line flags passed to the process. + std::wstring extra_chrome_flags = + CommandLine().GetSwitchValue(kExtraChromeFlagsSwitch); + if (!extra_chrome_flags.empty()) + command_line.append(L" " + extra_chrome_flags); + // We need cookies on file:// for things like the page cycler. CommandLine::AppendSwitch(&command_line, switches::kEnableFileCookies); |