Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(7)

Side by Side Diff: third_party/ocmock/OCMock/OCMIndirectReturnValueProvider.m

Issue 9240023: Roll OCMock r77:7f521db0628086185123666b0979e48d6ecaeac1. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 //------------------------------------------------------------------------------ --------- 1 //------------------------------------------------------------------------------ ---------
2 // $Id: OCMIndirectReturnValueProvider.m 54 2009-08-18 06:27:36Z erik $ 2 // $Id$
3 // Copyright (c) 2009 by Mulle Kybernetik. See License file for details. 3 // Copyright (c) 2009 by Mulle Kybernetik. See License file for details.
4 //------------------------------------------------------------------------------ --------- 4 //------------------------------------------------------------------------------ ---------
5 5
6 #import "NSMethodSignature+OCMAdditions.h" 6 #import "NSMethodSignature+OCMAdditions.h"
7 #import "OCMIndirectReturnValueProvider.h" 7 #import "OCMIndirectReturnValueProvider.h"
8 8
9 9
10 @implementation OCMIndirectReturnValueProvider 10 @implementation OCMIndirectReturnValueProvider
11 11
12 - (id)initWithProvider:(id)aProvider andSelector:(SEL)aSelector 12 - (id)initWithProvider:(id)aProvider andSelector:(SEL)aSelector
13 { 13 {
14 » [super init]; 14 » self = [super init];
15 provider = [aProvider retain]; 15 provider = [aProvider retain];
16 selector = aSelector; 16 selector = aSelector;
17 return self; 17 return self;
18 } 18 }
19 19
20 - (void)dealloc 20 - (void)dealloc
21 { 21 {
22 [provider release]; 22 [provider release];
23 [super dealloc]; 23 [super dealloc];
24 } 24 }
25 25
26 - (void)handleInvocation:(NSInvocation *)anInvocation 26 - (void)handleInvocation:(NSInvocation *)anInvocation
27 { 27 {
28 [anInvocation setTarget:provider]; 28 [anInvocation setTarget:provider];
29 [anInvocation setSelector:selector]; 29 [anInvocation setSelector:selector];
30 [anInvocation invoke]; 30 [anInvocation invoke];
31 } 31 }
32 32
33 @end 33 @end
OLDNEW
« no previous file with comments | « third_party/ocmock/OCMock/OCMIndirectReturnValueProvider.h ('k') | third_party/ocmock/OCMock/OCMNotificationPoster.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698