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

Unified Diff: base/test/test_launcher.h

Issue 16820008: GTTF: Move core parts of test_launcher down to base. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 6 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
Index: base/test/test_launcher.h
diff --git a/base/test/test_launcher.h b/base/test/test_launcher.h
new file mode 100644
index 0000000000000000000000000000000000000000..c03c63e4977a8df60c785a25e466a6da5fb84c5d
--- /dev/null
+++ b/base/test/test_launcher.h
@@ -0,0 +1,41 @@
+// Copyright 2013 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef BASE_TEST_TEST_LAUNCHER_H_
+#define BASE_TEST_TEST_LAUNCHER_H_
+
+#include "base/basictypes.h"
+#include "base/compiler_specific.h"
+
+namespace testing {
+class TestCase;
+class TestInfo;
+}
+
+namespace base {
+
+extern const char kGTestFilterFlag[];
+extern const char kGTestListTestsFlag[];
+extern const char kGTestRepeatFlag[];
+extern const char kGTestRunDisabledTestsFlag[];
+extern const char kGTestOutputFlag[];
+
+class TestLauncherDelegate {
jam 2013/06/13 20:43:31 need to document this class, the methods, and the
Paweł Hajdan Jr. 2013/06/13 22:13:06 Done. I was not sure if you'd accept the approach.
+ public:
+ virtual bool ShouldRunTest(const testing::TestCase* test_case,
+ const testing::TestInfo* test_info) = 0;
+ virtual bool RunTest(const testing::TestCase* test_case,
+ const testing::TestInfo* test_info) = 0;
+
+ protected:
+ virtual ~TestLauncherDelegate();
+};
+
+int LaunchTests(TestLauncherDelegate* launcher_delegate,
+ int argc,
+ char** argv) WARN_UNUSED_RESULT;
+
+} // namespace base
+
+#endif // BASE_TEST_TEST_LAUNCHER_H_
« no previous file with comments | « base/base.gyp ('k') | base/test/test_launcher.cc » ('j') | content/public/test/test_launcher.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698