From 917809f2063256629186297b9f6416e59ee53c89 Mon Sep 17 00:00:00 2001 From: Greg Spencer Date: Thu, 4 May 2023 16:50:19 -0700 Subject: [PATCH] NO means NO --- .../macos/framework/Source/FlutterEngineTest.mm | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/shell/platform/darwin/macos/framework/Source/FlutterEngineTest.mm b/shell/platform/darwin/macos/framework/Source/FlutterEngineTest.mm index 63bd6a055875a..1bc60e4c533b4 100644 --- a/shell/platform/darwin/macos/framework/Source/FlutterEngineTest.mm +++ b/shell/platform/darwin/macos/framework/Source/FlutterEngineTest.mm @@ -702,7 +702,7 @@ - (nonnull NSView*)createWithViewIdentifier:(int64_t)viewId arguments:(nullable TEST_F(FlutterEngineTest, HandlesTerminationRequest) { id engineMock = CreateMockFlutterEngine(nil); __block NSString* nextResponse = @"exit"; - __block BOOL triedToTerminate = FALSE; + __block BOOL triedToTerminate = NO; FlutterEngineTerminationHandler* terminationHandler = [[FlutterEngineTerminationHandler alloc] initWithEngine:engineMock terminator:^(id sender) { @@ -745,7 +745,7 @@ - (nonnull NSView*)createWithViewIdentifier:(int64_t)viewId arguments:(nullable arguments:@{@"type" : @"cancelable"}]; // Always terminate when the binding isn't ready (which is the default). - triedToTerminate = FALSE; + triedToTerminate = NO; calledAfterTerminate = @""; nextResponse = @"cancel"; [engineMock handleMethodCall:methodExitApplication result:appExitResult]; @@ -754,14 +754,14 @@ - (nonnull NSView*)createWithViewIdentifier:(int64_t)viewId arguments:(nullable // Once the binding is ready, handle the request. terminationHandler.acceptingRequests = YES; - triedToTerminate = FALSE; + triedToTerminate = NO; calledAfterTerminate = @""; nextResponse = @"exit"; [engineMock handleMethodCall:methodExitApplication result:appExitResult]; EXPECT_STREQ([calledAfterTerminate UTF8String], "exit"); EXPECT_TRUE(triedToTerminate); - triedToTerminate = FALSE; + triedToTerminate = NO; calledAfterTerminate = @""; nextResponse = @"cancel"; [engineMock handleMethodCall:methodExitApplication result:appExitResult]; @@ -769,7 +769,7 @@ - (nonnull NSView*)createWithViewIdentifier:(int64_t)viewId arguments:(nullable EXPECT_FALSE(triedToTerminate); // Check that it doesn't crash on error. - triedToTerminate = FALSE; + triedToTerminate = NO; calledAfterTerminate = @""; nextResponse = @"error"; [engineMock handleMethodCall:methodExitApplication result:appExitResult]; @@ -778,7 +778,7 @@ - (nonnull NSView*)createWithViewIdentifier:(int64_t)viewId arguments:(nullable } TEST_F(FlutterEngineTest, HandleAccessibilityEvent) { - __block BOOL announced = FALSE; + __block BOOL announced = NO; id engineMock = CreateMockFlutterEngine(nil); OCMStub([engineMock announceAccessibilityMessage:[OCMArg any]