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

Unified Diff: chrome/test/base/in_process_browser_test.cc

Issue 468493003: Admixtures in BrowserTestBase (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: minor fixes Created 6 years, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | content/public/test/browser_test_base.h » ('j') | content/public/test/browser_test_base.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/base/in_process_browser_test.cc
diff --git a/chrome/test/base/in_process_browser_test.cc b/chrome/test/base/in_process_browser_test.cc
index 9fa29b50bb5f13dfb6ebf174a34c40a021b82d40..b98b5f1a9a55182cf8138caa175532b8e5dfca9f 100644
--- a/chrome/test/base/in_process_browser_test.cc
+++ b/chrome/test/base/in_process_browser_test.cc
@@ -159,6 +159,14 @@ void InProcessBrowserTest::SetUp() {
command_line->AppendSwitch(switches::kDisableOfflineAutoReload);
// Allow subclasses to change the command line before running any tests.
+ std::vector<BrowserTestBase::Admixture*> admixtures = GetAdmixtures();
+ for (std::vector<BrowserTestBase::Admixture*>::iterator it =
+ admixtures.begin();
+ it != admixtures.end();
+ ++it) {
+ (*it)->SetUpCommandLine(command_line);
+ }
+
SetUpCommandLine(command_line);
// Add command line arguments that are used by all InProcessBrowserTests.
PrepareTestCommandLine(command_line);
@@ -419,6 +427,13 @@ void InProcessBrowserTest::RunTestOnMainThreadLoop() {
// browser.
content::RunAllPendingInMessageLoop();
+ std::vector<BrowserTestBase::Admixture*> admixtures = GetAdmixtures();
+ for (std::vector<BrowserTestBase::Admixture*>::iterator it =
+ admixtures.begin();
+ it != admixtures.end();
+ ++it) {
+ (*it)->SetUpInProcessBrowserTestFixture();
dzhioev (left Google) 2014/08/18 12:11:46 We should call SetUpOnMainThread here, not SetUpIn
Lisa Ignatyeva 2014/08/18 12:20:41 Done.
+ }
SetUpOnMainThread();
#if defined(OS_MACOSX)
autorelease_pool_->Recycle();
« no previous file with comments | « no previous file | content/public/test/browser_test_base.h » ('j') | content/public/test/browser_test_base.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698