diff options
author | Chen Liang <chliang@google.com> | 2018-04-13 11:15:28 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-04-13 11:15:28 -0700 |
commit | 609cd0328aa845145671880e611c8b7d76065020 (patch) | |
tree | dc5d3e53f6ef226ecf76116dc10a75a75b21172e /Example | |
parent | 4797b98bfd8c16230a39945c22d23d08c0b3d8b0 (diff) |
Options should be nullable for subscription (#1085)
Getting warning message from xcode so we need to define it to remove warning.
Diffstat (limited to 'Example')
-rw-r--r-- | Example/Messaging/Tests/FIRMessagingServiceTest.m | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Example/Messaging/Tests/FIRMessagingServiceTest.m b/Example/Messaging/Tests/FIRMessagingServiceTest.m index 9afdced..073adad 100644 --- a/Example/Messaging/Tests/FIRMessagingServiceTest.m +++ b/Example/Messaging/Tests/FIRMessagingServiceTest.m @@ -146,12 +146,15 @@ XCTestExpectation *exceptionExpectation = [self expectationWithDescription:@"Should throw exception for invalid token"]; @try { +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wnonnull" [messaging.pubsub subscribeWithToken:@"abcdef1234" topic:nil options:nil handler:^(NSError *error) { XCTFail(@"Should not invoke the handler"); }]; +#pragma clang diagnostic pop } @catch (NSException *exception) { [exceptionExpectation fulfill]; @@ -169,12 +172,15 @@ XCTestExpectation *exceptionExpectation = [self expectationWithDescription:@"Should throw exception for invalid token"]; @try { +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wnonnull" [messaging.pubsub unsubscribeWithToken:@"abcdef1234" topic:nil options:nil handler:^(NSError *error) { XCTFail(@"Should not invoke the handler"); }]; +#pragma clang diagnostic pop } @catch (NSException *exception) { [exceptionExpectation fulfill]; |