1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374 |
- #import <Foundation/Foundation.h>
- @class OCMLocation;
- @class OCMInvocationStub;
- @class OCMStubRecorder;
- @class OCMInvocationMatcher;
- @class OCMInvocationExpectation;
- @interface OCMockObject : NSProxy
- {
- BOOL isNice;
- BOOL expectationOrderMatters;
- NSMutableArray *stubs;
- NSMutableArray *expectations;
- NSMutableArray *exceptions;
- NSMutableArray *invocations;
- }
- + (id)mockForClass:(Class)aClass;
- + (id)mockForProtocol:(Protocol *)aProtocol;
- + (id)partialMockForObject:(NSObject *)anObject;
- + (id)niceMockForClass:(Class)aClass;
- + (id)niceMockForProtocol:(Protocol *)aProtocol;
- + (id)observerMock;
- - (instancetype)init;
- - (void)setExpectationOrderMatters:(BOOL)flag;
- - (id)stub;
- - (id)expect;
- - (id)reject;
- - (id)verify;
- - (id)verifyAtLocation:(OCMLocation *)location;
- - (void)verifyWithDelay:(NSTimeInterval)delay;
- - (void)verifyWithDelay:(NSTimeInterval)delay atLocation:(OCMLocation *)location;
- - (void)stopMocking;
- - (void)addStub:(OCMInvocationStub *)aStub;
- - (void)addExpectation:(OCMInvocationExpectation *)anExpectation;
- - (BOOL)handleInvocation:(NSInvocation *)anInvocation;
- - (void)handleUnRecordedInvocation:(NSInvocation *)anInvocation;
- - (BOOL)handleSelector:(SEL)sel;
- - (void)verifyInvocation:(OCMInvocationMatcher *)matcher;
- - (void)verifyInvocation:(OCMInvocationMatcher *)matcher atLocation:(OCMLocation *)location;
- @end
|