|
|
@@ -47,7 +47,7 @@ static NSString *const kStructuredUniversalLinkFmtSubdomainDeepLink =
|
|
|
@"https://sample.page.link?link=%@&isi=585027354";
|
|
|
static NSString *const kURLScheme = @"gindeeplinkurl";
|
|
|
|
|
|
-static const NSTimeInterval kAsyncTestTimout = 5.0;
|
|
|
+static const NSTimeInterval kAsyncTestTimeout = 5.0;
|
|
|
|
|
|
/**
|
|
|
* This string was generated by percent-encoding the Tactile URL for the Tokyo American Club in
|
|
|
@@ -526,7 +526,7 @@ static NSString *const kInfoPlistCustomDomainsKey = @"FirebaseDynamicLinksCustom
|
|
|
@"ddl url parameter and deep link url should be the same");
|
|
|
[expectation fulfill];
|
|
|
}];
|
|
|
- [self waitForExpectationsWithTimeout:kAsyncTestTimout handler:nil];
|
|
|
+ [self waitForExpectationsWithTimeout:kAsyncTestTimeout handler:nil];
|
|
|
|
|
|
UnswizzleDynamicLinkNetworking();
|
|
|
}
|
|
|
@@ -567,7 +567,7 @@ static NSString *const kInfoPlistCustomDomainsKey = @"FirebaseDynamicLinksCustom
|
|
|
@"ddl url parameter and deep link url should be the same");
|
|
|
[expectation fulfill];
|
|
|
}];
|
|
|
- [self waitForExpectationsWithTimeout:kAsyncTestTimout handler:nil];
|
|
|
+ [self waitForExpectationsWithTimeout:kAsyncTestTimeout handler:nil];
|
|
|
|
|
|
UnswizzleDynamicLinkNetworking();
|
|
|
}
|
|
|
@@ -608,7 +608,7 @@ static NSString *const kInfoPlistCustomDomainsKey = @"FirebaseDynamicLinksCustom
|
|
|
@"ddl url parameter and deep link url should be the same");
|
|
|
[expectation fulfill];
|
|
|
}];
|
|
|
- [self waitForExpectationsWithTimeout:kAsyncTestTimout handler:nil];
|
|
|
+ [self waitForExpectationsWithTimeout:kAsyncTestTimeout handler:nil];
|
|
|
|
|
|
UnswizzleDynamicLinkNetworking();
|
|
|
}
|
|
|
@@ -657,7 +657,7 @@ static NSString *const kInfoPlistCustomDomainsKey = @"FirebaseDynamicLinksCustom
|
|
|
XCTAssertEqualObjects(dynamicLink.url.absoluteString, deepLinkString);
|
|
|
[expectation fulfill];
|
|
|
}];
|
|
|
- [self waitForExpectationsWithTimeout:kAsyncTestTimout handler:nil];
|
|
|
+ [self waitForExpectationsWithTimeout:kAsyncTestTimeout handler:nil];
|
|
|
|
|
|
UnswizzleDynamicLinkNetworking();
|
|
|
}
|
|
|
@@ -707,7 +707,7 @@ static NSString *const kInfoPlistCustomDomainsKey = @"FirebaseDynamicLinksCustom
|
|
|
parsedDeepLinkString);
|
|
|
[expectation fulfill];
|
|
|
}];
|
|
|
- [self waitForExpectationsWithTimeout:kAsyncTestTimout handler:nil];
|
|
|
+ [self waitForExpectationsWithTimeout:kAsyncTestTimeout handler:nil];
|
|
|
UnswizzleDynamicLinkNetworking();
|
|
|
}
|
|
|
|
|
|
@@ -745,7 +745,7 @@ static NSString *const kInfoPlistCustomDomainsKey = @"FirebaseDynamicLinksCustom
|
|
|
[expectation fulfill];
|
|
|
}];
|
|
|
|
|
|
- [self waitForExpectationsWithTimeout:kAsyncTestTimout handler:nil];
|
|
|
+ [self waitForExpectationsWithTimeout:kAsyncTestTimeout handler:nil];
|
|
|
}
|
|
|
|
|
|
- (void)testResolveLinkReturnsDLWithMinAppVersionWhenPresent {
|
|
|
@@ -790,7 +790,7 @@ static NSString *const kInfoPlistCustomDomainsKey = @"FirebaseDynamicLinksCustom
|
|
|
[expectation fulfill];
|
|
|
}];
|
|
|
|
|
|
- [self waitForExpectationsWithTimeout:kAsyncTestTimout handler:nil];
|
|
|
+ [self waitForExpectationsWithTimeout:kAsyncTestTimeout handler:nil];
|
|
|
}
|
|
|
|
|
|
- (void)testUniversalLinkWithSubdomain_NoDeepLink {
|
|
|
@@ -871,7 +871,7 @@ static NSString *const kInfoPlistCustomDomainsKey = @"FirebaseDynamicLinksCustom
|
|
|
XCTAssertNil(minVersion, @"Min app version was not nil when not set.");
|
|
|
[expectation fulfill];
|
|
|
}];
|
|
|
- [self waitForExpectationsWithTimeout:kAsyncTestTimout handler:nil];
|
|
|
+ [self waitForExpectationsWithTimeout:kAsyncTestTimeout handler:nil];
|
|
|
}
|
|
|
|
|
|
- (void)testDynamicLinkFromUniversalLinkURLReturnsDLMinimumVersion {
|
|
|
@@ -948,7 +948,7 @@ static NSString *const kInfoPlistCustomDomainsKey = @"FirebaseDynamicLinksCustom
|
|
|
[expectation fulfill];
|
|
|
}];
|
|
|
|
|
|
- [self waitForExpectationsWithTimeout:kAsyncTestTimout handler:nil];
|
|
|
+ [self waitForExpectationsWithTimeout:kAsyncTestTimeout handler:nil];
|
|
|
}
|
|
|
|
|
|
- (void)testDynamicLinkFromUniversalLinkURLCompletionReturnsDLMinimumVersion {
|
|
|
@@ -976,7 +976,7 @@ static NSString *const kInfoPlistCustomDomainsKey = @"FirebaseDynamicLinksCustom
|
|
|
@"Min version didn't match imv= parameter");
|
|
|
[expectation fulfill];
|
|
|
}];
|
|
|
- [self waitForExpectationsWithTimeout:kAsyncTestTimout handler:nil];
|
|
|
+ [self waitForExpectationsWithTimeout:kAsyncTestTimeout handler:nil];
|
|
|
}
|
|
|
|
|
|
- (void)testUniversalLinkWithSubdomain_DeepLink {
|
|
|
@@ -1022,7 +1022,7 @@ static NSString *const kInfoPlistCustomDomainsKey = @"FirebaseDynamicLinksCustom
|
|
|
XCTAssertEqualObjects(dynamicLink.url.absoluteString, deepLinkString);
|
|
|
[expectation fulfill];
|
|
|
}];
|
|
|
- [self waitForExpectationsWithTimeout:kAsyncTestTimout handler:nil];
|
|
|
+ [self waitForExpectationsWithTimeout:kAsyncTestTimeout handler:nil];
|
|
|
|
|
|
UnswizzleDynamicLinkNetworking();
|
|
|
}
|
|
|
@@ -1067,7 +1067,7 @@ static NSString *const kInfoPlistCustomDomainsKey = @"FirebaseDynamicLinksCustom
|
|
|
parsedDeepLinkString);
|
|
|
[expectation fulfill];
|
|
|
}];
|
|
|
- [self waitForExpectationsWithTimeout:kAsyncTestTimout handler:nil];
|
|
|
+ [self waitForExpectationsWithTimeout:kAsyncTestTimeout handler:nil];
|
|
|
}
|
|
|
|
|
|
- (void)testResolveLinkRespectsResponseSuccessStatusCode {
|
|
|
@@ -1105,7 +1105,7 @@ static NSString *const kInfoPlistCustomDomainsKey = @"FirebaseDynamicLinksCustom
|
|
|
[expectation fulfill];
|
|
|
}];
|
|
|
|
|
|
- [self waitForExpectationsWithTimeout:kAsyncTestTimout handler:nil];
|
|
|
+ [self waitForExpectationsWithTimeout:kAsyncTestTimeout handler:nil];
|
|
|
}
|
|
|
|
|
|
- (void)testResolveLinkRespectsResponseErrorStatusCode {
|
|
|
@@ -1152,7 +1152,7 @@ static NSString *const kInfoPlistCustomDomainsKey = @"FirebaseDynamicLinksCustom
|
|
|
[expectation fulfill];
|
|
|
}];
|
|
|
|
|
|
- [self waitForExpectationsWithTimeout:kAsyncTestTimout handler:nil];
|
|
|
+ [self waitForExpectationsWithTimeout:kAsyncTestTimeout handler:nil];
|
|
|
}
|
|
|
|
|
|
- (void)testPassMatchesShortLinkFormatForDDLDomains {
|
|
|
@@ -1354,7 +1354,7 @@ static NSString *const kInfoPlistCustomDomainsKey = @"FirebaseDynamicLinksCustom
|
|
|
[handleLinkCompletionExpectation fulfill];
|
|
|
}];
|
|
|
|
|
|
- [self waitForExpectationsWithTimeout:kAsyncTestTimout handler:nil];
|
|
|
+ [self waitForExpectationsWithTimeout:kAsyncTestTimeout handler:nil];
|
|
|
UnswizzleDynamicLinkNetworking();
|
|
|
}
|
|
|
|
|
|
@@ -1386,7 +1386,7 @@ static NSString *const kInfoPlistCustomDomainsKey = @"FirebaseDynamicLinksCustom
|
|
|
[self.service handleUniversalLink:[NSURL URLWithString:longLinkString]
|
|
|
completion:handleUniversalLinkBlock];
|
|
|
|
|
|
- [self waitForExpectationsWithTimeout:kAsyncTestTimout handler:nil];
|
|
|
+ [self waitForExpectationsWithTimeout:kAsyncTestTimeout handler:nil];
|
|
|
|
|
|
// It is expected to call resolveLink once for logging.
|
|
|
XCTAssertEqual(resolverInvocationsCount, 1,
|
|
|
@@ -1415,7 +1415,7 @@ static NSString *const kInfoPlistCustomDomainsKey = @"FirebaseDynamicLinksCustom
|
|
|
completion:^(FIRDynamicLink *_Nullable dynamicLink, NSError *_Nullable error){
|
|
|
}];
|
|
|
|
|
|
- [self waitForExpectationsWithTimeout:kAsyncTestTimout handler:nil];
|
|
|
+ [self waitForExpectationsWithTimeout:kAsyncTestTimeout handler:nil];
|
|
|
|
|
|
[GULSwizzler unswizzleClass:[FIRDynamicLinks class]
|
|
|
selector:selectorToSwizzle
|
|
|
@@ -1491,7 +1491,7 @@ static NSString *const kInfoPlistCustomDomainsKey = @"FirebaseDynamicLinksCustom
|
|
|
|
|
|
XCTAssertTrue(handled, @"Valid DDL Universal Link was not handled");
|
|
|
|
|
|
- [self waitForExpectationsWithTimeout:kAsyncTestTimout handler:nil];
|
|
|
+ [self waitForExpectationsWithTimeout:kAsyncTestTimeout handler:nil];
|
|
|
}
|
|
|
}
|
|
|
|