FIRCLSMockReportManager.m 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. // Copyright 2019 Google
  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 "Crashlytics/UnitTests/Mocks/FIRCLSMockReportManager.h"
  15. #import "Crashlytics/Crashlytics/Components/FIRCLSContext.h"
  16. #import "Crashlytics/Crashlytics/Controllers/FIRCLSExistingReportManager.h"
  17. #import "Crashlytics/UnitTests/Mocks/FIRCLSMockReportUploader.h"
  18. #import "FirebaseInstallations/Source/Library/Private/FirebaseInstallationsInternal.h"
  19. @implementation FIRCLSMockReportManager
  20. - (BOOL)startCrashReporterWithProfilingReport:(FIRCLSInternalReport *)report {
  21. NSLog(@"Crash Reporting system disabled for testing");
  22. return YES;
  23. }
  24. - (BOOL)installCrashReportingHandlers:(FIRCLSContextInitData *)initData {
  25. return YES;
  26. // This actually installs crash handlers, there is no need to do that during testing.
  27. }
  28. - (void)crashReportingSetupCompleted {
  29. // This stuff does operations on the main thread, which we don't want during tests.
  30. }
  31. @end