@@ -25,7 +25,9 @@ - (void)testHandleMethodCall_setShortcutItems {
25
25
26
26
FLTShortcutStateManager *mockShortcutStateManager = OCMClassMock ([FLTShortcutStateManager class ]);
27
27
28
- QuickActionsPlugin *plugin = [[QuickActionsPlugin alloc ] initWithChannel: OCMClassMock ([FlutterMethodChannel class ]) shortcutStateManager: mockShortcutStateManager];
28
+ QuickActionsPlugin *plugin =
29
+ [[QuickActionsPlugin alloc ] initWithChannel: OCMClassMock ([FlutterMethodChannel class ])
30
+ shortcutStateManager: mockShortcutStateManager];
29
31
XCTestExpectation *resultExpectation =
30
32
[self expectationWithDescription: @" result block must be called." ];
31
33
[plugin handleMethodCall: call
@@ -44,7 +46,7 @@ - (void)testHandleMethodCall_clearShortcutItems {
44
46
FLTShortcutStateManager *mockShortcutStateManager = OCMClassMock ([FLTShortcutStateManager class ]);
45
47
QuickActionsPlugin *plugin =
46
48
[[QuickActionsPlugin alloc ] initWithChannel: OCMClassMock ([FlutterMethodChannel class ])
47
- shortcutStateManager: mockShortcutStateManager];
49
+ shortcutStateManager: mockShortcutStateManager];
48
50
XCTestExpectation *resultExpectation =
49
51
[self expectationWithDescription: @" result block must be called." ];
50
52
[plugin handleMethodCall: call
@@ -62,7 +64,7 @@ - (void)testHandleMethodCall_getLaunchAction {
62
64
63
65
QuickActionsPlugin *plugin =
64
66
[[QuickActionsPlugin alloc ] initWithChannel: OCMClassMock ([FlutterMethodChannel class ])
65
- shortcutStateManager: OCMClassMock ([FLTShortcutStateManager class ])];
67
+ shortcutStateManager: OCMClassMock ([FLTShortcutStateManager class ])];
66
68
XCTestExpectation *resultExpectation =
67
69
[self expectationWithDescription: @" result block must be called." ];
68
70
[plugin handleMethodCall: call
@@ -78,7 +80,7 @@ - (void)testHandleMethodCall_nonExistMethods {
78
80
79
81
QuickActionsPlugin *plugin =
80
82
[[QuickActionsPlugin alloc ] initWithChannel: OCMClassMock ([FlutterMethodChannel class ])
81
- shortcutStateManager: OCMClassMock ([FLTShortcutStateManager class ])];
83
+ shortcutStateManager: OCMClassMock ([FLTShortcutStateManager class ])];
82
84
XCTestExpectation *resultExpectation =
83
85
[self expectationWithDescription: @" result must be called." ];
84
86
[plugin
@@ -96,7 +98,7 @@ - (void)testApplicationPerformActionForShortcutItem {
96
98
id mockChannel = OCMClassMock ([FlutterMethodChannel class ]);
97
99
QuickActionsPlugin *plugin =
98
100
[[QuickActionsPlugin alloc ] initWithChannel: mockChannel
99
- shortcutStateManager: OCMClassMock ([FLTShortcutStateManager class ])];
101
+ shortcutStateManager: OCMClassMock ([FLTShortcutStateManager class ])];
100
102
101
103
UIApplicationShortcutItem *item = [[UIApplicationShortcutItem alloc ]
102
104
initWithType: @" SearchTheThing"
@@ -117,7 +119,7 @@ - (void)testApplicationDidFinishLaunchingWithOptions_launchWithShortcut {
117
119
id mockShortcutStateManager = OCMClassMock ([FLTShortcutStateManager class ]);
118
120
QuickActionsPlugin *plugin =
119
121
[[QuickActionsPlugin alloc ] initWithChannel: OCMClassMock ([FlutterMethodChannel class ])
120
- shortcutStateManager: mockShortcutStateManager];
122
+ shortcutStateManager: mockShortcutStateManager];
121
123
122
124
UIApplicationShortcutItem *item = [[UIApplicationShortcutItem alloc ]
123
125
initWithType: @" SearchTheThing"
@@ -137,7 +139,7 @@ - (void)testApplicationDidFinishLaunchingWithOptions_launchWithShortcut {
137
139
- (void )testApplicationDidFinishLaunchingWithOptions_launchWithoutShortcut {
138
140
QuickActionsPlugin *plugin =
139
141
[[QuickActionsPlugin alloc ] initWithChannel: OCMClassMock ([FlutterMethodChannel class ])
140
- shortcutStateManager: OCMClassMock ([FLTShortcutStateManager class ])];
142
+ shortcutStateManager: OCMClassMock ([FLTShortcutStateManager class ])];
141
143
BOOL launchResult = [plugin application: [UIApplication sharedApplication ]
142
144
didFinishLaunchingWithOptions: @{}];
143
145
XCTAssertTrue (launchResult,
@@ -149,7 +151,7 @@ - (void)testApplicationDidBecomeActive_launchWithoutShortcut {
149
151
id mockShortcutStateManager = OCMClassMock ([FLTShortcutStateManager class ]);
150
152
QuickActionsPlugin *plugin =
151
153
[[QuickActionsPlugin alloc ] initWithChannel: mockChannel
152
- shortcutStateManager: mockShortcutStateManager];
154
+ shortcutStateManager: mockShortcutStateManager];
153
155
154
156
[plugin application: [UIApplication sharedApplication ] didFinishLaunchingWithOptions: @{}];
155
157
[plugin applicationDidBecomeActive: [UIApplication sharedApplication ]];
@@ -161,7 +163,7 @@ - (void)testApplicationDidBecomeActive_launchWithShortcut {
161
163
id mockShortcutStateManager = OCMClassMock ([FLTShortcutStateManager class ]);
162
164
QuickActionsPlugin *plugin =
163
165
[[QuickActionsPlugin alloc ] initWithChannel: mockChannel
164
- shortcutStateManager: mockShortcutStateManager];
166
+ shortcutStateManager: mockShortcutStateManager];
165
167
166
168
UIApplicationShortcutItem *item = [[UIApplicationShortcutItem alloc ]
167
169
initWithType: @" SearchTheThing"
@@ -182,7 +184,7 @@ - (void)testApplicationDidBecomeActive_launchWithShortcut_becomeActiveTwice {
182
184
id mockShortcutStateManager = OCMClassMock ([FLTShortcutStateManager class ]);
183
185
QuickActionsPlugin *plugin =
184
186
[[QuickActionsPlugin alloc ] initWithChannel: mockChannel
185
- shortcutStateManager: mockShortcutStateManager];
187
+ shortcutStateManager: mockShortcutStateManager];
186
188
187
189
UIApplicationShortcutItem *item = [[UIApplicationShortcutItem alloc ]
188
190
initWithType: @" SearchTheThing"
0 commit comments