From 0c4e51adf8f92fd0d1b00635bdd6c8fe4d3a66b2 Mon Sep 17 00:00:00 2001 From: Jesse Bounds Date: Thu, 1 Sep 2016 16:49:30 -0700 Subject: [PATCH] [ios] Silence MGLCalloutView related warnings in tests (#6231) The annotation view test uses a fake MGLTestCalloutView that declares conformance to the MGLCalloutView protocol. However, several properties and a method were not implemented in the test which caused several warnings that were visible if you compiled the SDK tests. This change stubs out the properties and method so the warnings go away. --- platform/ios/test/MGLAnnotationViewTests.m | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/platform/ios/test/MGLAnnotationViewTests.m b/platform/ios/test/MGLAnnotationViewTests.m index 65d7b3d35..59f6956a9 100644 --- a/platform/ios/test/MGLAnnotationViewTests.m +++ b/platform/ios/test/MGLAnnotationViewTests.m @@ -23,6 +23,10 @@ static NSString * const MGLTestAnnotationReuseIdentifer = @"MGLTestAnnotationReu @interface MGLTestCalloutView: UIView @property (nonatomic) BOOL didCallDismissCalloutAnimated; +@property (nonatomic, strong) id representedObject; +@property (nonatomic, strong) UIView *leftAccessoryView; +@property (nonatomic, strong) UIView *rightAccessoryView; +@property (nonatomic, weak) id delegate; @end @implementation MGLTestCalloutView @@ -32,6 +36,8 @@ static NSString * const MGLTestAnnotationReuseIdentifer = @"MGLTestAnnotationReu _didCallDismissCalloutAnimated = YES; } +- (void)presentCalloutFromRect:(CGRect)rect inView:(UIView *)view constrainedToView:(UIView *)constrainedView animated:(BOOL)animated { } + @end @interface MGLAnnotationViewTests : XCTestCase