[fuchsia] Migrate to new RealmBuilder API (flutter/engine#39196)

See https://fxrev.dev/793422.

Missed in 92fca42e06 and
3bfa5c5b1d.
This commit is contained in:
Tamir Duberstein
2023-01-27 13:01:28 -05:00
committed by GitHub
parent 2dac47078e
commit d429b674f1
4 changed files with 6 additions and 6 deletions

View File

@@ -99,9 +99,9 @@ TEST_F(RealmBuilderTest, DartRunnerStartsUp) {
// Build the Realm with the provided child and protocols
auto realm = realm_builder.Build(dispatcher());
FML_LOG(INFO) << "Realm built: " << realm.GetChildName();
FML_LOG(INFO) << "Realm built: " << realm.component().GetChildName();
// Connect to the Dart echo server
auto echo = realm.ConnectSync<flutter::example::echo::Echo>();
auto echo = realm.component().ConnectSync<flutter::example::echo::Echo>();
fidl::StringPtr response;
// Attempt to ping the Dart echo server for a response
echo->EchoString("hello", &response);

View File

@@ -97,9 +97,9 @@ TEST_F(RealmBuilderTest, DartRunnerStartsUp) {
// Build the Realm with the provided child and protocols
auto realm = realm_builder.Build(dispatcher());
FML_LOG(INFO) << "Realm built: " << realm.GetChildName();
FML_LOG(INFO) << "Realm built: " << realm.component().GetChildName();
// Connect to the Dart echo server
auto echo = realm.ConnectSync<flutter::example::echo::Echo>();
auto echo = realm.component().ConnectSync<flutter::example::echo::Echo>();
fidl::StringPtr response;
// Attempt to ping the Dart echo server for a response
echo->EchoString("hello", &response);

View File

@@ -171,7 +171,7 @@ class MouseInputTest : public PortableUITest,
// Get the display dimensions.
FML_LOG(INFO) << "Waiting for scenic display info";
scenic_ = realm_root()->Connect<fuchsia::ui::scenic::Scenic>();
scenic_ = realm_root()->component().Connect<fuchsia::ui::scenic::Scenic>();
scenic_->GetDisplayInfo([this](fuchsia::ui::gfx::DisplayInfo display_info) {
display_width_ = display_info.width_in_px;
display_height_ = display_info.height_in_px;

View File

@@ -145,7 +145,7 @@ class TextInputTest : public PortableUITest,
// Get the display dimensions.
FML_LOG(INFO) << "Waiting for scenic display info";
scenic_ = realm_root()->template Connect<fuchsia::ui::scenic::Scenic>();
scenic_ = realm_root()->component().Connect<fuchsia::ui::scenic::Scenic>();
scenic_->GetDisplayInfo([this](fuchsia::ui::gfx::DisplayInfo display_info) {
display_width_ = display_info.width_in_px;
display_height_ = display_info.height_in_px;