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. 4 5 #ifndef CHROME_TEST_BASE_CHROME_TEST_LAUNCHER_H_ 6 #define CHROME_TEST_BASE_CHROME_TEST_LAUNCHER_H_ 7 8 #include "base/memory/scoped_ptr.h" 9 10 class ChromeTestSuite; 11 12 // Allows a test suite to override the TestSuite class used. By default it is an 13 // instance of ChromeTestSuite. 14 class ChromeTestSuiteRunner { 15 public: 16 virtual int RunTestSuite(int argc, char** argv) = 0; 17 }; 18 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, 23 int argc, 24 char** argv); 25 26 #endif // CHROME_TEST_BASE_CHROME_TEST_LAUNCHER_H_ 27