Index: services/test/services_unittest_main.cc |
diff --git a/services/test/services_unittest_main.cc b/services/test/services_unittest_main.cc |
new file mode 100644 |
index 0000000000000000000000000000000000000000..137c417f13481470637db9320a0ebea5ce401994 |
--- /dev/null |
+++ b/services/test/services_unittest_main.cc |
@@ -0,0 +1,28 @@ |
+// Copyright 2015 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/test/launcher/unit_test_launcher.h" |
+#include "content/public/test/content_test_suite_base.h" |
+#include "content/public/test/unittest_test_suite.h" |
+#include "third_party/mojo/src/mojo/edk/embedder/test_embedder.h" |
+ |
+namespace { |
+ |
+class ServicesTestSuite : public content::ContentTestSuiteBase { |
+ public: |
+ ServicesTestSuite(int argc, char** argv) |
+ : content::ContentTestSuiteBase(argc, argv) {} |
+}; |
+ |
+} // namespace |
+ |
+int main(int argc, char** argv) { |
+ content::UnitTestTestSuite test_suite(new ServicesTestSuite(argc, argv)); |
+ |
+ mojo::embedder::test::InitWithSimplePlatformSupport(); |
+ return base::LaunchUnitTests(argc, argv, |
+ base::Bind(&content::UnitTestTestSuite::Run, |
+ base::Unretained(&test_suite))); |
+} |