diff options
author | Jesse Bounds <jesse@rebounds.net> | 2016-09-01 16:49:30 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-09-01 16:49:30 -0700 |
commit | 0c4e51adf8f92fd0d1b00635bdd6c8fe4d3a66b2 (patch) | |
tree | 69da5fdd67ffd45ea124b43efecb15897cc15f46 /platform/ios/test | |
parent | 5e8e00561dfbe486d4a61fe86755687105c66102 (diff) | |
download | qtlocation-mapboxgl-0c4e51adf8f92fd0d1b00635bdd6c8fe4d3a66b2.tar.gz |
[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.
Diffstat (limited to 'platform/ios/test')
-rw-r--r-- | platform/ios/test/MGLAnnotationViewTests.m | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/platform/ios/test/MGLAnnotationViewTests.m b/platform/ios/test/MGLAnnotationViewTests.m index 65d7b3d35e..59f6956a95 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<MGLCalloutView> @property (nonatomic) BOOL didCallDismissCalloutAnimated; +@property (nonatomic, strong) id <MGLAnnotation> representedObject; +@property (nonatomic, strong) UIView *leftAccessoryView; +@property (nonatomic, strong) UIView *rightAccessoryView; +@property (nonatomic, weak) id<MGLCalloutViewDelegate> 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 <MGLMapViewDelegate> |