FIRCLSMockReportManager.m 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  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)startCrashReporterWithProfilingMark:(FIRCLSProfileMark)mark
  21. report:(FIRCLSInternalReport *)report {
  22. NSLog(@"Crash Reporting system disabled for testing");
  23. return YES;
  24. }
  25. - (BOOL)installCrashReportingHandlers:(FIRCLSContextInitData *)initData {
  26. return YES;
  27. // This actually installs crash handlers, there is no need to do that during testing.
  28. }
  29. - (void)crashReportingSetupCompleted {
  30. // This stuff does operations on the main thread, which we don't want during tests.
  31. }
  32. @end