@@ -769,6 +769,8 @@ - (void)testUpdateEmailSuccess {
769
769
callback (mockSetAccountInfoResponse, nil );
770
770
});
771
771
});
772
+ #pragma clang diagnostic push
773
+ #pragma clang diagnostic ignored "-Wdeprecated-declarations"
772
774
[user updateEmail: kNewEmail
773
775
completion: ^(NSError *_Nullable error) {
774
776
XCTAssertNil (error);
@@ -777,6 +779,7 @@ - (void)testUpdateEmailSuccess {
777
779
kNewDisplayName );
778
780
[expectation fulfill ];
779
781
}];
782
+ #pragma clang diagnostic pop
780
783
}];
781
784
[self waitForExpectationsWithTimeout: kExpectationTimeout handler: nil ];
782
785
OCMVerifyAll (_mockBackend);
@@ -829,6 +832,8 @@ - (void)testUpdateEmailWithAuthLinkAccountSuccess {
829
832
callback (mockSetAccountInfoResponse, nil );
830
833
});
831
834
});
835
+ #pragma clang diagnostic push
836
+ #pragma clang diagnostic ignored "-Wdeprecated-declarations"
832
837
[user updateEmail: kNewEmail
833
838
completion: ^(NSError *_Nullable error) {
834
839
XCTAssertNil (error);
@@ -838,6 +843,7 @@ - (void)testUpdateEmailWithAuthLinkAccountSuccess {
838
843
XCTAssertFalse (user.isAnonymous );
839
844
[expectation fulfill ];
840
845
}];
846
+ #pragma clang diagnostic pop
841
847
}];
842
848
[self waitForExpectationsWithTimeout: kExpectationTimeout handler: nil ];
843
849
OCMVerifyAll (_mockBackend);
@@ -862,6 +868,8 @@ - (void)testUpdateEmailFailure {
862
868
callback: [OCMArg any ]])
863
869
.andDispatchError2 ([FIRAuthErrorUtils
864
870
invalidEmailErrorWithMessage: nil ]);
871
+ #pragma clang diagnostic push
872
+ #pragma clang diagnostic ignored "-Wdeprecated-declarations"
865
873
[user
866
874
updateEmail: kNewEmail
867
875
completion: ^(NSError *_Nullable error) {
@@ -876,6 +884,7 @@ - (void)testUpdateEmailFailure {
876
884
user);
877
885
[expectation fulfill ];
878
886
}];
887
+ #pragma clang diagnostic pop
879
888
}];
880
889
[self waitForExpectationsWithTimeout: kExpectationTimeout handler: nil ];
881
890
OCMVerifyAll (_mockBackend);
@@ -900,6 +909,8 @@ - (void)testUpdateEmailAutoSignOut {
900
909
callback: [OCMArg any ]])
901
910
.andDispatchError2 ([FIRAuthErrorUtils
902
911
invalidUserTokenErrorWithMessage: nil ]);
912
+ #pragma clang diagnostic push
913
+ #pragma clang diagnostic ignored "-Wdeprecated-declarations"
903
914
[user updateEmail: kNewEmail
904
915
completion: ^(NSError *_Nullable error) {
905
916
XCTAssertTrue ([NSThread isMainThread ]);
@@ -913,6 +924,7 @@ - (void)testUpdateEmailAutoSignOut {
913
924
XCTAssertNil ([FIRAuth auth ].currentUser );
914
925
[expectation fulfill ];
915
926
}];
927
+ #pragma clang diagnostic pop
916
928
}];
917
929
[self waitForExpectationsWithTimeout: kExpectationTimeout handler: nil ];
918
930
OCMVerifyAll (_mockBackend);
0 commit comments