Update mojo sdk to rev 1dc8a9a5db73d3718d99917fadf31f5fb2ebad4f
[chromium-blink-merge.git] / third_party / ocmock / OCMock / OCPartialMockRecorder.m
blobf40cb7ce67b8053b42c496ec27804cf793a3c7e7
1 //---------------------------------------------------------------------------------------
2 //  $Id$
3 //  Copyright (c) 2009-2010 by Mulle Kybernetik. See License file for details.
4 //---------------------------------------------------------------------------------------
6 #import "OCPartialMockObject.h"
7 #import "OCMRealObjectForwarder.h"
8 #import "OCPartialMockRecorder.h"
11 @implementation OCPartialMockRecorder
13 - (id)andForwardToRealObject
15         [invocationHandlers addObject:[[[OCMRealObjectForwarder alloc] init] autorelease]];
16         return self;
20 - (void)forwardInvocation:(NSInvocation *)anInvocation
22         [super forwardInvocation:anInvocation];
23         // not as clean as I'd wish...
24         [(OCPartialMockObject *)signatureResolver setupForwarderForSelector:[anInvocation selector]];
27 @end