diff options
Diffstat (limited to 'third_party/ocmock/OCMockObject.h')
-rw-r--r-- | third_party/ocmock/OCMockObject.h | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/third_party/ocmock/OCMockObject.h b/third_party/ocmock/OCMockObject.h new file mode 100644 index 0000000..a334b57 --- /dev/null +++ b/third_party/ocmock/OCMockObject.h @@ -0,0 +1,41 @@ +//--------------------------------------------------------------------------------------- +// $Id: OCMockObject.h 52 2009-08-14 07:21:10Z erik $ +// Copyright (c) 2004-2008 by Mulle Kybernetik. See License file for details. +//--------------------------------------------------------------------------------------- + +#import <Foundation/Foundation.h> + +@interface OCMockObject : NSProxy +{ + BOOL isNice; + BOOL expectationOrderMatters; + NSMutableArray *recorders; + NSMutableArray *expectations; + NSMutableArray *exceptions; +} + ++ (id)mockForClass:(Class)aClass; ++ (id)mockForProtocol:(Protocol *)aProtocol; ++ (id)partialMockForObject:(NSObject *)anObject; + ++ (id)niceMockForClass:(Class)aClass; ++ (id)niceMockForProtocol:(Protocol *)aProtocol; + ++ (id)observerMock; + +- (id)init; + +- (void)setExpectationOrderMatters:(BOOL)flag; + +- (id)stub; +- (id)expect; + +- (void)verify; + +// internal use only + +- (id)getNewRecorder; +- (BOOL)handleInvocation:(NSInvocation *)anInvocation; +- (void)handleUnRecordedInvocation:(NSInvocation *)anInvocation; + +@end |