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

Unified Diff: ios/showcase/common/protocol_alerter.mm

Issue 2827163002: [Payment Request] Improved matching for the UIAlertView in showcase egtests (Closed)
Patch Set: Initial Created 3 years, 8 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: ios/showcase/common/protocol_alerter.mm
diff --git a/ios/showcase/common/protocol_alerter.mm b/ios/showcase/common/protocol_alerter.mm
index e506e9290f2f8ecec361b1cede0646752b8a695e..759b76ffde4bba67395271afdef5ca298f163794 100644
--- a/ios/showcase/common/protocol_alerter.mm
+++ b/ios/showcase/common/protocol_alerter.mm
@@ -161,6 +161,8 @@ char kAssociatedProtocolNameKey;
return [self objectDescriptionAtIndex:index];
case 'q':
return [self longLongDescriptionAtIndex:index];
+ case 'Q':
+ return [self unsignedLongLongDescriptionAtIndex:index];
// Add cases as needed here.
default:
return [NSString stringWithFormat:@"<Unknown Type:%s>", type];
@@ -210,4 +212,13 @@ char kAssociatedProtocolNameKey;
return [NSString stringWithFormat:@"%lld", value];
}
+// Returns a string describing an argument at |index| that is known to be an
+// unsigned long long.
+- (NSString*)unsignedLongLongDescriptionAtIndex:(NSInteger)index {
+ unsigned long long value;
+
+ [self getArgument:&value atIndex:index];
+ return [NSString stringWithFormat:@"%llu", value];
+}
+
@end

Powered by Google App Engine
This is Rietveld 408576698