@@ -769,6 +769,8 @@ - (void)testUpdateEmailSuccess {
769769 callback (mockSetAccountInfoResponse, nil );
770770 });
771771 });
772+ #pragma clang diagnostic push
773+ #pragma clang diagnostic ignored "-Wdeprecated-declarations"
772774 [user updateEmail: kNewEmail
773775 completion: ^(NSError *_Nullable error) {
774776 XCTAssertNil (error);
@@ -777,6 +779,7 @@ - (void)testUpdateEmailSuccess {
777779 kNewDisplayName );
778780 [expectation fulfill ];
779781 }];
782+ #pragma clang diagnostic pop
780783 }];
781784 [self waitForExpectationsWithTimeout: kExpectationTimeout handler: nil ];
782785 OCMVerifyAll (_mockBackend);
@@ -829,6 +832,8 @@ - (void)testUpdateEmailWithAuthLinkAccountSuccess {
829832 callback (mockSetAccountInfoResponse, nil );
830833 });
831834 });
835+ #pragma clang diagnostic push
836+ #pragma clang diagnostic ignored "-Wdeprecated-declarations"
832837 [user updateEmail: kNewEmail
833838 completion: ^(NSError *_Nullable error) {
834839 XCTAssertNil (error);
@@ -838,6 +843,7 @@ - (void)testUpdateEmailWithAuthLinkAccountSuccess {
838843 XCTAssertFalse (user.isAnonymous );
839844 [expectation fulfill ];
840845 }];
846+ #pragma clang diagnostic pop
841847 }];
842848 [self waitForExpectationsWithTimeout: kExpectationTimeout handler: nil ];
843849 OCMVerifyAll (_mockBackend);
@@ -862,6 +868,8 @@ - (void)testUpdateEmailFailure {
862868 callback: [OCMArg any ]])
863869 .andDispatchError2 ([FIRAuthErrorUtils
864870 invalidEmailErrorWithMessage: nil ]);
871+ #pragma clang diagnostic push
872+ #pragma clang diagnostic ignored "-Wdeprecated-declarations"
865873 [user
866874 updateEmail: kNewEmail
867875 completion: ^(NSError *_Nullable error) {
@@ -876,6 +884,7 @@ - (void)testUpdateEmailFailure {
876884 user);
877885 [expectation fulfill ];
878886 }];
887+ #pragma clang diagnostic pop
879888 }];
880889 [self waitForExpectationsWithTimeout: kExpectationTimeout handler: nil ];
881890 OCMVerifyAll (_mockBackend);
@@ -900,6 +909,8 @@ - (void)testUpdateEmailAutoSignOut {
900909 callback: [OCMArg any ]])
901910 .andDispatchError2 ([FIRAuthErrorUtils
902911 invalidUserTokenErrorWithMessage: nil ]);
912+ #pragma clang diagnostic push
913+ #pragma clang diagnostic ignored "-Wdeprecated-declarations"
903914 [user updateEmail: kNewEmail
904915 completion: ^(NSError *_Nullable error) {
905916 XCTAssertTrue ([NSThread isMainThread ]);
@@ -913,6 +924,7 @@ - (void)testUpdateEmailAutoSignOut {
913924 XCTAssertNil ([FIRAuth auth ].currentUser );
914925 [expectation fulfill ];
915926 }];
927+ #pragma clang diagnostic pop
916928 }];
917929 [self waitForExpectationsWithTimeout: kExpectationTimeout handler: nil ];
918930 OCMVerifyAll (_mockBackend);
0 commit comments