@@ -641,7 +641,7 @@ TEST_F(FlutterWindowsEngineTest, AlertPlatformMessage) {
641
641
ui::AXPlatformNodeDelegateBase parent_delegate;
642
642
AlertPlatformNodeDelegate delegate (parent_delegate);
643
643
EXPECT_CALL (*window_binding_handler, GetAlertDelegate)
644
- .WillOnce (Return (&delegate));
644
+ .WillRepeatedly (Return (&delegate));
645
645
MockFlutterWindowsView view (std::move (window_binding_handler));
646
646
view.SetEngine (engine.get ());
647
647
@@ -717,7 +717,7 @@ TEST_F(FlutterWindowsEngineTest, TestExit) {
717
717
std::optional<WPARAM> wparam,
718
718
std::optional<LPARAM> lparam,
719
719
UINT exit_code) { finished = exit_code == 0 ; });
720
- EXPECT_CALL (*handler, IsLastWindowOfProcess).WillOnce (Return (true ));
720
+ EXPECT_CALL (*handler, IsLastWindowOfProcess).WillRepeatedly (Return (true ));
721
721
modifier.SetLifecycleManager (std::move (handler));
722
722
723
723
engine->lifecycle_manager ()->BeginProcessingExit ();
@@ -749,7 +749,7 @@ TEST_F(FlutterWindowsEngineTest, TestExitCancel) {
749
749
modifier.embedder_api ().RunsAOTCompiledDartCode = []() { return false ; };
750
750
auto handler = std::make_unique<MockWindowsLifecycleManager>(engine.get ());
751
751
EXPECT_CALL (*handler, SetLifecycleState (AppLifecycleState::kResumed ));
752
- EXPECT_CALL (*handler, IsLastWindowOfProcess).WillOnce (Return (true ));
752
+ EXPECT_CALL (*handler, IsLastWindowOfProcess).WillRepeatedly (Return (true ));
753
753
EXPECT_CALL (*handler, Quit).Times (0 );
754
754
modifier.SetLifecycleManager (std::move (handler));
755
755
engine->lifecycle_manager ()->BeginProcessingExit ();
0 commit comments