blob: fea7b867f76f8c1205f1d7e7260d04a131ac304f (
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
|
//---------------------------------------------------------------------------------------
// $Id: OCMockRecorder.h 50 2009-07-16 06:48:19Z erik $
// Copyright (c) 2004-2009 by Mulle Kybernetik. See License file for details.
//---------------------------------------------------------------------------------------
#import <Foundation/Foundation.h>
@interface OCMockRecorder : NSProxy
{
id signatureResolver;
NSInvocation *recordedInvocation;
NSMutableArray *invocationHandlers;
}
- (id)initWithSignatureResolver:(id)anObject;
- (BOOL)matchesInvocation:(NSInvocation *)anInvocation;
- (void)releaseInvocation;
- (id)andReturn:(id)anObject;
- (id)andReturnValue:(NSValue *)aValue;
- (id)andThrow:(NSException *)anException;
- (id)andPost:(NSNotification *)aNotification;
- (id)andCall:(SEL)selector onObject:(id)anObject;
- (NSArray *)invocationHandlers;
@end
|