FIRFunctionsFake.m 1.6 KB

123456789101112131415161718192021222324252627282930313233343536
  1. // Copyright 2021 Google LLC
  2. //
  3. // Licensed under the Apache License, Version 2.0 (the "License");
  4. // you may not use this file except in compliance with the License.
  5. // You may obtain a copy of the License at
  6. //
  7. // http://www.apache.org/licenses/LICENSE-2.0
  8. //
  9. // Unless required by applicable law or agreed to in writing, software
  10. // distributed under the License is distributed on an "AS IS" BASIS,
  11. // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12. // See the License for the specific language governing permissions and
  13. // limitations under the License.
  14. #import "FirebaseTestingSupport/Functions/Sources/Public/FirebaseFunctionsTestingSupport/FIRFunctionsFake.h"
  15. #import "FirebaseTestingSupport/Functions/Sources/Public/FirebaseFunctionsTestingSupport/FIRFunctions+Testing.h"
  16. #import "SharedTestUtilities/FIRAuthInteropFake.h"
  17. #import "SharedTestUtilities/FIRMessagingInteropFake.h"
  18. @implementation FIRFunctionsFake
  19. - (instancetype)initWithProjectID:(NSString *)projectID
  20. region:(NSString *)region
  21. customDomain:(nullable NSString *)customDomain
  22. withToken:(nullable NSString *)token {
  23. return [super initWithProjectID:projectID
  24. region:region
  25. customDomain:customDomain
  26. auth:[[FIRAuthInteropFake alloc] initWithToken:token
  27. userID:nil
  28. error:nil]
  29. messaging:[[FIRMessagingInteropFake alloc] init]
  30. appCheck:nil];
  31. }
  32. @end