@@ -142,14 +142,16 @@ bool PortableUITest::HasViewConnected(zx_koid_t view_ref_koid) {
142142}
143143
144144void PortableUITest::LaunchClient () {
145- scene_provider_ = realm_->Connect <fuchsia::ui::test::scene::Controller>();
145+ scene_provider_ =
146+ realm_->component ().Connect <fuchsia::ui::test::scene::Controller>();
146147 scene_provider_.set_error_handler ([](auto ) {
147148 FML_LOG (ERROR) << " Error from test scene provider: "
148149 << &zx_status_get_string;
149150 });
150151
151152 fuchsia::ui::test::scene::ControllerAttachClientViewRequest request;
152- request.set_view_provider (realm_->Connect <fuchsia::ui::app::ViewProvider>());
153+ request.set_view_provider (
154+ realm_->component ().Connect <fuchsia::ui::app::ViewProvider>());
153155 scene_provider_->RegisterViewTreeWatcher (view_tree_watcher_.NewRequest (),
154156 []() {});
155157 scene_provider_->AttachClientView (
@@ -214,7 +216,8 @@ void PortableUITest::LaunchClientWithEmbeddedView() {
214216
215217void PortableUITest::RegisterTouchScreen () {
216218 FML_LOG (INFO) << " Registering fake touch screen" ;
217- input_registry_ = realm_->Connect <fuchsia::ui::test::input::Registry>();
219+ input_registry_ =
220+ realm_->component ().Connect <fuchsia::ui::test::input::Registry>();
218221 input_registry_.set_error_handler ([](auto ) {
219222 FML_LOG (ERROR) << " Error from input helper: " << &zx_status_get_string;
220223 });
@@ -232,7 +235,8 @@ void PortableUITest::RegisterTouchScreen() {
232235
233236void PortableUITest::RegisterMouse () {
234237 FML_LOG (INFO) << " Registering fake mouse" ;
235- input_registry_ = realm_->Connect <fuchsia::ui::test::input::Registry>();
238+ input_registry_ =
239+ realm_->component ().Connect <fuchsia::ui::test::input::Registry>();
236240 input_registry_.set_error_handler ([](auto ) {
237241 FML_LOG (ERROR) << " Error from input helper: " << &zx_status_get_string;
238242 });
@@ -249,7 +253,8 @@ void PortableUITest::RegisterMouse() {
249253
250254void PortableUITest::RegisterKeyboard () {
251255 FML_LOG (INFO) << " Registering fake keyboard" ;
252- input_registry_ = realm_->Connect <fuchsia::ui::test::input::Registry>();
256+ input_registry_ =
257+ realm_->component ().Connect <fuchsia::ui::test::input::Registry>();
253258 input_registry_.set_error_handler ([](auto ) {
254259 FML_LOG (ERROR) << " Error from input helper: " << &zx_status_get_string;
255260 });
0 commit comments