Index: mojo/shell/background/tests/test_service.cc |
diff --git a/mojo/shell/background/tests/test_service.cc b/mojo/shell/background/tests/test_service.cc |
index 8b68c59aebcf00ded32de33e2f01291536e9aace..d030a814340064955baf1723ebfd40f547807fb2 100644 |
--- a/mojo/shell/background/tests/test_service.cc |
+++ b/mojo/shell/background/tests/test_service.cc |
@@ -25,6 +25,9 @@ class TestClient : public ShellClient, |
connection->AddInterface(this); |
return true; |
} |
+ void ShellConnectionLost() override { |
+ base::MessageLoop::current()->QuitWhenIdle(); |
+ } |
// InterfaceFactory<mojom::TestService>: |
void Create(Connection* connection, |
@@ -33,7 +36,9 @@ class TestClient : public ShellClient, |
} |
// mojom::TestService |
- void Test(const TestCallback& callback) override { callback.Run(); } |
+ void Test(const TestCallback& callback) override { |
+ callback.Run(); |
+ } |
BindingSet<mojom::TestService> bindings_; |