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

Unified Diff: third_party/ocmock/OCMock/NSInvocation+OCMAdditions.m

Issue 177373009: Compatibility fix for arm64 on iOS (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@ocmock.0
Patch Set: Rebase Created 6 years, 10 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
« no previous file with comments | « no previous file | third_party/ocmock/OCMock/OCMBoxedReturnValueProvider.m » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/ocmock/OCMock/NSInvocation+OCMAdditions.m
diff --git a/third_party/ocmock/OCMock/NSInvocation+OCMAdditions.m b/third_party/ocmock/OCMock/NSInvocation+OCMAdditions.m
index 41579583a4c3add0536820a203172bb4e87c68e1..25d51885bdddc40780f9c6d570befb68a5f9510c 100644
--- a/third_party/ocmock/OCMock/NSInvocation+OCMAdditions.m
+++ b/third_party/ocmock/OCMock/NSInvocation+OCMAdditions.m
@@ -161,6 +161,7 @@
switch(*argType)
{
case '@': return [self objectDescriptionAtIndex:argIndex];
+ case 'B': return [self boolDescriptionAtIndex:argIndex];
case 'c': return [self charDescriptionAtIndex:argIndex];
case 'C': return [self unsignedCharDescriptionAtIndex:argIndex];
case 'i': return [self intDescriptionAtIndex:argIndex];
@@ -197,6 +198,14 @@
return [object description];
}
+- (NSString *)boolDescriptionAtIndex:(int)anInt
+{
+ bool value;
+
+ [self getArgument:&value atIndex:anInt];
+ return value ? @"YES" : @"NO";
+}
+
- (NSString *)charDescriptionAtIndex:(int)anInt
{
unsigned char buffer[128];
« no previous file with comments | « no previous file | third_party/ocmock/OCMock/OCMBoxedReturnValueProvider.m » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698