OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef THIRD_PARTY_OCMOCK_OCMOCK_EXTENSIONS_H_ | 5 #ifndef THIRD_PARTY_OCMOCK_OCMOCK_EXTENSIONS_H_ |
6 #define THIRD_PARTY_OCMOCK_OCMOCK_EXTENSIONS_H_ | 6 #define THIRD_PARTY_OCMOCK_OCMOCK_EXTENSIONS_H_ |
7 | 7 |
8 #import <Foundation/Foundation.h> | 8 #import <Foundation/Foundation.h> |
9 | 9 |
10 #import "third_party/ocmock/OCMock/OCMock.h" | 10 #import "third_party/ocmock/OCMock/OCMock.h" |
(...skipping 11 matching lines...) Expand all Loading... |
22 - (id)andReturnUnsignedInt:(unsigned int)value; | 22 - (id)andReturnUnsignedInt:(unsigned int)value; |
23 - (id)andReturnLong:(long)value; | 23 - (id)andReturnLong:(long)value; |
24 - (id)andReturnUnsignedLong:(unsigned long)value; | 24 - (id)andReturnUnsignedLong:(unsigned long)value; |
25 - (id)andReturnLongLong:(long long)value; | 25 - (id)andReturnLongLong:(long long)value; |
26 - (id)andReturnUnsignedLongLong:(unsigned long long)value; | 26 - (id)andReturnUnsignedLongLong:(unsigned long long)value; |
27 - (id)andReturnFloat:(float)value; | 27 - (id)andReturnFloat:(float)value; |
28 - (id)andReturnDouble:(double)value; | 28 - (id)andReturnDouble:(double)value; |
29 - (id)andReturnBool:(BOOL)value; | 29 - (id)andReturnBool:(BOOL)value; |
30 - (id)andReturnInteger:(NSInteger)value; | 30 - (id)andReturnInteger:(NSInteger)value; |
31 - (id)andReturnUnsignedInteger:(NSUInteger)value; | 31 - (id)andReturnUnsignedInteger:(NSUInteger)value; |
| 32 #if !TARGET_OS_IPHONE |
32 - (id)andReturnNSRect:(NSRect)rect; | 33 - (id)andReturnNSRect:(NSRect)rect; |
33 - (id)andReturnCGRect:(CGRect)rect; | 34 - (id)andReturnCGRect:(CGRect)rect; |
34 - (id)andReturnNSPoint:(NSPoint)point; | 35 - (id)andReturnNSPoint:(NSPoint)point; |
35 - (id)andReturnCGPoint:(CGPoint)point; | 36 - (id)andReturnCGPoint:(CGPoint)point; |
| 37 #endif |
36 @end | 38 @end |
37 | 39 |
38 // A constraint for verifying that something conforms to a protocol. | 40 // A constraint for verifying that something conforms to a protocol. |
39 @interface cr_OCMConformToProtocolConstraint : OCMConstraint { | 41 @interface cr_OCMConformToProtocolConstraint : OCMConstraint { |
40 @private | 42 @private |
41 Protocol* protocol_; | 43 Protocol* protocol_; |
42 } | 44 } |
43 - (id)initWithProtocol:(Protocol*)protocol; | 45 - (id)initWithProtocol:(Protocol*)protocol; |
44 @end | 46 @end |
45 | 47 |
46 @interface OCMArg(CrExtensions) | 48 @interface OCMArg(CrExtensions) |
47 + (id)conformsToProtocol:(Protocol*)protocol; | 49 + (id)conformsToProtocol:(Protocol*)protocol; |
48 @end | 50 @end |
49 | 51 |
50 #endif // THIRD_PARTY_OCMOCK_OCMOCK_EXTENSIONS_H_ | 52 #endif // THIRD_PARTY_OCMOCK_OCMOCK_EXTENSIONS_H_ |
OLD | NEW |