@@ -641,7 +641,7 @@ TEST_F(FlutterWindowsEngineTest, AlertPlatformMessage) {
641641 ui::AXPlatformNodeDelegateBase parent_delegate;
642642 AlertPlatformNodeDelegate delegate (parent_delegate);
643643 EXPECT_CALL (*window_binding_handler, GetAlertDelegate)
644- .WillOnce (Return (&delegate));
644+ .WillRepeatedly (Return (&delegate));
645645 MockFlutterWindowsView view (std::move (window_binding_handler));
646646 view.SetEngine (engine.get ());
647647
@@ -717,7 +717,7 @@ TEST_F(FlutterWindowsEngineTest, TestExit) {
717717 std::optional<WPARAM> wparam,
718718 std::optional<LPARAM> lparam,
719719 UINT exit_code) { finished = exit_code == 0 ; });
720- EXPECT_CALL (*handler, IsLastWindowOfProcess).WillOnce (Return (true ));
720+ EXPECT_CALL (*handler, IsLastWindowOfProcess).WillRepeatedly (Return (true ));
721721 modifier.SetLifecycleManager (std::move (handler));
722722
723723 engine->lifecycle_manager ()->BeginProcessingExit ();
@@ -749,7 +749,7 @@ TEST_F(FlutterWindowsEngineTest, TestExitCancel) {
749749 modifier.embedder_api ().RunsAOTCompiledDartCode = []() { return false ; };
750750 auto handler = std::make_unique<MockWindowsLifecycleManager>(engine.get ());
751751 EXPECT_CALL (*handler, SetLifecycleState (AppLifecycleState::kResumed ));
752- EXPECT_CALL (*handler, IsLastWindowOfProcess).WillOnce (Return (true ));
752+ EXPECT_CALL (*handler, IsLastWindowOfProcess).WillRepeatedly (Return (true ));
753753 EXPECT_CALL (*handler, Quit).Times (0 );
754754 modifier.SetLifecycleManager (std::move (handler));
755755 engine->lifecycle_manager ()->BeginProcessingExit ();
0 commit comments