[Session restore] Rename group name Enabled to Restore.
[chromium-blink-merge.git] / third_party / ocmock / OCMock / OCMArg.h
blob669c094878682b0ff1b0e99a6d5fea9887dfca41
1 //---------------------------------------------------------------------------------------
2 // $Id$
3 // Copyright (c) 2009-2010 by Mulle Kybernetik. See License file for details.
4 //---------------------------------------------------------------------------------------
6 #import <Foundation/Foundation.h>
8 @interface OCMArg : NSObject
10 // constraining arguments
12 + (id)any;
13 + (void *)anyPointer;
14 + (id)isNil;
15 + (id)isNotNil;
16 + (id)isNotEqual:(id)value;
17 + (id)checkWithSelector:(SEL)selector onObject:(id)anObject;
18 #if NS_BLOCKS_AVAILABLE
19 + (id)checkWithBlock:(BOOL (^)(id))block;
20 #endif
22 // manipulating arguments
24 + (id *)setTo:(id)value;
26 // internal use only
28 + (id)resolveSpecialValues:(NSValue *)value;
30 @end
32 #define OCMOCK_ANY [OCMArg any]
33 #define OCMOCK_VALUE(variable) [NSValue value:&variable withObjCType:@encode(__typeof__(variable))]