Update mojo sdk to rev 1dc8a9a5db73d3718d99917fadf31f5fb2ebad4f
[chromium-blink-merge.git] / third_party / ocmock / OCMock / OCMBlockCaller.m
blob439d885d37f58e82390e209fa45fbc4e9f9a689f
1 //---------------------------------------------------------------------------------------
2 //      $Id$
3 //  Copyright (c) 2010 by Mulle Kybernetik. See License file for details.
4 //---------------------------------------------------------------------------------------
6 #import "OCMBlockCaller.h"
8 #if NS_BLOCKS_AVAILABLE
10 @implementation OCMBlockCaller
12 -(id)initWithCallBlock:(void (^)(NSInvocation *))theBlock 
14         self = [super init];
15         block = [theBlock copy];
16         return self;
19 -(void)dealloc 
21         [block release];
22         [super dealloc];
25 - (void)handleInvocation:(NSInvocation *)anInvocation
27         block(anInvocation);
30 @end
32 #endif