1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef CHROME_TEST_BASE_CHROME_TEST_LAUNCHER_H_
6 #define CHROME_TEST_BASE_CHROME_TEST_LAUNCHER_H_
8 #include "base/memory/scoped_ptr.h"
10 class ChromeTestSuite
;
12 // Allows a test suite to override the TestSuite class used. By default it is an
13 // instance of ChromeTestSuite.
14 class ChromeTestSuiteRunner
{
16 virtual int RunTestSuite(int argc
, char** argv
) = 0;
19 // Launches Chrome browser tests. |default_jobs| is number of test jobs to be
20 // run in parallel, unless overridden from the command line. Returns exit code.
21 int LaunchChromeTests(int default_jobs
,
22 ChromeTestSuiteRunner
* runner
,
26 #endif // CHROME_TEST_BASE_CHROME_TEST_LAUNCHER_H_