Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit ade610e

Browse files
authored
[fuchsia] Migrate to new RealmBuilder API (#39175)
See https://fxrev.dev/793422. Missed in d85ec02.
1 parent 79c958f commit ade610e

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

shell/platform/fuchsia/flutter/tests/integration/utils/portable_ui_test.cc

+10-5
Original file line numberDiff line numberDiff line change
@@ -142,14 +142,16 @@ bool PortableUITest::HasViewConnected(zx_koid_t view_ref_koid) {
142142
}
143143

144144
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>();
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

215217
void 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

233236
void 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

250254
void 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

Comments
 (0)