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

Unified Diff: services/service_manager/runner/host/host_test_service_main.cc

Issue 2557213002: Build services as standalone executables (Closed)
Patch Set: remove DCHECKs with side effects -_- Created 4 years 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/service_manager/runner/host/host_test_service_main.cc
diff --git a/services/service_manager/runner/host/host_test_service_main.cc b/services/service_manager/runner/host/host_test_service_main.cc
new file mode 100644
index 0000000000000000000000000000000000000000..2ce8492f3f43f3ceab6a4b63a3ea771b7520478c
--- /dev/null
+++ b/services/service_manager/runner/host/host_test_service_main.cc
@@ -0,0 +1,12 @@
+// Copyright 2016 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 "mojo/public/cpp/system/message_pipe.h"
+#include "services/service_manager/public/c/main.h"
+
+MojoResult ServiceMain(MojoHandle service_request_handle) {
+ mojo::ScopedMessagePipeHandle service_request_pipe;
+ service_request_pipe.reset(mojo::MessagePipeHandle(service_request_handle));
+ return MOJO_RESULT_OK;
+}

Powered by Google App Engine
This is Rietveld 408576698