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

Side by Side Diff: chrome/test/in_process_browser_test.cc

Issue 2149003: Relanding 48042... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 7 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 | Annotate | Revision Log
« no previous file with comments | « chrome/common/extensions/extension_manifests_unittest.cc ('k') | chrome/test/ui/ui_test.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 "chrome/test/in_process_browser_test.h" 5 #include "chrome/test/in_process_browser_test.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/file_path.h" 8 #include "base/file_path.h"
9 #include "base/file_util.h" 9 #include "base/file_util.h"
10 #include "base/path_service.h" 10 #include "base/path_service.h"
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
131 command_line->AppendSwitchWithValue(switches::kUserDataDir, 131 command_line->AppendSwitchWithValue(switches::kUserDataDir,
132 user_data_dir.ToWStringHack()); 132 user_data_dir.ToWStringHack());
133 133
134 // For some reason the sandbox wasn't happy running in test mode. These 134 // For some reason the sandbox wasn't happy running in test mode. These
135 // tests aren't intended to test the sandbox, so we turn it off. 135 // tests aren't intended to test the sandbox, so we turn it off.
136 command_line->AppendSwitch(switches::kNoSandbox); 136 command_line->AppendSwitch(switches::kNoSandbox);
137 137
138 // Don't show the first run ui. 138 // Don't show the first run ui.
139 command_line->AppendSwitch(switches::kNoFirstRun); 139 command_line->AppendSwitch(switches::kNoFirstRun);
140 140
141 // TODO(jcivelli): http://crbug.com/44089 We disable the app launcher on new
142 // tab behavior for now until it is the default behavior on
143 // all platforms.
144 command_line->AppendSwitch(switches::kDisableAppsPanel);
145
146 // This is a Browser test. 141 // This is a Browser test.
147 command_line->AppendSwitchWithValue(switches::kTestType, 142 command_line->AppendSwitchWithValue(switches::kTestType,
148 ASCIIToWide(kBrowserTestType)); 143 ASCIIToWide(kBrowserTestType));
149 144
150 // Single-process mode is not set in BrowserMain so it needs to be processed 145 // Single-process mode is not set in BrowserMain so it needs to be processed
151 // explicitly. 146 // explicitly.
152 original_single_process_ = RenderProcessHost::run_renderer_in_process(); 147 original_single_process_ = RenderProcessHost::run_renderer_in_process();
153 if (command_line->HasSwitch(switches::kSingleProcess)) 148 if (command_line->HasSwitch(switches::kSingleProcess))
154 RenderProcessHost::set_run_renderer_in_process(true); 149 RenderProcessHost::set_run_renderer_in_process(true);
155 150
(...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after
330 325
331 GTEST_NONFATAL_FAILURE_(error_message.c_str()); 326 GTEST_NONFATAL_FAILURE_(error_message.c_str());
332 327
333 MessageLoopForUI::current()->Quit(); 328 MessageLoopForUI::current()->Quit();
334 } 329 }
335 330
336 void InProcessBrowserTest::SetInitialTimeoutInMS(int timeout_value) { 331 void InProcessBrowserTest::SetInitialTimeoutInMS(int timeout_value) {
337 DCHECK_GT(timeout_value, 0); 332 DCHECK_GT(timeout_value, 0);
338 initial_timeout_ = timeout_value; 333 initial_timeout_ = timeout_value;
339 } 334 }
OLDNEW
« no previous file with comments | « chrome/common/extensions/extension_manifests_unittest.cc ('k') | chrome/test/ui/ui_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698