summaryrefslogtreecommitdiffstats
path: root/third_party
diff options
context:
space:
mode:
Diffstat (limited to 'third_party')
-rw-r--r--third_party/ocmock/ocmock_extensions.h1
-rw-r--r--third_party/ocmock/ocmock_extensions.mm2
2 files changed, 3 insertions, 0 deletions
diff --git a/third_party/ocmock/ocmock_extensions.h b/third_party/ocmock/ocmock_extensions.h
index 2ca182c..d817cbd 100644
--- a/third_party/ocmock/ocmock_extensions.h
+++ b/third_party/ocmock/ocmock_extensions.h
@@ -30,6 +30,7 @@
- (id)andReturnInteger:(NSInteger)value;
- (id)andReturnUnsignedInteger:(NSUInteger)value;
#if !TARGET_OS_IPHONE
+- (id)andReturnCGFloat:(CGFloat)value;
- (id)andReturnNSRect:(NSRect)rect;
- (id)andReturnCGRect:(CGRect)rect;
- (id)andReturnNSPoint:(NSPoint)point;
diff --git a/third_party/ocmock/ocmock_extensions.mm b/third_party/ocmock/ocmock_extensions.mm
index 353012e..bcf11b3 100644
--- a/third_party/ocmock/ocmock_extensions.mm
+++ b/third_party/ocmock/ocmock_extensions.mm
@@ -30,6 +30,8 @@ CR_OCMOCK_RETURN_IMPL(Integer, NSInteger);
CR_OCMOCK_RETURN_IMPL(UnsignedInteger, NSUInteger);
#if !TARGET_OS_IPHONE
+CR_OCMOCK_RETURN_IMPL(CGFloat, CGFloat);
+
- (id)andReturnNSRect:(NSRect)rect {
return [self andReturnValue:[NSValue valueWithRect:rect]];
}