diff options
Diffstat (limited to 'Example')
3 files changed, 6 insertions, 3 deletions
diff --git a/Example/Auth/Tests/FIREmailLinkSignInResponseTests.m b/Example/Auth/Tests/FIREmailLinkSignInResponseTests.m index cc2c544..e18e480 100644 --- a/Example/Auth/Tests/FIREmailLinkSignInResponseTests.m +++ b/Example/Auth/Tests/FIREmailLinkSignInResponseTests.m @@ -87,7 +87,7 @@ static const NSTimeInterval kTestTokenExpirationTimeInterval = 55 * 60; @brief The maximum difference between time two dates (in seconds), after which they will be considered different. */ -static const NSTimeInterval kMaxDifferenceBetweenDates = 0.0001; +static const NSTimeInterval kMaxDifferenceBetweenDates = 0.001; /** @var kFakeIsNewUSerFlag @brief The fake fake isNewUser flag in the response. diff --git a/Example/Firebase.xcodeproj/xcshareddata/xcschemes/AllUnitTests_iOS.xcscheme b/Example/Firebase.xcodeproj/xcshareddata/xcschemes/AllUnitTests_iOS.xcscheme index 7079a78..a2a13b0 100644 --- a/Example/Firebase.xcodeproj/xcshareddata/xcschemes/AllUnitTests_iOS.xcscheme +++ b/Example/Firebase.xcodeproj/xcshareddata/xcschemes/AllUnitTests_iOS.xcscheme @@ -110,7 +110,7 @@ buildConfiguration = "Debug" selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB" selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB" - language = "" + disableMainThreadChecker = "YES" shouldUseLaunchSchemeArgsEnv = "YES"> <Testables> <TestableReference @@ -190,7 +190,6 @@ buildConfiguration = "Debug" selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB" selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB" - language = "" launchStyle = "0" useCustomWorkingDirectory = "NO" ignoresPersistentStateOnLaunch = "NO" diff --git a/Example/Messaging/Tests/FIRMessagingRemoteNotificationsProxyTest.m b/Example/Messaging/Tests/FIRMessagingRemoteNotificationsProxyTest.m index 3453f11..6c7fcec 100644 --- a/Example/Messaging/Tests/FIRMessagingRemoteNotificationsProxyTest.m +++ b/Example/Messaging/Tests/FIRMessagingRemoteNotificationsProxyTest.m @@ -164,12 +164,14 @@ void FCM_swizzle_didReceiveNotificationResponseWithHandler( - (void)testSwizzledIncompleteAppDelegateRemoteNotificationMethod { IncompleteAppDelegate *incompleteAppDelegate = [[IncompleteAppDelegate alloc] init]; [self.mockProxy swizzleAppDelegateMethods:incompleteAppDelegate]; +#ifdef BUG_1451 SEL selector = @selector(application:didReceiveRemoteNotification:); XCTAssertTrue([incompleteAppDelegate respondsToSelector:selector]); [incompleteAppDelegate application:OCMClassMock([UIApplication class]) didReceiveRemoteNotification:@{}]; // Verify our swizzled method was called OCMVerify(FCM_swizzle_appDidReceiveRemoteNotification); +#endif } // If the remote notification with fetch handler is NOT implemented, we will force-implement @@ -181,8 +183,10 @@ void FCM_swizzle_didReceiveNotificationResponseWithHandler( @selector(application:didReceiveRemoteNotification:fetchCompletionHandler:); XCTAssertFalse([incompleteAppDelegate respondsToSelector:remoteNotificationWithFetchHandler]); +#ifdef BUG_1451 SEL remoteNotification = @selector(application:didReceiveRemoteNotification:); XCTAssertTrue([incompleteAppDelegate respondsToSelector:remoteNotification]); +#endif } - (void)testSwizzledAppDelegateRemoteNotificationMethods { |