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

Commit 569eb63

Browse files
committed
format
1 parent 6d63647 commit 569eb63

File tree

2 files changed

+12
-11
lines changed

2 files changed

+12
-11
lines changed

packages/quick_actions/quick_actions_ios/example/ios/RunnerTests/FLTQuickActionsPluginTests.m

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,9 @@ - (void)testHandleMethodCall_setShortcutItems {
2525

2626
FLTShortcutStateManager *mockShortcutStateManager = OCMClassMock([FLTShortcutStateManager class]);
2727

28-
QuickActionsPlugin *plugin = [[QuickActionsPlugin alloc] initWithChannel:OCMClassMock([FlutterMethodChannel class]) shortcutStateManager:mockShortcutStateManager];
28+
QuickActionsPlugin *plugin =
29+
[[QuickActionsPlugin alloc] initWithChannel:OCMClassMock([FlutterMethodChannel class])
30+
shortcutStateManager:mockShortcutStateManager];
2931
XCTestExpectation *resultExpectation =
3032
[self expectationWithDescription:@"result block must be called."];
3133
[plugin handleMethodCall:call
@@ -44,7 +46,7 @@ - (void)testHandleMethodCall_clearShortcutItems {
4446
FLTShortcutStateManager *mockShortcutStateManager = OCMClassMock([FLTShortcutStateManager class]);
4547
QuickActionsPlugin *plugin =
4648
[[QuickActionsPlugin alloc] initWithChannel:OCMClassMock([FlutterMethodChannel class])
47-
shortcutStateManager:mockShortcutStateManager];
49+
shortcutStateManager:mockShortcutStateManager];
4850
XCTestExpectation *resultExpectation =
4951
[self expectationWithDescription:@"result block must be called."];
5052
[plugin handleMethodCall:call
@@ -62,7 +64,7 @@ - (void)testHandleMethodCall_getLaunchAction {
6264

6365
QuickActionsPlugin *plugin =
6466
[[QuickActionsPlugin alloc] initWithChannel:OCMClassMock([FlutterMethodChannel class])
65-
shortcutStateManager:OCMClassMock([FLTShortcutStateManager class])];
67+
shortcutStateManager:OCMClassMock([FLTShortcutStateManager class])];
6668
XCTestExpectation *resultExpectation =
6769
[self expectationWithDescription:@"result block must be called."];
6870
[plugin handleMethodCall:call
@@ -78,7 +80,7 @@ - (void)testHandleMethodCall_nonExistMethods {
7880

7981
QuickActionsPlugin *plugin =
8082
[[QuickActionsPlugin alloc] initWithChannel:OCMClassMock([FlutterMethodChannel class])
81-
shortcutStateManager:OCMClassMock([FLTShortcutStateManager class])];
83+
shortcutStateManager:OCMClassMock([FLTShortcutStateManager class])];
8284
XCTestExpectation *resultExpectation =
8385
[self expectationWithDescription:@"result must be called."];
8486
[plugin
@@ -96,7 +98,7 @@ - (void)testApplicationPerformActionForShortcutItem {
9698
id mockChannel = OCMClassMock([FlutterMethodChannel class]);
9799
QuickActionsPlugin *plugin =
98100
[[QuickActionsPlugin alloc] initWithChannel:mockChannel
99-
shortcutStateManager:OCMClassMock([FLTShortcutStateManager class])];
101+
shortcutStateManager:OCMClassMock([FLTShortcutStateManager class])];
100102

101103
UIApplicationShortcutItem *item = [[UIApplicationShortcutItem alloc]
102104
initWithType:@"SearchTheThing"
@@ -117,7 +119,7 @@ - (void)testApplicationDidFinishLaunchingWithOptions_launchWithShortcut {
117119
id mockShortcutStateManager = OCMClassMock([FLTShortcutStateManager class]);
118120
QuickActionsPlugin *plugin =
119121
[[QuickActionsPlugin alloc] initWithChannel:OCMClassMock([FlutterMethodChannel class])
120-
shortcutStateManager:mockShortcutStateManager];
122+
shortcutStateManager:mockShortcutStateManager];
121123

122124
UIApplicationShortcutItem *item = [[UIApplicationShortcutItem alloc]
123125
initWithType:@"SearchTheThing"
@@ -137,7 +139,7 @@ - (void)testApplicationDidFinishLaunchingWithOptions_launchWithShortcut {
137139
- (void)testApplicationDidFinishLaunchingWithOptions_launchWithoutShortcut {
138140
QuickActionsPlugin *plugin =
139141
[[QuickActionsPlugin alloc] initWithChannel:OCMClassMock([FlutterMethodChannel class])
140-
shortcutStateManager:OCMClassMock([FLTShortcutStateManager class])];
142+
shortcutStateManager:OCMClassMock([FLTShortcutStateManager class])];
141143
BOOL launchResult = [plugin application:[UIApplication sharedApplication]
142144
didFinishLaunchingWithOptions:@{}];
143145
XCTAssertTrue(launchResult,
@@ -149,7 +151,7 @@ - (void)testApplicationDidBecomeActive_launchWithoutShortcut {
149151
id mockShortcutStateManager = OCMClassMock([FLTShortcutStateManager class]);
150152
QuickActionsPlugin *plugin =
151153
[[QuickActionsPlugin alloc] initWithChannel:mockChannel
152-
shortcutStateManager:mockShortcutStateManager];
154+
shortcutStateManager:mockShortcutStateManager];
153155

154156
[plugin application:[UIApplication sharedApplication] didFinishLaunchingWithOptions:@{}];
155157
[plugin applicationDidBecomeActive:[UIApplication sharedApplication]];
@@ -161,7 +163,7 @@ - (void)testApplicationDidBecomeActive_launchWithShortcut {
161163
id mockShortcutStateManager = OCMClassMock([FLTShortcutStateManager class]);
162164
QuickActionsPlugin *plugin =
163165
[[QuickActionsPlugin alloc] initWithChannel:mockChannel
164-
shortcutStateManager:mockShortcutStateManager];
166+
shortcutStateManager:mockShortcutStateManager];
165167

166168
UIApplicationShortcutItem *item = [[UIApplicationShortcutItem alloc]
167169
initWithType:@"SearchTheThing"
@@ -182,7 +184,7 @@ - (void)testApplicationDidBecomeActive_launchWithShortcut_becomeActiveTwice {
182184
id mockShortcutStateManager = OCMClassMock([FLTShortcutStateManager class]);
183185
QuickActionsPlugin *plugin =
184186
[[QuickActionsPlugin alloc] initWithChannel:mockChannel
185-
shortcutStateManager:mockShortcutStateManager];
187+
shortcutStateManager:mockShortcutStateManager];
186188

187189
UIApplicationShortcutItem *item = [[UIApplicationShortcutItem alloc]
188190
initWithType:@"SearchTheThing"

packages/quick_actions/quick_actions_ios/ios/Classes/quick_actions_ios-umbrella.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,3 @@ FOUNDATION_EXPORT double quickActionsIOSVersionNumber;
88
FOUNDATION_EXPORT const unsigned char quickActionsIOSVersionString[];
99

1010
#import <quick_actions_ios/FLTShortcutStateManager.h>
11-

0 commit comments

Comments
 (0)