summaryrefslogtreecommitdiff
path: root/test/ios/LocationMocker/CSSwizzler.h
blob: d0a2cc205cc3e270c172be81c79d99bfce5c0b5d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
//
// Based on gist by Eric Allam
// https://gist.github.com/ericallam/5689235
//

#import <Foundation/Foundation.h>

@interface CSSwizzler : NSObject

+ (void)swizzleClass:(id)cls
  replaceClassMethod:(SEL)origMethodSelector
          withMethod:(SEL)replacementMethodSelector;

+ (void)swizzleClass:(id)cls
       replaceMethod:(SEL)origMethodSelector
          withMethod:(SEL)replacementMethodSelector;

+ (void)swizzleClassOfInstance:(id)inst
                 replaceMethod:(SEL)origMethodSelector
                    withMethod:(SEL)replacementMethodSelector;

@end