Index: base/test/test_suite.h |
diff --git a/base/test/test_suite.h b/base/test/test_suite.h |
index 50cde8489bef85eb06638ba5ac9645efde8d33d8..8dd50263159175c2369f05b5075c39a2c6f92e38 100644 |
--- a/base/test/test_suite.h |
+++ b/base/test/test_suite.h |
@@ -35,6 +35,16 @@ class TestSuite { |
void CatchMaybeTests(); |
+ // Disables tests that match the |filter|. This gives the test suite an |
+ // opportunity to disable tests at runtime. Must be called before Run() |
+ // to take effect. |
+ // |
+ // For example, to disable "FooTest" when IsFooSupported() is false: |
+ // if (!IsFooSupported()) |
+ // DisableTests("FooTest.*"); |
+ // Run(); |
+ void DisableTests(const std::string& filter); |
+ |
void ResetCommandLine(); |
void AddTestLauncherResultPrinter(); |