@@ -17,13 +17,12 @@ import XCTest
17
17
18
18
@testable import FirebaseAuth
19
19
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.
25
24
@available ( iOS 13 , tvOS 13 , macOS 10 . 15 , macCatalyst 13 , watchOS 7 , * )
26
- class FakeBackendRPCIssuer : AuthBackendRPCIssuer {
25
+ final class FakeBackendRPCIssuer : AuthBackendRPCIssuerProtocol , @ unchecked Sendable {
27
26
/** @property requestURL
28
27
@brief The URL which was requested.
29
28
*/
@@ -77,8 +76,8 @@ class FakeBackendRPCIssuer: AuthBackendRPCIssuer {
77
76
var secureTokenErrorString : String ?
78
77
var recaptchaSiteKey = " unset recaptcha siteKey "
79
78
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 ? )
82
81
where T: FirebaseAuth . AuthRPCRequest {
83
82
return await withCheckedContinuation { continuation in
84
83
self . asyncCallToURL ( with: request, body: body, contentType: contentType) { data, error in
@@ -172,7 +171,7 @@ class FakeBackendRPCIssuer: AuthBackendRPCIssuer {
172
171
}
173
172
174
173
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)
176
175
}
177
176
178
177
@discardableResult func respond( underlyingErrorMessage errorMessage: String ,
0 commit comments