@@ -142,14 +142,16 @@ bool PortableUITest::HasViewConnected(zx_koid_t view_ref_koid) {
142
142
}
143
143
144
144
void PortableUITest::LaunchClient () {
145
- scene_provider_ = realm_->Connect <fuchsia::ui::test::scene::Controller>();
145
+ scene_provider_ =
146
+ realm_->component ().Connect <fuchsia::ui::test::scene::Controller>();
146
147
scene_provider_.set_error_handler ([](auto ) {
147
148
FML_LOG (ERROR) << " Error from test scene provider: "
148
149
<< &zx_status_get_string;
149
150
});
150
151
151
152
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>());
153
155
scene_provider_->RegisterViewTreeWatcher (view_tree_watcher_.NewRequest (),
154
156
[]() {});
155
157
scene_provider_->AttachClientView (
@@ -214,7 +216,8 @@ void PortableUITest::LaunchClientWithEmbeddedView() {
214
216
215
217
void PortableUITest::RegisterTouchScreen () {
216
218
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>();
218
221
input_registry_.set_error_handler ([](auto ) {
219
222
FML_LOG (ERROR) << " Error from input helper: " << &zx_status_get_string;
220
223
});
@@ -232,7 +235,8 @@ void PortableUITest::RegisterTouchScreen() {
232
235
233
236
void PortableUITest::RegisterMouse () {
234
237
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>();
236
240
input_registry_.set_error_handler ([](auto ) {
237
241
FML_LOG (ERROR) << " Error from input helper: " << &zx_status_get_string;
238
242
});
@@ -249,7 +253,8 @@ void PortableUITest::RegisterMouse() {
249
253
250
254
void PortableUITest::RegisterKeyboard () {
251
255
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>();
253
258
input_registry_.set_error_handler ([](auto ) {
254
259
FML_LOG (ERROR) << " Error from input helper: " << &zx_status_get_string;
255
260
});
0 commit comments