26 lines
597 B
Objective-C
26 lines
597 B
Objective-C
//
|
|
// Copyright (c) 2021 Open Whisper Systems. All rights reserved.
|
|
//
|
|
|
|
#import <SignalServiceKit/MessageSender.h>
|
|
|
|
NS_ASSUME_NONNULL_BEGIN
|
|
|
|
#ifdef TESTABLE_BUILD
|
|
|
|
typedef void (^messageBlock)(TSOutgoingMessage *);
|
|
|
|
@interface OWSFakeMessageSender : MessageSender
|
|
|
|
@property (nonatomic, nullable) NSError *stubbedFailingError;
|
|
|
|
@property (nonatomic, nullable) messageBlock sendMessageWasCalledBlock;
|
|
@property (nonatomic, nullable) messageBlock sendAttachmentWasCalledBlock;
|
|
@property (nonatomic, nullable) messageBlock sendTemporaryAttachmentWasCalledBlock;
|
|
|
|
@end
|
|
|
|
#endif
|
|
|
|
NS_ASSUME_NONNULL_END
|