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

Unified Diff: services/service_manager/background/tests/test_service.cc

Issue 2646033002: mash: Exit the root process if the window manager service crashes (Closed)
Patch Set: review comments Created 3 years, 11 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 | « services/service_manager/background/tests/test.mojom ('k') | services/service_manager/public/cpp/service.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/service_manager/background/tests/test_service.cc
diff --git a/services/service_manager/background/tests/test_service.cc b/services/service_manager/background/tests/test_service.cc
index 06a5cb514c881ab5cbf0b206e67ab8c8400c76a2..18de6bd105cab568ad34d35c7c39820f7d5186c6 100644
--- a/services/service_manager/background/tests/test_service.cc
+++ b/services/service_manager/background/tests/test_service.cc
@@ -7,10 +7,13 @@
#include "services/service_manager/public/c/main.h"
#include "services/service_manager/public/cpp/interface_registry.h"
#include "services/service_manager/public/cpp/service.h"
+#include "services/service_manager/public/cpp/service_context.h"
#include "services/service_manager/public/cpp/service_runner.h"
namespace service_manager {
+// A service that exports a simple interface for testing. Used to test the
+// parent background service manager.
class TestClient : public Service,
public InterfaceFactory<mojom::TestService>,
public mojom::TestService {
@@ -40,6 +43,8 @@ class TestClient : public Service,
callback.Run();
}
+ void Quit() override { context()->RequestQuit(); }
+
mojo::BindingSet<mojom::TestService> bindings_;
DISALLOW_COPY_AND_ASSIGN(TestClient);
« no previous file with comments | « services/service_manager/background/tests/test.mojom ('k') | services/service_manager/public/cpp/service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698