summaryrefslogtreecommitdiffstats
path: root/chromium/base/fuchsia/scoped_service_binding_unittest.cc
diff options
context:
space:
mode:
authorAllan Sandfeld Jensen <allan.jensen@qt.io>2020-01-23 17:21:03 +0100
committerAllan Sandfeld Jensen <allan.jensen@qt.io>2020-01-23 16:25:15 +0000
commitc551f43206405019121bd2b2c93714319a0a3300 (patch)
tree1f48c30631c421fd4bbb3c36da20183c8a2ed7d7 /chromium/base/fuchsia/scoped_service_binding_unittest.cc
parent7961cea6d1041e3e454dae6a1da660b453efd238 (diff)
BASELINE: Update Chromium to 79.0.3945.139
Change-Id: I336b7182fab9bca80b709682489c07db112eaca5 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
Diffstat (limited to 'chromium/base/fuchsia/scoped_service_binding_unittest.cc')
-rw-r--r--chromium/base/fuchsia/scoped_service_binding_unittest.cc16
1 files changed, 16 insertions, 0 deletions
diff --git a/chromium/base/fuchsia/scoped_service_binding_unittest.cc b/chromium/base/fuchsia/scoped_service_binding_unittest.cc
index ddbea039e2a..4368055cad4 100644
--- a/chromium/base/fuchsia/scoped_service_binding_unittest.cc
+++ b/chromium/base/fuchsia/scoped_service_binding_unittest.cc
@@ -106,5 +106,21 @@ TEST_F(ScopedServiceBindingTest, ConnectDebugService) {
VerifyTestInterface(&release_stub, ZX_ERR_PEER_CLOSED);
}
+TEST_F(ScopedServiceBindingTest, SingleBindingSetOnLastClientCallback) {
+ service_binding_.reset();
+ ScopedSingleClientServiceBinding<testfidl::TestInterface>
+ single_service_binding(outgoing_directory_.get(), &test_service_);
+
+ base::RunLoop run_loop;
+ single_service_binding.SetOnLastClientCallback(run_loop.QuitClosure());
+
+ auto current_client =
+ public_service_directory_->Connect<testfidl::TestInterface>();
+ VerifyTestInterface(&current_client, ZX_OK);
+ current_client.Unbind();
+
+ run_loop.Run();
+}
+
} // namespace fuchsia
} // namespace base