summaryrefslogtreecommitdiffstats
path: root/content/public/test/test_launcher.h
diff options
context:
space:
mode:
authorjam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-06-04 06:08:09 +0000
committerjam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-06-04 06:08:09 +0000
commit7d855a1eaf67b1de236bdf251773211bada6301b (patch)
tree04d581f0aeb9481ef5b3ae829d2f156a27299c5a /content/public/test/test_launcher.h
parente7cfd32e14c02fdf1436545c39b68ecc08c35611 (diff)
downloadchromium_src-7d855a1eaf67b1de236bdf251773211bada6301b.zip
chromium_src-7d855a1eaf67b1de236bdf251773211bada6301b.tar.gz
chromium_src-7d855a1eaf67b1de236bdf251773211bada6301b.tar.bz2
Move test headers from content\test to content\public\test. This way we can enforce that internal content headers don't leak to embedders.
BUG=98716 TBR=phajdan.jr Review URL: https://chromiumcodereview.appspot.com/10502009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@140261 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/public/test/test_launcher.h')
-rw-r--r--content/public/test/test_launcher.h44
1 files changed, 44 insertions, 0 deletions
diff --git a/content/public/test/test_launcher.h b/content/public/test/test_launcher.h
new file mode 100644
index 0000000..4e72b70
--- /dev/null
+++ b/content/public/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_PUBLIC_TEST_TEST_LAUNCHER_H_
+#define CONTENT_PUBLIC_TEST_TEST_LAUNCHER_H_
+#pragma once
+
+#include "base/basictypes.h"
+#include "base/compiler_specific.h"
+
+class CommandLine;
+
+namespace test_launcher {
+
+extern const char kEmptyTestName[];
+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 int RunTestSuite(int argc, char** argv) = 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_PUBLIC_TEST_TEST_LAUNCHER_H_