summaryrefslogtreecommitdiff
path: root/SmartDeviceLinkTests/TestSubscribeButtonObserver.h
blob: f2cde7318669e38dc0267d75888c77f1cd49141c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
//
//  TestSubscribeButtonObserver.h
//  SmartDeviceLink
//
//  Created by Nicole on 6/22/20.
//  Copyright © 2020 smartdevicelink. All rights reserved.
//

#import <Foundation/Foundation.h>

#import "SDLSubscribeButton.h"

NS_ASSUME_NONNULL_BEGIN

@interface TestSubscribeButtonObserver : NSObject

@property (assign, nonatomic) NSUInteger selectorCalledCount;
@property (strong, nonatomic, nullable) NSMutableArray<SDLButtonName> *buttonNamesReceived;
@property (strong, nonatomic, nullable) NSMutableArray<NSError *> *buttonErrorsReceived;
@property (strong, nonatomic, nullable) NSMutableArray<SDLOnButtonEvent *> *buttonEventsReceived;
@property (strong, nonatomic, nullable) NSMutableArray<SDLOnButtonPress *> *buttonPressesReceived;

- (void)buttonPressEvent;
- (void)buttonPressEventWithButtonName:(SDLButtonName)buttonName;
- (void)buttonPressEventWithButtonName:(SDLButtonName)buttonName error:(NSError *)error;
- (void)buttonPressEventWithButtonName:(SDLButtonName)buttonName error:(NSError *)error buttonPress:(SDLOnButtonPress *)buttonPress;
- (void)buttonPressEventWithButtonName:(SDLButtonName)buttonName error:(NSError *)error buttonPress:(SDLOnButtonPress *)buttonPress buttonEvent:(SDLOnButtonEvent *)buttonEvent;

/// An invalid selector with too many parameters
- (void)buttonPressEventWithButtonName:(SDLButtonName)buttonName error:(NSError *)error buttonPress:(SDLOnButtonPress *)buttonPress buttonEvent:(SDLOnButtonEvent *)buttonEvent extraParameter:(BOOL)extraParameter;

@end

NS_ASSUME_NONNULL_END