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

Unified Diff: services/test/services_unittest_main.cc

Issue 1028543002: Turn the utility process image decoder into a Mojo service. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Clean up and add test. Created 5 years, 9 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: 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)));
+}

Powered by Google App Engine
This is Rietveld 408576698