summaryrefslogtreecommitdiffstats
path: root/chrome/test/in_process_browser_test.cc
diff options
context:
space:
mode:
authormpcomplete@google.com <mpcomplete@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-03-11 19:04:08 +0000
committermpcomplete@google.com <mpcomplete@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-03-11 19:04:08 +0000
commit605246deea1633608c1e445e5c1b8dbc0926be65 (patch)
treea83413de009c5b092d97513c98469cd14f466395 /chrome/test/in_process_browser_test.cc
parentb6b8365e8ada7beb4a9b7cbe8c7cebd60cbb4959 (diff)
downloadchromium_src-605246deea1633608c1e445e5c1b8dbc0926be65.zip
chromium_src-605246deea1633608c1e445e5c1b8dbc0926be65.tar.gz
chromium_src-605246deea1633608c1e445e5c1b8dbc0926be65.tar.bz2
Try to make ExtensionViewTest less flaky by running it in single-process mode.
Review URL: http://codereview.chromium.org/42055 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@11467 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/test/in_process_browser_test.cc')
-rw-r--r--chrome/test/in_process_browser_test.cc6
1 files changed, 5 insertions, 1 deletions
diff --git a/chrome/test/in_process_browser_test.cc b/chrome/test/in_process_browser_test.cc
index aec6391..2fe5a3bd 100644
--- a/chrome/test/in_process_browser_test.cc
+++ b/chrome/test/in_process_browser_test.cc
@@ -47,7 +47,8 @@ bool DieFileDie(const std::wstring& file, bool recurse) {
InProcessBrowserTest::InProcessBrowserTest()
: browser_(NULL),
show_window_(false),
- dom_automation_enabled_(false) {
+ dom_automation_enabled_(false),
+ single_process_(false) {
}
void InProcessBrowserTest::SetUp() {
@@ -78,6 +79,9 @@ void InProcessBrowserTest::SetUp() {
if (dom_automation_enabled_)
command_line->AppendSwitch(switches::kDomAutomationController);
+ if (single_process_)
+ command_line->AppendSwitch(switches::kSingleProcess);
+
command_line->AppendSwitchWithValue(switches::kUserDataDir, user_data_dir);
// For some reason the sandbox wasn't happy running in test mode. These