From 4a47a9f60dc8878442656ba016ccea2ce66a872a Mon Sep 17 00:00:00 2001 From: gaaclarke <30870216+gaaclarke@users.noreply.github.com> Date: Wed, 29 Sep 2021 14:19:44 -0700 Subject: [PATCH] fixed android unit tests (rotted before CI is running) (flutter/engine#28938) --- .../platform/android/android_shell_holder_unittests.cc | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/engine/src/flutter/shell/platform/android/android_shell_holder_unittests.cc b/engine/src/flutter/shell/platform/android/android_shell_holder_unittests.cc index eca2eed8bc..2d3bc3ef31 100644 --- a/engine/src/flutter/shell/platform/android/android_shell_holder_unittests.cc +++ b/engine/src/flutter/shell/platform/android/android_shell_holder_unittests.cc @@ -57,13 +57,12 @@ TEST(AndroidShellHolder, Create) { Settings settings; settings.enable_software_rendering = false; auto jni = std::make_shared(); - auto holder = std::make_unique( - settings, jni, /*is_background_view=*/false); + auto holder = std::make_unique(settings, jni); EXPECT_NE(holder.get(), nullptr); EXPECT_TRUE(holder->IsValid()); EXPECT_NE(holder->GetPlatformView().get(), nullptr); - auto window = - fml::MakeRefCounted(nullptr, /*is_offscreen=*/true); + auto window = fml::MakeRefCounted( + nullptr, /*is_fake_window=*/true); holder->GetPlatformView()->NotifyCreated(window); } } // namespace testing