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

Unified Diff: chrome/test/test_launcher/test_runner.h

Issue 197045: Implement a way to run each interactive UI test isolated (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 3 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 | « chrome/test/test_launcher/run_all_unittests.cc ('k') | chrome/test/test_launcher/test_runner.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/test_launcher/test_runner.h
===================================================================
--- chrome/test/test_launcher/test_runner.h (revision 0)
+++ chrome/test/test_launcher/test_runner.h (working copy)
@@ -2,34 +2,35 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef CHROME_TEST_BROWSER_BROWSER_TEST_RUNNER_
-#define CHROME_TEST_BROWSER_BROWSER_TEST_RUNNER_
+#ifndef CHROME_TEST_TEST_LAUNCHER_TEST_RUNNER_
+#define CHROME_TEST_TEST_LAUNCHER_TEST_RUNNER_
#include <string>
#include <vector>
#include "base/basictypes.h"
-namespace browser_tests {
+namespace tests {
-class BrowserTestRunnerFactory;
+class TestRunnerFactory;
// Runs the tests specified by the --gtest_filter flag specified in the command
// line that started this process.
// Returns true if all tests succeeded, false if there were no tests to run, or
// one or more tests failed, or if initialization failed.
// Results are printed to stdout.
-bool RunTests(const BrowserTestRunnerFactory& browser_test_runner_factory);
+bool RunTests(const TestRunnerFactory& test_runner_factory);
-// This class defines a way to run browser tests.
+// This class defines a way to run tests in an isolated environment (each test
+// having its static variables uninitialized).
// There are 2 implementations, in-process and out-of-process.
-class BrowserTestRunner {
+class TestRunner {
public:
- BrowserTestRunner();
- virtual ~BrowserTestRunner();
+ TestRunner();
+ virtual ~TestRunner();
- // Called once before the BrowserTestRunner is used. Gives it an opportunity
- // to perform any requried initialization. Should return true if the
+ // Called once before the TestRunner is used. Gives it an opportunity to
+ // perform any requried initialization. Should return true if the
// initialization was successful.
virtual bool Init() = 0;
@@ -38,14 +39,14 @@
virtual bool RunTest(const std::string& test_name) = 0;
private:
- DISALLOW_COPY_AND_ASSIGN(BrowserTestRunner);
+ DISALLOW_COPY_AND_ASSIGN(TestRunner);
};
-class BrowserTestRunnerFactory {
+class TestRunnerFactory {
public:
- virtual BrowserTestRunner* CreateBrowserTestRunner() const = 0;
+ virtual TestRunner* CreateTestRunner() const = 0;
};
} // namespace
-#endif // CHROME_TEST_BROWSER_BROWSER_TEST_RUNNER_
+#endif // CHROME_TEST_TEST_LAUNCHER_TEST_RUNNER_
« no previous file with comments | « chrome/test/test_launcher/run_all_unittests.cc ('k') | chrome/test/test_launcher/test_runner.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698