Skip to content
Newer
Older
100644 51 lines (37 sloc) 1.38 KB
4f0c627 @allending First release.
authored Jun 13, 2010
1 //
2 // Licensed under the terms in License.txt
3 //
4 // Copyright 2010 Allen Ding. All rights reserved.
5 //
6
7 #import "KiwiConfiguration.h"
419fea1 @lukeredpath Don't load the runtime from absolute path; this will break on Lion in
lukeredpath authored Jul 22, 2011
8 #import <objc/runtime.h>
4f0c627 @allending First release.
authored Jun 13, 2010
9
10 @class KWMessagePattern;
11 @class KWStub;
12
13 #pragma mark -
14 #pragma mark Getting Forwarding Implementations
15
16 IMP KWRegularForwardingImplementation(void);
17 IMP KWStretForwardingImplementation(void);
18 IMP KWForwardingImplementationForMethodEncoding(const char* encoding);
19
20 #pragma mark -
21 #pragma mark Getting Intercept Class Information
22
23 BOOL KWObjectIsClass(id anObject);
24 BOOL KWClassIsInterceptClass(Class aClass);
25 NSString *KWInterceptClassNameForClass(Class aClass);
26 Class KWInterceptClassForCanonicalClass(Class canonicalClass);
27 Class KWRealClassForClass(Class aClass);
28
29 #pragma mark -
30 #pragma mark Enabling Intercepting
31
32 Class KWSetupObjectInterceptSupport(id anObject);
33 void KWSetupMethodInterceptSupport(Class interceptClass, SEL aSelector);
34
e5028c0 @tibr Fixing a bug that crashed the tests when stubbing and spying on an ob…
tibr authored Apr 16, 2012
35 #pragma mark - Managing Stubs & Spies
36 void KWClearStubsAndSpies(void);
37
4f0c627 @allending First release.
authored Jun 13, 2010
38 #pragma mark -
39 #pragma mark Managing Objects Stubs
40
41 void KWAssociateObjectStub(id anObject, KWStub *aStub);
42 void KWClearObjectStubs(id anObject);
43 void KWClearAllObjectStubs(void);
44
45 #pragma mark -
46 #pragma mark Managing Message Spies
47
48 void KWAssociateMessageSpy(id anObject, id aSpy, KWMessagePattern *aMessagePattern);
49 void KWClearObjectSpy(id anObject, id aSpy, KWMessagePattern *aMessagePattern);
50 void KWClearAllMessageSpies(void);
Something went wrong with that request. Please try again.