diff options
author | Paul Beusterien <paulbeusterien@google.com> | 2017-12-08 07:31:31 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-12-08 07:31:31 -0800 |
commit | 3418244cd52ca4e4131ca106bf66cba754ec886c (patch) | |
tree | dca2b2bef1dee22a3967224e8a92c678e22b2b14 /Example/Core | |
parent | 73869c741fd9619dfc03937de5b97ce599db87c8 (diff) |
Disable FirebaseCore Test deprecation warnings (#545)
Diffstat (limited to 'Example/Core')
-rw-r--r-- | Example/Core/Tests/FIRAppTest.m | 2 | ||||
-rw-r--r-- | Example/Core/Tests/FIRLoggerTest.m | 3 | ||||
-rw-r--r-- | Example/Core/Tests/FIROptionsTest.m | 3 |
3 files changed, 8 insertions, 0 deletions
diff --git a/Example/Core/Tests/FIRAppTest.m b/Example/Core/Tests/FIRAppTest.m index 432c593..ac7985a 100644 --- a/Example/Core/Tests/FIRAppTest.m +++ b/Example/Core/Tests/FIRAppTest.m @@ -122,6 +122,7 @@ NSString *const kFIRTestAppName2 = @"test-app-name-2"; // valid customized options #pragma clang diagnostic push #pragma clang diagnostic ignored "-Wnonnull" +#pragma clang diagnostic ignored "-Wdeprecated-declarations" FIROptions *options = [[FIROptions alloc] initWithGoogleAppID:kGoogleAppID bundleID:kBundleID GCMSenderID:kGCMSenderID @@ -196,6 +197,7 @@ NSString *const kFIRTestAppName2 = @"test-app-name-2"; // Configure a different app with valid customized options #pragma clang diagnostic push #pragma clang diagnostic ignored "-Wnonnull" +#pragma clang diagnostic ignored "-Wdeprecated-declarations" FIROptions *customizedOptions = [[FIROptions alloc] initWithGoogleAppID:kGoogleAppID bundleID:kBundleID GCMSenderID:kGCMSenderID diff --git a/Example/Core/Tests/FIRLoggerTest.m b/Example/Core/Tests/FIRLoggerTest.m index eab2e1e..0894fd6 100644 --- a/Example/Core/Tests/FIRLoggerTest.m +++ b/Example/Core/Tests/FIRLoggerTest.m @@ -245,6 +245,8 @@ static NSString *const kMessageCode = @"I-COR000001"; } - (BOOL)messageWasLogged:(NSString *)message { +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wdeprecated-declarations" aslmsg query = asl_new(ASL_TYPE_QUERY); asl_set_query(query, ASL_KEY_FACILITY, kFIRLoggerASLClientFacilityName, ASL_QUERY_OP_EQUAL); aslresponse r = asl_search(getFIRLoggerClient(), query); @@ -261,6 +263,7 @@ static NSString *const kMessageCode = @"I-COR000001"; asl_free(m); asl_release(r); return [allMsg containsObject:message]; +#pragma clang pop } @end diff --git a/Example/Core/Tests/FIROptionsTest.m b/Example/Core/Tests/FIROptionsTest.m index 1423d0a..a1e5fae 100644 --- a/Example/Core/Tests/FIROptionsTest.m +++ b/Example/Core/Tests/FIROptionsTest.m @@ -80,6 +80,7 @@ extern NSString *const kFIRLibraryVersionID; } - (void)testInitCustomizedOptions { +#pragma clang diagnostic ignored "-Wdeprecated-declarations" FIROptions *options = [[FIROptions alloc] initWithGoogleAppID:kGoogleAppID bundleID:kBundleID GCMSenderID:kGCMSenderID @@ -90,6 +91,7 @@ extern NSString *const kFIRLibraryVersionID; databaseURL:kDatabaseURL storageBucket:kStorageBucket deepLinkURLScheme:kDeepLinkURLScheme]; +#pragma clang pop [self assertOptionsMatchDefaults:options andProjectID:NO]; XCTAssertEqualObjects(options.deepLinkURLScheme, kDeepLinkURLScheme); XCTAssertFalse(options.usingOptionsFromDefaultPlist); @@ -112,6 +114,7 @@ extern NSString *const kFIRLibraryVersionID; // nil GoogleAppID should throw an exception #pragma clang diagnostic push #pragma clang diagnostic ignored "-Wnonnull" +#pragma clang diagnostic ignored "-Wdeprecated-declarations" XCTAssertThrows([[FIROptions alloc] initWithGoogleAppID:nil bundleID:kBundleID GCMSenderID:kGCMSenderID |