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

Side by Side Diff: third_party/ocmock/OCMock/OCMBlockCaller.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: OCMBlockCaller.m 57 2010-07-19 06:14:27Z erik $ 2 //» $Id$
3 // Copyright (c) 2010 by Mulle Kybernetik. See License file for details. 3 // Copyright (c) 2010 by Mulle Kybernetik. See License file for details.
4 //------------------------------------------------------------------------------ --------- 4 //------------------------------------------------------------------------------ ---------
5 5
6 #import "OCMBlockCaller.h" 6 #import "OCMBlockCaller.h"
7 7
8 #if NS_BLOCKS_AVAILABLE 8 #if NS_BLOCKS_AVAILABLE
9 9
10 @implementation OCMBlockCaller 10 @implementation OCMBlockCaller
11 11
12 -(id)initWithCallBlock:(void (^)(NSInvocation *))theBlock 12 -(id)initWithCallBlock:(void (^)(NSInvocation *))theBlock
13 { 13 {
14 » [super init]; 14 » self = [super init];
15 block = [theBlock copy]; 15 block = [theBlock copy];
16 return self; 16 return self;
17 } 17 }
18 18
19 -(void)dealloc 19 -(void)dealloc
20 { 20 {
21 [block release]; 21 [block release];
22 [super dealloc]; 22 [super dealloc];
23 } 23 }
24 24
25 - (void)handleInvocation:(NSInvocation *)anInvocation 25 - (void)handleInvocation:(NSInvocation *)anInvocation
26 { 26 {
27 block(anInvocation); 27 block(anInvocation);
28 } 28 }
29 29
30 @end 30 @end
31 31
32 #endif 32 #endif
OLDNEW
« no previous file with comments | « third_party/ocmock/OCMock/OCMBlockCaller.h ('k') | third_party/ocmock/OCMock/OCMBoxedReturnValueProvider.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698