FIRCLSMockMXDiskWriteExceptionDiagnostic.m 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  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 "Crashlytics/UnitTests/Mocks/FIRCLSMockMXDiskWriteExceptionDiagnostic.h"
  15. #if CLS_METRICKIT_SUPPORTED
  16. @interface FIRCLSMockMXDiskWriteExceptionDiagnostic ()
  17. @property(readwrite, strong, nonnull) FIRCLSMockMXCallStackTree *callStackTree;
  18. @property(readwrite, strong, nonnull) NSMeasurement<NSUnitInformationStorage *> *totalWritesCaused;
  19. @property(readwrite, strong, nonnull) FIRCLSMockMXMetadata *metaData;
  20. @property(readwrite, strong, nonnull) NSString *applicationVersion;
  21. @end
  22. @implementation FIRCLSMockMXDiskWriteExceptionDiagnostic
  23. @synthesize callStackTree = _callStackTree;
  24. @synthesize totalWritesCaused = _totalWritesCaused;
  25. @synthesize metaData = _metaData;
  26. @synthesize applicationVersion = _applicationVersion;
  27. - (instancetype)initWithCallStackTree:(FIRCLSMockMXCallStackTree *)callStackTree
  28. totalWritesCaused:(NSMeasurement<NSUnitInformationStorage *> *)totalWritesCaused
  29. metaData:(FIRCLSMockMXMetadata *)metaData
  30. applicationVersion:(NSString *)applicationVersion {
  31. self = [super init];
  32. _callStackTree = callStackTree;
  33. _totalWritesCaused = totalWritesCaused;
  34. _applicationVersion = applicationVersion;
  35. _metaData = metaData;
  36. return self;
  37. }
  38. @end
  39. #endif