Use bucket parameter in GetIfChanged for support binaries.
[chromium-blink-merge.git] / third_party / ocmock / OCMock / OCMockObject.h
blobebd2ba35e3d5313e2deac7bb59919409181c77e7
1 //---------------------------------------------------------------------------------------
2 // $Id$
3 // Copyright (c) 2004-2008 by Mulle Kybernetik. See License file for details.
4 //---------------------------------------------------------------------------------------
6 #import <Foundation/Foundation.h>
8 @interface OCMockObject : NSProxy
10 BOOL isNice;
11 BOOL expectationOrderMatters;
12 NSMutableArray *recorders;
13 NSMutableArray *expectations;
14 NSMutableArray *rejections;
15 NSMutableArray *exceptions;
18 + (id)mockForClass:(Class)aClass;
19 + (id)mockForProtocol:(Protocol *)aProtocol;
20 + (id)partialMockForObject:(NSObject *)anObject;
22 + (id)niceMockForClass:(Class)aClass;
23 + (id)niceMockForProtocol:(Protocol *)aProtocol;
25 + (id)observerMock;
27 - (id)init;
29 - (void)setExpectationOrderMatters:(BOOL)flag;
31 - (id)stub;
32 - (id)expect;
33 - (id)reject;
35 - (void)verify;
37 // internal use only
39 - (id)getNewRecorder;
40 - (BOOL)handleInvocation:(NSInvocation *)anInvocation;
41 - (void)handleUnRecordedInvocation:(NSInvocation *)anInvocation;
43 @end