[fuchsia] Migrate to new RealmBuilder API (flutter/engine#39196)
See https://fxrev.dev/793422. Missed in92fca42e06and3bfa5c5b1d.
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user