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

Unified Diff: extensions/test/extensions_unittests_main.cc

Issue 227153004: Adds the foundation for extensions test suite. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 8 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 | « extensions/extensions.gyp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/test/extensions_unittests_main.cc
diff --git a/extensions/test/extensions_unittests_main.cc b/extensions/test/extensions_unittests_main.cc
new file mode 100644
index 0000000000000000000000000000000000000000..4c7f8ba438c43c2699446d1ad7537fd09a37106d
--- /dev/null
+++ b/extensions/test/extensions_unittests_main.cc
@@ -0,0 +1,45 @@
+// Copyright 2014 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.
+
+#include "base/bind.h"
+#include "base/macros.h"
+#include "base/test/launcher/unit_test_launcher.h"
+#include "base/test/test_suite.h"
+
+namespace {
+
+class ExtensionsTestSuite : public base::TestSuite {
+ public:
+ ExtensionsTestSuite(int argc, char** argv);
+
+ protected:
+ // base::TestSuite:
+ virtual void Initialize() OVERRIDE;
+ virtual void Shutdown() OVERRIDE;
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(ExtensionsTestSuite);
+};
+
+ExtensionsTestSuite::ExtensionsTestSuite(int argc, char** argv)
+ : base::TestSuite(argc, argv) {}
+
+void ExtensionsTestSuite::Initialize() {
Yoyo Zhou 2014/04/07 23:20:03 It doesn't seem like these are doing anything for
+ base::TestSuite::Initialize();
+}
+
+void ExtensionsTestSuite::Shutdown() {
+ base::TestSuite::Shutdown();
+}
+
+} // namespace
+
+int main(int argc, char** argv) {
+ ExtensionsTestSuite test_suite(argc, argv);
+
+ return base::LaunchUnitTests(argc,
+ argv,
+ base::Bind(&ExtensionsTestSuite::Run,
+ base::Unretained(&test_suite)));
+}
« no previous file with comments | « extensions/extensions.gyp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698