Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit ecaa2d6

Browse files
committed
Fix test
1 parent 0f46862 commit ecaa2d6

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

shell/platform/darwin/macos/framework/Source/FlutterAppDelegate_Internal.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
* Holds a weak reference to the termination handler owned by the engine.
1616
* Called by the |FlutterApplication| when termination is requested by the OS.
1717
*/
18-
@property(readwrite, weak) FlutterEngineTerminationHandler* terminationHandler;
18+
@property(readwrite, nullable, weak) FlutterEngineTerminationHandler* terminationHandler;
1919

2020
@end
2121

shell/platform/darwin/macos/framework/Source/FlutterEngineTest.mm

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
#import "flutter/shell/platform/darwin/macos/framework/Headers/FlutterEngine.h"
88
#import "flutter/shell/platform/darwin/macos/framework/Source/FlutterEngine_Internal.h"
99
#include "gtest/gtest.h"
10+
#include "shell/platform/darwin/macos/framework/Headers/FlutterApplication.h"
1011

1112
#include <functional>
1213
#include <thread>
@@ -734,10 +735,9 @@ - (nonnull NSView*)createWithViewIdentifier:(int64_t)viewId arguments:(nullable
734735
[FlutterMethodCall methodCallWithMethodName:@"System.exitApplication"
735736
arguments:@{@"type" : @"cancelable"}];
736737

737-
[engineMock handleMethodCall:methodExitApplication result:appExitResult];
738-
739738
triedToTerminate = FALSE;
740739
nextResponse = @"exit";
740+
[engineMock handleMethodCall:methodExitApplication result:appExitResult];
741741
EXPECT_STREQ([calledAfterTerminate UTF8String], "exit");
742742
EXPECT_TRUE(triedToTerminate);
743743

0 commit comments

Comments
 (0)