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

Unified Diff: third_party/ocmock/ocmock_extensions.mm

Issue 10834362: Support for iOS in OCMock (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 years, 4 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 side-by-side diff with in-line comments
Download patch
Index: third_party/ocmock/ocmock_extensions.mm
diff --git a/third_party/ocmock/ocmock_extensions.mm b/third_party/ocmock/ocmock_extensions.mm
index 14c3a8058e517927eec3413e6f277d7aa2ab7fc3..7f80a79b765d36dd5390d414845466202f1bc5b8 100644
--- a/third_party/ocmock/ocmock_extensions.mm
+++ b/third_party/ocmock/ocmock_extensions.mm
@@ -29,6 +29,7 @@ CR_OCMOCK_RETURN_IMPL(Bool, BOOL);
CR_OCMOCK_RETURN_IMPL(Integer, NSInteger);
CR_OCMOCK_RETURN_IMPL(UnsignedInteger, NSUInteger);
+#if !TARGET_OS_IPHONE
- (id)andReturnNSRect:(NSRect)rect {
return [self andReturnValue:[NSValue valueWithRect:rect]];
}
@@ -44,6 +45,7 @@ CR_OCMOCK_RETURN_IMPL(UnsignedInteger, NSUInteger);
- (id)andReturnCGPoint:(CGPoint)point {
return [self andReturnNSPoint:NSPointFromCGPoint(point)];
}
+#endif // !TARGET_OS_IPHONE
@end
@@ -70,3 +72,4 @@ CR_OCMOCK_RETURN_IMPL(UnsignedInteger, NSUInteger);
}
@end
+
Robert Sesek 2012/08/16 15:53:58 nit: nix extra line
justincohen 2012/08/16 16:17:54 Done.
« third_party/ocmock/ocmock_extensions.h ('K') | « third_party/ocmock/ocmock_extensions.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698