diff options
Diffstat (limited to 'Example/Auth/Tests/FIRAuthBackendRPCImplementationTests.m')
-rw-r--r-- | Example/Auth/Tests/FIRAuthBackendRPCImplementationTests.m | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/Example/Auth/Tests/FIRAuthBackendRPCImplementationTests.m b/Example/Auth/Tests/FIRAuthBackendRPCImplementationTests.m index 5930e13..b50e866 100644 --- a/Example/Auth/Tests/FIRAuthBackendRPCImplementationTests.m +++ b/Example/Auth/Tests/FIRAuthBackendRPCImplementationTests.m @@ -19,6 +19,7 @@ #import "FIRAuthErrorUtils.h" #import "FIRAuthInternalErrors.h" #import "FIRAuthBackend.h" +#import "FIRAuthRequestConfiguration.h" #import "FIRAuthRPCRequest.h" #import "FIRAuthRPCResponse.h" #import "FIRFakeBackendRPCIssuer.h" @@ -29,6 +30,11 @@ */ static NSString *const kFakeRequestURL = @"https://www.google.com/"; +/** @var kFakeAPIkey + @brief Used as a fake APIKey for a fake RPC request. We don't test this here. + */ +static NSString *const kFakeAPIkey = @"FAKE_API_KEY"; + /** @var kFakeErrorDomain @brief A value to use for fake @c NSErrors. */ @@ -230,6 +236,12 @@ static NSString *const kTestValue = @"TestValue"; return [NSURL URLWithString:kFakeRequestURL]; } +- (FIRAuthRequestConfiguration *)requestConfiguration { + FIRAuthRequestConfiguration *fakeConfiguration = + [[FIRAuthRequestConfiguration alloc] initWithAPIKey:kFakeAPIkey]; + return fakeConfiguration; +} + - (nullable id)unencodedHTTPRequestBodyWithError:(NSError *_Nullable *_Nullable)error { if (error) { *error = _requestEncodingError; |