Index: mojo/shell/public/cpp/lib/application_test_base.cc |
diff --git a/mojo/shell/public/cpp/lib/application_test_base.cc b/mojo/shell/public/cpp/lib/application_test_base.cc |
index c03f7f72566ae497848b8f9ebfc90a1af09e856a..a52a193563be99f71bd2f0e764b8a55affd05ec3 100644 |
--- a/mojo/shell/public/cpp/lib/application_test_base.cc |
+++ b/mojo/shell/public/cpp/lib/application_test_base.cc |
@@ -36,7 +36,9 @@ shell::mojom::ConnectorPtr g_connector; |
class ShellGrabber : public shell::mojom::ShellClient { |
public: |
explicit ShellGrabber(InterfaceRequest<shell::mojom::ShellClient> request) |
- : binding_(this, std::move(request)) {} |
+ : binding_(this, std::move(request)) { |
+ binding_.set_connection_error_handler([] { _exit(1); }); |
+ } |
void WaitForInitialize() { |
// Initialize is always the first call made on ShellClient. |