diff options
Diffstat (limited to 'platform/ios/Integration Test Harness/MGLTestingSupport.m')
-rw-r--r-- | platform/ios/Integration Test Harness/MGLTestingSupport.m | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/platform/ios/Integration Test Harness/MGLTestingSupport.m b/platform/ios/Integration Test Harness/MGLTestingSupport.m new file mode 100644 index 0000000000..6a0f058cf9 --- /dev/null +++ b/platform/ios/Integration Test Harness/MGLTestingSupport.m @@ -0,0 +1,14 @@ +#import "MGLTestingSupport.h" + +NSString * const MGLTestingSupportMapViewID = @"MGLTestingMapViewID"; + +const MGLTestingSupportNotification MGLTestingSupportNotificationMapViewStyleLoaded = @"com.mapbox.examples.mapview-style-loaded"; +const MGLTestingSupportNotification MGLTestingSupportNotificationMapViewRendered = @"com.mapbox.examples.mapview-rendered"; +const MGLTestingSupportNotification MGLTestingSupportNotificationMapViewRegionWillChange = @"com.mapbox.examples.mapview-region-will-change"; +const MGLTestingSupportNotification MGLTestingSupportNotificationMapViewRegionIsChanging = @"com.mapbox.examples.mapview-region-is-changing"; +const MGLTestingSupportNotification MGLTestingSupportNotificationMapViewRegionDidChanged = @"com.mapbox.examples.mapview-region-did-changed"; + +void testingSupportPostNotification(MGLTestingSupportNotification name) { + CFNotificationCenterRef center = CFNotificationCenterGetDarwinNotifyCenter(); + CFNotificationCenterPostNotification(center, (CFNotificationName)name, NULL, NULL, true); +} |