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

Commit 8cfacdf

Browse files
committed
NO means NO
1 parent 36cf0b2 commit 8cfacdf

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

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

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -700,7 +700,7 @@ - (nonnull NSView*)createWithViewIdentifier:(int64_t)viewId arguments:(nullable
700700
TEST_F(FlutterEngineTest, HandlesTerminationRequest) {
701701
id engineMock = CreateMockFlutterEngine(nil);
702702
__block NSString* nextResponse = @"exit";
703-
__block BOOL triedToTerminate = FALSE;
703+
__block BOOL triedToTerminate = NO;
704704
FlutterEngineTerminationHandler* terminationHandler =
705705
[[FlutterEngineTerminationHandler alloc] initWithEngine:engineMock
706706
terminator:^(id sender) {
@@ -743,7 +743,7 @@ - (nonnull NSView*)createWithViewIdentifier:(int64_t)viewId arguments:(nullable
743743
arguments:@{@"type" : @"cancelable"}];
744744

745745
// Always terminate when the binding isn't ready (which is the default).
746-
triedToTerminate = FALSE;
746+
triedToTerminate = NO;
747747
calledAfterTerminate = @"";
748748
nextResponse = @"cancel";
749749
[engineMock handleMethodCall:methodExitApplication result:appExitResult];
@@ -752,22 +752,22 @@ - (nonnull NSView*)createWithViewIdentifier:(int64_t)viewId arguments:(nullable
752752

753753
// Once the binding is ready, handle the request.
754754
terminationHandler.acceptingRequests = YES;
755-
triedToTerminate = FALSE;
755+
triedToTerminate = NO;
756756
calledAfterTerminate = @"";
757757
nextResponse = @"exit";
758758
[engineMock handleMethodCall:methodExitApplication result:appExitResult];
759759
EXPECT_STREQ([calledAfterTerminate UTF8String], "exit");
760760
EXPECT_TRUE(triedToTerminate);
761761

762-
triedToTerminate = FALSE;
762+
triedToTerminate = NO;
763763
calledAfterTerminate = @"";
764764
nextResponse = @"cancel";
765765
[engineMock handleMethodCall:methodExitApplication result:appExitResult];
766766
EXPECT_STREQ([calledAfterTerminate UTF8String], "cancel");
767767
EXPECT_FALSE(triedToTerminate);
768768

769769
// Check that it doesn't crash on error.
770-
triedToTerminate = FALSE;
770+
triedToTerminate = NO;
771771
calledAfterTerminate = @"";
772772
nextResponse = @"error";
773773
[engineMock handleMethodCall:methodExitApplication result:appExitResult];
@@ -776,7 +776,7 @@ - (nonnull NSView*)createWithViewIdentifier:(int64_t)viewId arguments:(nullable
776776
}
777777

778778
TEST_F(FlutterEngineTest, HandleAccessibilityEvent) {
779-
__block BOOL announced = FALSE;
779+
__block BOOL announced = NO;
780780
id engineMock = CreateMockFlutterEngine(nil);
781781

782782
OCMStub([engineMock announceAccessibilityMessage:[OCMArg any]

0 commit comments

Comments
 (0)