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

Commit b79335b

Browse files
committed
blockNoInvoker
1 parent c16c115 commit b79335b

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

shell/platform/darwin/ios/framework/Source/FlutterAppDelegateTest.mm

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@ - (void)testLaunchUrl {
2525
FlutterMethodChannel* navigationChannel = OCMClassMock([FlutterMethodChannel class]);
2626
OCMStub([engine navigationChannel]).andReturn(navigationChannel);
2727
OCMStub([viewController engine]).andReturn(engine);
28-
// Set blockArg to a strong local to retain to end of scope.
29-
id blockArg = [OCMArg invokeBlockWithArgs:@NO, nil];
30-
OCMStub([engine waitForFirstFrame:3.0 callback:blockArg]);
28+
// Set blockNoInvoker to a strong local to retain to end of scope.
29+
id blockNoInvoker = [OCMArg invokeBlockWithArgs:@NO, nil];
30+
OCMStub([engine waitForFirstFrame:3.0 callback:blockNoInvoker]);
3131
appDelegate.rootFlutterViewControllerGetter = ^{
3232
return viewController;
3333
};
@@ -50,9 +50,9 @@ - (void)testLaunchUrlWithQueryParameterAndFragment {
5050
FlutterMethodChannel* navigationChannel = OCMClassMock([FlutterMethodChannel class]);
5151
OCMStub([engine navigationChannel]).andReturn(navigationChannel);
5252
OCMStub([viewController engine]).andReturn(engine);
53-
// Set blockArg to a strong local to retain to end of scope.
54-
id blockArg = [OCMArg invokeBlockWithArgs:@NO, nil];
55-
OCMStub([engine waitForFirstFrame:3.0 callback:blockArg]);
53+
// Set blockNoInvoker to a strong local to retain to end of scope.
54+
id blockNoInvoker = [OCMArg invokeBlockWithArgs:@NO, nil];
55+
OCMStub([engine waitForFirstFrame:3.0 callback:blockNoInvoker]);
5656
appDelegate.rootFlutterViewControllerGetter = ^{
5757
return viewController;
5858
};
@@ -76,9 +76,9 @@ - (void)testLaunchUrlWithFragmentNoQueryParameter {
7676
FlutterMethodChannel* navigationChannel = OCMClassMock([FlutterMethodChannel class]);
7777
OCMStub([engine navigationChannel]).andReturn(navigationChannel);
7878
OCMStub([viewController engine]).andReturn(engine);
79-
// Set blockArg to a strong local to retain to end of scope.
80-
id blockArg = [OCMArg invokeBlockWithArgs:@NO, nil];
81-
OCMStub([engine waitForFirstFrame:3.0 callback:blockArg]);
79+
// Set blockNoInvoker to a strong local to retain to end of scope.
80+
id blockNoInvoker = [OCMArg invokeBlockWithArgs:@NO, nil];
81+
OCMStub([engine waitForFirstFrame:3.0 callback:blockNoInvoker]);
8282
appDelegate.rootFlutterViewControllerGetter = ^{
8383
return viewController;
8484
};

0 commit comments

Comments
 (0)