summaryrefslogtreecommitdiffstats
path: root/content/test/test_launcher.h
diff options
context:
space:
mode:
authorphajdan.jr@chromium.org <phajdan.jr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-09-30 20:55:09 +0000
committerphajdan.jr@chromium.org <phajdan.jr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-09-30 20:55:09 +0000
commitbb36d82adbfa20d4fa5998c7c28c934b68432437 (patch)
treed3de0afac1d11e0fd22b660e5d058ad9b088795a /content/test/test_launcher.h
parent14ba5c87d532793a59e6c79dd647850ac26ccc5c (diff)
downloadchromium_src-bb36d82adbfa20d4fa5998c7c28c934b68432437.zip
chromium_src-bb36d82adbfa20d4fa5998c7c28c934b68432437.tar.gz
chromium_src-bb36d82adbfa20d4fa5998c7c28c934b68432437.tar.bz2
Add (not yet working) content_browsertests target.
This implements ContentBrowserTest and a transparent switch between content and chrome browser tests. BUG=90448 Review URL: http://codereview.chromium.org/8036044 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@103540 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/test/test_launcher.h')
-rw-r--r--content/test/test_launcher.h44
1 files changed, 44 insertions, 0 deletions
diff --git a/content/test/test_launcher.h b/content/test/test_launcher.h
new file mode 100644
index 0000000..f695116
--- /dev/null
+++ b/content/test/test_launcher.h
@@ -0,0 +1,44 @@
+// Copyright (c) 2011 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 CONTENT_TEST_TEST_LAUNCHER_H_
+#define CONTENT_TEST_TEST_LAUNCHER_H_
+#pragma once
+
+#include "base/basictypes.h"
+#include "base/compiler_specific.h"
+
+class CommandLine;
+
+namespace test_launcher {
+
+extern const char kGTestFilterFlag[];
+extern const char kGTestHelpFlag[];
+extern const char kGTestListTestsFlag[];
+extern const char kGTestRepeatFlag[];
+extern const char kGTestRunDisabledTestsFlag[];
+extern const char kGTestOutputFlag[];
+
+extern const char kSingleProcessTestsFlag[];
+extern const char kSingleProcessTestsAndChromeFlag[];
+
+extern const char kHelpFlag[];
+
+class TestLauncherDelegate {
+ public:
+ virtual void EarlyInitialize() = 0;
+ virtual bool Run(int argc, char** argv, int* return_code) = 0;
+ virtual bool AdjustChildProcessCommandLine(CommandLine* command_line) = 0;
+
+ protected:
+ virtual ~TestLauncherDelegate();
+};
+
+int LaunchTests(TestLauncherDelegate* launcher_delegate,
+ int argc,
+ char** argv) WARN_UNUSED_RESULT;
+
+} // namespace test_launcher
+
+#endif // CONTENT_TEST_TEST_LAUNCHER_H_ \ No newline at end of file