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

Side by Side Diff: third_party/ocmock/ocmock_extensions.h

Issue 2626723004: Update OCMock to 3e193f3c2d4ea4ada63df54c8ce98e7ea4cf768f (Closed)
Patch Set: Created 3 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
« no previous file with comments | « third_party/ocmock/README.chromium ('k') | third_party/ocmock/ocmock_extensions.mm » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « third_party/ocmock/README.chromium ('k') | third_party/ocmock/ocmock_extensions.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698