Skip to content

Commit 02d2b29

Browse files
authored
Fix typo: Timout -> Timeout (#12672)
1 parent 1af0bf0 commit 02d2b29

File tree

4 files changed

+31
-31
lines changed

4 files changed

+31
-31
lines changed

FirebaseDynamicLinks/Tests/Unit/FIRDLScionLoggingTest.m

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
#import <OCMock/OCMock.h>
2020
#import "FirebaseDynamicLinks/Sources/FIRDLScionLogging.h"
2121

22-
static const NSTimeInterval kAsyncTestTimout = 0.5;
22+
static const NSTimeInterval kAsyncTestTimeout = 0.5;
2323

2424
typedef void (^FakeAnalyticsLogEventWithOriginNameParametersHandler)(NSString *origin,
2525
NSString *name,
@@ -113,7 +113,7 @@ - (void)testGINLogEventToScionCallsLogMethodWithFirstOpen {
113113
}];
114114

115115
FIRDLLogEventToScion(FIRDLLogEventFirstOpen, nil, nil, nil, analytics);
116-
[self waitForExpectationsWithTimeout:kAsyncTestTimout handler:nil];
116+
[self waitForExpectationsWithTimeout:kAsyncTestTimeout handler:nil];
117117
}
118118

119119
- (void)testGINLogEventToScionContainsCorrectNameWithFirstOpen {
@@ -126,7 +126,7 @@ - (void)testGINLogEventToScionContainsCorrectNameWithFirstOpen {
126126
}];
127127

128128
FIRDLLogEventToScion(FIRDLLogEventFirstOpen, nil, nil, nil, analytics);
129-
[self waitForExpectationsWithTimeout:kAsyncTestTimout handler:nil];
129+
[self waitForExpectationsWithTimeout:kAsyncTestTimeout handler:nil];
130130
}
131131

132132
- (void)testGINLogEventToScionCallsLogMethodWithAppOpen {
@@ -138,7 +138,7 @@ - (void)testGINLogEventToScionCallsLogMethodWithAppOpen {
138138
}];
139139
FIRDLLogEventToScion(FIRDLLogEventAppOpen, nil, nil, nil, analytics);
140140

141-
[self waitForExpectationsWithTimeout:kAsyncTestTimout handler:nil];
141+
[self waitForExpectationsWithTimeout:kAsyncTestTimeout handler:nil];
142142
}
143143

144144
- (void)testGINLogEventToScionContainsCorrectNameWithAppOpen {
@@ -151,7 +151,7 @@ - (void)testGINLogEventToScionContainsCorrectNameWithAppOpen {
151151
}];
152152
FIRDLLogEventToScion(FIRDLLogEventAppOpen, nil, nil, nil, analytics);
153153

154-
[self waitForExpectationsWithTimeout:kAsyncTestTimout handler:nil];
154+
[self waitForExpectationsWithTimeout:kAsyncTestTimeout handler:nil];
155155
}
156156

157157
- (void)testGINLogEventToScionLogsParametersCorrectly {
@@ -176,7 +176,7 @@ - (void)testGINLogEventToScionLogsParametersCorrectly {
176176

177177
FIRDLLogEventToScion(FIRDLLogEventAppOpen, source, medium, campaign, analytics);
178178

179-
[self waitForExpectationsWithTimeout:kAsyncTestTimout handler:nil];
179+
[self waitForExpectationsWithTimeout:kAsyncTestTimeout handler:nil];
180180
}
181181

182182
@end

FirebaseDynamicLinks/Tests/Unit/FIRDynamicLinkNetworkingTests.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
static NSString *const kAPIKey = @"myfakeapikey";
2727
const NSInteger kJSONParsingErrorCode = 3840;
2828
static NSString *const kURLScheme = @"gindeeplinkurl";
29-
static const NSTimeInterval kAsyncTestTimout = 5.0;
29+
static const NSTimeInterval kAsyncTestTimeout = 5.0;
3030

3131
@interface FIRDynamicLinkNetworkingTests : XCTestCase
3232

@@ -90,7 +90,7 @@ - (void)testResolveShortLinkServiceCompletionDoesntCrashWhenNilDataIsRetrieved {
9090
[expectation fulfill];
9191
}];
9292

93-
[self waitForExpectationsWithTimeout:kAsyncTestTimout handler:nil];
93+
[self waitForExpectationsWithTimeout:kAsyncTestTimeout handler:nil];
9494

9595
[GULSwizzler unswizzleClass:[FIRDynamicLinkNetworking class]
9696
selector:executeRequestSelector

FirebaseDynamicLinks/Tests/Unit/FIRDynamicLinksTest.m

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
@"https://sample.page.link?link=%@&isi=585027354";
4848
static NSString *const kURLScheme = @"gindeeplinkurl";
4949

50-
static const NSTimeInterval kAsyncTestTimout = 5.0;
50+
static const NSTimeInterval kAsyncTestTimeout = 5.0;
5151

5252
/**
5353
* This string was generated by percent-encoding the Tactile URL for the Tokyo American Club in
@@ -526,7 +526,7 @@ - (void)testDynamicLinkFromUniversalLinkURLCompletionWithCustomDomainLink {
526526
@"ddl url parameter and deep link url should be the same");
527527
[expectation fulfill];
528528
}];
529-
[self waitForExpectationsWithTimeout:kAsyncTestTimout handler:nil];
529+
[self waitForExpectationsWithTimeout:kAsyncTestTimeout handler:nil];
530530

531531
UnswizzleDynamicLinkNetworking();
532532
}
@@ -567,7 +567,7 @@ - (void)testDynamicLinkFromUniversalLinkURLCompletionWithSpecialCharacters {
567567
@"ddl url parameter and deep link url should be the same");
568568
[expectation fulfill];
569569
}];
570-
[self waitForExpectationsWithTimeout:kAsyncTestTimout handler:nil];
570+
[self waitForExpectationsWithTimeout:kAsyncTestTimeout handler:nil];
571571

572572
UnswizzleDynamicLinkNetworking();
573573
}
@@ -608,7 +608,7 @@ - (void)testDynamicLinkFromUniversalLinkURLCompletionWithEncodedCharacters {
608608
@"ddl url parameter and deep link url should be the same");
609609
[expectation fulfill];
610610
}];
611-
[self waitForExpectationsWithTimeout:kAsyncTestTimout handler:nil];
611+
[self waitForExpectationsWithTimeout:kAsyncTestTimeout handler:nil];
612612

613613
UnswizzleDynamicLinkNetworking();
614614
}
@@ -657,7 +657,7 @@ - (void)testUniversalLinkWithCompletion_DeepLink {
657657
XCTAssertEqualObjects(dynamicLink.url.absoluteString, deepLinkString);
658658
[expectation fulfill];
659659
}];
660-
[self waitForExpectationsWithTimeout:kAsyncTestTimout handler:nil];
660+
[self waitForExpectationsWithTimeout:kAsyncTestTimeout handler:nil];
661661

662662
UnswizzleDynamicLinkNetworking();
663663
}
@@ -707,7 +707,7 @@ - (void)testUniversalLinkWithCompletion_DeepLinkWithParameters {
707707
parsedDeepLinkString);
708708
[expectation fulfill];
709709
}];
710-
[self waitForExpectationsWithTimeout:kAsyncTestTimout handler:nil];
710+
[self waitForExpectationsWithTimeout:kAsyncTestTimeout handler:nil];
711711
UnswizzleDynamicLinkNetworking();
712712
}
713713

@@ -745,7 +745,7 @@ - (void)testResolveLinkReturnsDLWithNilMinAppVersionWhenNotPresent {
745745
[expectation fulfill];
746746
}];
747747

748-
[self waitForExpectationsWithTimeout:kAsyncTestTimout handler:nil];
748+
[self waitForExpectationsWithTimeout:kAsyncTestTimeout handler:nil];
749749
}
750750

751751
- (void)testResolveLinkReturnsDLWithMinAppVersionWhenPresent {
@@ -790,7 +790,7 @@ - (void)testResolveLinkReturnsDLWithMinAppVersionWhenPresent {
790790
[expectation fulfill];
791791
}];
792792

793-
[self waitForExpectationsWithTimeout:kAsyncTestTimout handler:nil];
793+
[self waitForExpectationsWithTimeout:kAsyncTestTimeout handler:nil];
794794
}
795795

796796
- (void)testUniversalLinkWithSubdomain_NoDeepLink {
@@ -871,7 +871,7 @@ - (void)testDynamicLinkFromUniversalLinkURLCompletionReturnsDLWithNilMinimumVers
871871
XCTAssertNil(minVersion, @"Min app version was not nil when not set.");
872872
[expectation fulfill];
873873
}];
874-
[self waitForExpectationsWithTimeout:kAsyncTestTimout handler:nil];
874+
[self waitForExpectationsWithTimeout:kAsyncTestTimeout handler:nil];
875875
}
876876

877877
- (void)testDynamicLinkFromUniversalLinkURLReturnsDLMinimumVersion {
@@ -948,7 +948,7 @@ - (void)testDynamicLinkFromUniversalLinkURLReturnsUTMParams {
948948
[expectation fulfill];
949949
}];
950950

951-
[self waitForExpectationsWithTimeout:kAsyncTestTimout handler:nil];
951+
[self waitForExpectationsWithTimeout:kAsyncTestTimeout handler:nil];
952952
}
953953

954954
- (void)testDynamicLinkFromUniversalLinkURLCompletionReturnsDLMinimumVersion {
@@ -976,7 +976,7 @@ - (void)testDynamicLinkFromUniversalLinkURLCompletionReturnsDLMinimumVersion {
976976
@"Min version didn't match imv= parameter");
977977
[expectation fulfill];
978978
}];
979-
[self waitForExpectationsWithTimeout:kAsyncTestTimout handler:nil];
979+
[self waitForExpectationsWithTimeout:kAsyncTestTimeout handler:nil];
980980
}
981981

982982
- (void)testUniversalLinkWithSubdomain_DeepLink {
@@ -1022,7 +1022,7 @@ - (void)testUniversalLinkWithCompletionWithSubdomain_DeepLink {
10221022
XCTAssertEqualObjects(dynamicLink.url.absoluteString, deepLinkString);
10231023
[expectation fulfill];
10241024
}];
1025-
[self waitForExpectationsWithTimeout:kAsyncTestTimout handler:nil];
1025+
[self waitForExpectationsWithTimeout:kAsyncTestTimeout handler:nil];
10261026

10271027
UnswizzleDynamicLinkNetworking();
10281028
}
@@ -1067,7 +1067,7 @@ - (void)testUniversalLinkWithCompletionWithSubdomain_DeepLinkWithParameters {
10671067
parsedDeepLinkString);
10681068
[expectation fulfill];
10691069
}];
1070-
[self waitForExpectationsWithTimeout:kAsyncTestTimout handler:nil];
1070+
[self waitForExpectationsWithTimeout:kAsyncTestTimeout handler:nil];
10711071
}
10721072

10731073
- (void)testResolveLinkRespectsResponseSuccessStatusCode {
@@ -1105,7 +1105,7 @@ - (void)testResolveLinkRespectsResponseSuccessStatusCode {
11051105
[expectation fulfill];
11061106
}];
11071107

1108-
[self waitForExpectationsWithTimeout:kAsyncTestTimout handler:nil];
1108+
[self waitForExpectationsWithTimeout:kAsyncTestTimeout handler:nil];
11091109
}
11101110

11111111
- (void)testResolveLinkRespectsResponseErrorStatusCode {
@@ -1152,7 +1152,7 @@ - (void)testResolveLinkRespectsResponseErrorStatusCode {
11521152
[expectation fulfill];
11531153
}];
11541154

1155-
[self waitForExpectationsWithTimeout:kAsyncTestTimout handler:nil];
1155+
[self waitForExpectationsWithTimeout:kAsyncTestTimeout handler:nil];
11561156
}
11571157

11581158
- (void)testPassMatchesShortLinkFormatForDDLDomains {
@@ -1354,7 +1354,7 @@ - (void)testHandleUniversalLinkWithShortLink {
13541354
[handleLinkCompletionExpectation fulfill];
13551355
}];
13561356

1357-
[self waitForExpectationsWithTimeout:kAsyncTestTimout handler:nil];
1357+
[self waitForExpectationsWithTimeout:kAsyncTestTimeout handler:nil];
13581358
UnswizzleDynamicLinkNetworking();
13591359
}
13601360

@@ -1386,7 +1386,7 @@ - (void)testHandleUniversalLinkWithLongLink {
13861386
[self.service handleUniversalLink:[NSURL URLWithString:longLinkString]
13871387
completion:handleUniversalLinkBlock];
13881388

1389-
[self waitForExpectationsWithTimeout:kAsyncTestTimout handler:nil];
1389+
[self waitForExpectationsWithTimeout:kAsyncTestTimeout handler:nil];
13901390

13911391
// It is expected to call resolveLink once for logging.
13921392
XCTAssertEqual(resolverInvocationsCount, 1,
@@ -1415,7 +1415,7 @@ - (void)testHandleUniversalLinkCallsHandleUniversalLinkResolver {
14151415
completion:^(FIRDynamicLink *_Nullable dynamicLink, NSError *_Nullable error){
14161416
}];
14171417

1418-
[self waitForExpectationsWithTimeout:kAsyncTestTimout handler:nil];
1418+
[self waitForExpectationsWithTimeout:kAsyncTestTimeout handler:nil];
14191419

14201420
[GULSwizzler unswizzleClass:[FIRDynamicLinks class]
14211421
selector:selectorToSwizzle
@@ -1491,7 +1491,7 @@ - (void)testHandleUniversalLinkCompletionReturnsYesForValidDDL {
14911491

14921492
XCTAssertTrue(handled, @"Valid DDL Universal Link was not handled");
14931493

1494-
[self waitForExpectationsWithTimeout:kAsyncTestTimout handler:nil];
1494+
[self waitForExpectationsWithTimeout:kAsyncTestTimeout handler:nil];
14951495
}
14961496
}
14971497

FirebaseMessaging/Tests/UnitTests/FIRMessagingAnalyticsTest.m

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
static NSString *const kReengagementSource = @"Firebase";
2929
static NSString *const kReengagementMedium = @"notification";
3030
static NSString *const kFIREventOriginFCM = @"fcm";
31-
static const NSTimeInterval kAsyncTestTimout = 0.5;
31+
static const NSTimeInterval kAsyncTestTimeout = 0.5;
3232

3333
typedef void (^FakeAnalyticsLogEventHandler)(NSString *origin,
3434
NSString *name,
@@ -237,7 +237,7 @@ - (void)testNoParamsIfEmpty {
237237
[FIRMessagingAnalytics logEvent:kFIRIEventFirebaseCampaign
238238
withNotification:notification
239239
toAnalytics:analytics];
240-
[self waitForExpectationsWithTimeout:kAsyncTestTimout handler:nil];
240+
[self waitForExpectationsWithTimeout:kAsyncTestTimeout handler:nil];
241241
}
242242
- (void)testParamForEventAndNotification {
243243
NSDictionary *notification = @{
@@ -373,7 +373,7 @@ - (void)testConversionTracking {
373373
expectation = nil;
374374
}];
375375
[FIRMessagingAnalytics logUserPropertyForConversionTracking:notification toAnalytics:analytics];
376-
[self waitForExpectationsWithTimeout:kAsyncTestTimout handler:nil];
376+
[self waitForExpectationsWithTimeout:kAsyncTestTimeout handler:nil];
377377
}
378378

379379
- (void)testConversionTrackingUserProperty {
@@ -401,7 +401,7 @@ - (void)testConversionTrackingUserProperty {
401401
[expectation fulfill];
402402
}];
403403
[FIRMessagingAnalytics logUserPropertyForConversionTracking:notification toAnalytics:analytics];
404-
[self waitForExpectationsWithTimeout:kAsyncTestTimout handler:nil];
404+
[self waitForExpectationsWithTimeout:kAsyncTestTimeout handler:nil];
405405
}
406406

407407
- (void)testNoConversionTracking {

0 commit comments

Comments
 (0)