@@ -17,13 +17,12 @@ import XCTest
1717
1818@testable import FirebaseAuth
1919
20- // TODO: Investigate making this class support generics for the `request`.
21- /** @class FakeBackendRPCIssuer
22- @brief An implementation of @c AuthBackendRPCIssuer which is used to test backend request,
23- response, and glue logic.
24- */
20+ // TODO(ncooke3): Investigate making this class support generics for the `request`.
21+ // TODO(ncooke3): Refactor to make checked Sendable.
22+ /// An implementation of `AuthBackendRPCIssuerProtocol` which is used to test
23+ /// backend request, response, and glue logic.
2524@available ( iOS 13 , tvOS 13 , macOS 10 . 15 , macCatalyst 13 , watchOS 7 , * )
26- class FakeBackendRPCIssuer : AuthBackendRPCIssuer {
25+ final class FakeBackendRPCIssuer : AuthBackendRPCIssuerProtocol , @ unchecked Sendable {
2726 /** @property requestURL
2827 @brief The URL which was requested.
2928 */
@@ -77,8 +76,8 @@ class FakeBackendRPCIssuer: AuthBackendRPCIssuer {
7776 var secureTokenErrorString : String ?
7877 var recaptchaSiteKey = " unset recaptcha siteKey "
7978
80- override func asyncCallToURL< T> ( with request: T , body: Data ? ,
81- contentType: String ) async -> ( Data ? , Error ? )
79+ func asyncCallToURL< T> ( with request: T , body: Data ? ,
80+ contentType: String ) async -> ( Data ? , Error ? )
8281 where T: FirebaseAuth . AuthRPCRequest {
8382 return await withCheckedContinuation { continuation in
8483 self . asyncCallToURL ( with: request, body: body, contentType: contentType) { data, error in
@@ -172,7 +171,7 @@ class FakeBackendRPCIssuer: AuthBackendRPCIssuer {
172171 }
173172
174173 func respond( serverErrorMessage errorMessage: String , error: NSError ) throws {
175- let _ = try respond ( withJSON: [ " error " : [ " message " : errorMessage] ] , error: error)
174+ _ = try respond ( withJSON: [ " error " : [ " message " : errorMessage] ] , error: error)
176175 }
177176
178177 @discardableResult func respond( underlyingErrorMessage errorMessage: String ,
0 commit comments