29 lines
578 B
Swift
29 lines
578 B
Swift
//
|
|
// Copyright 2024 Signal Messenger, LLC
|
|
// SPDX-License-Identifier: AGPL-3.0-only
|
|
//
|
|
|
|
import Foundation
|
|
|
|
#if TESTABLE_BUILD
|
|
|
|
open class MockAttachmentThumbnailService: AttachmentThumbnailService {
|
|
|
|
public init() {}
|
|
|
|
open func thumbnailImage(
|
|
for attachmentStream: AttachmentStream,
|
|
quality: AttachmentThumbnailQuality
|
|
) async -> UIImage? {
|
|
return nil
|
|
}
|
|
|
|
open func thumbnailImageSync(
|
|
for attachmentStream: AttachmentStream,
|
|
quality: AttachmentThumbnailQuality
|
|
) -> UIImage? {
|
|
return nil
|
|
}
|
|
}
|
|
|
|
#endif
|