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" |
11 | 11 |
12 // Some enhancements to OCMock to make it easier to write mocks. | 12 // Some enhancements to OCMock to make it easier to write mocks. |
13 // Pointers to objects still have to be handled with | 13 // Pointers to objects still have to be handled with |
14 // - (id)andReturnValue:OCMOCK_VALUE(blah) | 14 // - (id)andReturnValue:OCMOCK_VALUE(blah) |
15 // to keep the types working correctly. | 15 // to keep the types working correctly. |
16 @interface OCMockRecorder(CrExtensions) | 16 @interface OCMStubRecorder(CrExtensions) |
17 - (id)andReturnChar:(char)value; | 17 - (id)andReturnChar:(char)value; |
18 - (id)andReturnUnsignedChar:(unsigned char)value; | 18 - (id)andReturnUnsignedChar:(unsigned char)value; |
19 - (id)andReturnShort:(short)value; | 19 - (id)andReturnShort:(short)value; |
20 - (id)andReturnUnsignedShort:(unsigned short)value; | 20 - (id)andReturnUnsignedShort:(unsigned short)value; |
21 - (id)andReturnInt:(int)value; | 21 - (id)andReturnInt:(int)value; |
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; |
(...skipping 17 matching lines...) Expand all Loading... |
44 Protocol* protocol_; | 44 Protocol* protocol_; |
45 } | 45 } |
46 - (id)initWithProtocol:(Protocol*)protocol; | 46 - (id)initWithProtocol:(Protocol*)protocol; |
47 @end | 47 @end |
48 | 48 |
49 @interface OCMArg(CrExtensions) | 49 @interface OCMArg(CrExtensions) |
50 + (id)conformsToProtocol:(Protocol*)protocol; | 50 + (id)conformsToProtocol:(Protocol*)protocol; |
51 @end | 51 @end |
52 | 52 |
53 #endif // THIRD_PARTY_OCMOCK_OCMOCK_EXTENSIONS_H_ | 53 #endif // THIRD_PARTY_OCMOCK_OCMOCK_EXTENSIONS_H_ |
OLD | NEW |