diff --git a/shell/platform/fuchsia/flutter/tests/integration/embedder/flutter-embedder-test.cc b/shell/platform/fuchsia/flutter/tests/integration/embedder/flutter-embedder-test.cc index 6c507103a039b..6dd7982235b83 100644 --- a/shell/platform/fuchsia/flutter/tests/integration/embedder/flutter-embedder-test.cc +++ b/shell/platform/fuchsia/flutter/tests/integration/embedder/flutter-embedder-test.cc @@ -237,6 +237,11 @@ void FlutterEmbedderTest::SetUpRealmBase() { Protocol{fuchsia::logger::LogSink::Name_}, Protocol{fuchsia::inspect::InspectSink::Name_}, Protocol{fuchsia::sysmem::Allocator::Name_}, + + // Replace "fuchsia.sysmem2.Allocator" with + // fuchsia::sysmem2::Allocator::Name_ + // when available (fuchsia SDK >= 19). + Protocol{"fuchsia.sysmem2.Allocator"}, Protocol{fuchsia::tracing::provider::Registry::Name_}, Protocol{kVulkanLoaderServiceName}, }, @@ -249,6 +254,11 @@ void FlutterEmbedderTest::SetUpRealmBase() { .capabilities = {Protocol{fuchsia::logger::LogSink::Name_}, Protocol{fuchsia::inspect::InspectSink::Name_}, Protocol{fuchsia::sysmem::Allocator::Name_}, + + // Replace "fuchsia.sysmem2.Allocator" with + // fuchsia::sysmem2::Allocator::Name_ + // when available (fuchsia SDK >= 19). + Protocol{"fuchsia.sysmem2.Allocator"}, Protocol{fuchsia::tracing::provider::Registry::Name_}, Protocol{kVulkanLoaderServiceName}}, .source = ParentRef{},