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

Commit 6fe9861

Browse files
authored
[fuchsia] Migrate to new RealmBuilder API (#39196)
See https://fxrev.dev/793422. Missed in d85ec02 and ade610e.
1 parent 297ffbc commit 6fe9861

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

shell/platform/fuchsia/dart_runner/tests/startup_integration_test/dart_aot_runner/dart-aot-runner-integration-test.cc

+2-2
Original file line numberDiff line numberDiff line change
@@ -99,9 +99,9 @@ TEST_F(RealmBuilderTest, DartRunnerStartsUp) {
9999

100100
// Build the Realm with the provided child and protocols
101101
auto realm = realm_builder.Build(dispatcher());
102-
FML_LOG(INFO) << "Realm built: " << realm.GetChildName();
102+
FML_LOG(INFO) << "Realm built: " << realm.component().GetChildName();
103103
// Connect to the Dart echo server
104-
auto echo = realm.ConnectSync<flutter::example::echo::Echo>();
104+
auto echo = realm.component().ConnectSync<flutter::example::echo::Echo>();
105105
fidl::StringPtr response;
106106
// Attempt to ping the Dart echo server for a response
107107
echo->EchoString("hello", &response);

shell/platform/fuchsia/dart_runner/tests/startup_integration_test/dart_jit_runner/dart-jit-runner-integration-test.cc

+2-2
Original file line numberDiff line numberDiff line change
@@ -97,9 +97,9 @@ TEST_F(RealmBuilderTest, DartRunnerStartsUp) {
9797

9898
// Build the Realm with the provided child and protocols
9999
auto realm = realm_builder.Build(dispatcher());
100-
FML_LOG(INFO) << "Realm built: " << realm.GetChildName();
100+
FML_LOG(INFO) << "Realm built: " << realm.component().GetChildName();
101101
// Connect to the Dart echo server
102-
auto echo = realm.ConnectSync<flutter::example::echo::Echo>();
102+
auto echo = realm.component().ConnectSync<flutter::example::echo::Echo>();
103103
fidl::StringPtr response;
104104
// Attempt to ping the Dart echo server for a response
105105
echo->EchoString("hello", &response);

shell/platform/fuchsia/flutter/tests/integration/mouse-input/mouse-input-test.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ class MouseInputTest : public PortableUITest,
171171

172172
// Get the display dimensions.
173173
FML_LOG(INFO) << "Waiting for scenic display info";
174-
scenic_ = realm_root()->Connect<fuchsia::ui::scenic::Scenic>();
174+
scenic_ = realm_root()->component().Connect<fuchsia::ui::scenic::Scenic>();
175175
scenic_->GetDisplayInfo([this](fuchsia::ui::gfx::DisplayInfo display_info) {
176176
display_width_ = display_info.width_in_px;
177177
display_height_ = display_info.height_in_px;

shell/platform/fuchsia/flutter/tests/integration/text-input/text-input-test.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ class TextInputTest : public PortableUITest,
145145

146146
// Get the display dimensions.
147147
FML_LOG(INFO) << "Waiting for scenic display info";
148-
scenic_ = realm_root()->template Connect<fuchsia::ui::scenic::Scenic>();
148+
scenic_ = realm_root()->component().Connect<fuchsia::ui::scenic::Scenic>();
149149
scenic_->GetDisplayInfo([this](fuchsia::ui::gfx::DisplayInfo display_info) {
150150
display_width_ = display_info.width_in_px;
151151
display_height_ = display_info.height_in_px;

0 commit comments

Comments
 (0)