bool setEnabled = false;
bool getEnabled;
int nRet, nLoopCount = 0;
- maps_view_gesture_e eMapViewGestureType[] = {MAPS_VIEW_GESTURE_NONE, MAPS_VIEW_GESTURE_SCROLL, MAPS_VIEW_GESTURE_ZOOM, MAPS_VIEW_GESTURE_TAP, MAPS_VIEW_GESTURE_DOUBLE_TAP, MAPS_VIEW_GESTURE_2_FINGER_TAP, /* MAPS_VIEW_GESTURE_SINGLE_FINGER_ZOOM,*/ MAPS_VIEW_GESTURE_ROTATE, MAPS_VIEW_GESTURE_LONG_PRESS};
+ maps_view_gesture_e eMapViewGestureType[] = {MAPS_VIEW_GESTURE_NONE, MAPS_VIEW_GESTURE_SCROLL, MAPS_VIEW_GESTURE_ZOOM, MAPS_VIEW_GESTURE_TAP, MAPS_VIEW_GESTURE_DOUBLE_TAP, MAPS_VIEW_GESTURE_2_FINGER_TAP, MAPS_VIEW_GESTURE_ROTATE, MAPS_VIEW_GESTURE_LONG_PRESS};
int nMapViewGestureArraySize = sizeof(eMapViewGestureType) / sizeof(eMapViewGestureType[0]);
for(nLoopCount = 0; nLoopCount < nMapViewGestureArraySize; nLoopCount++)
return 0;
}
+
+//& type: auto
+//& purpose: scenario to indicate and query whether the map should show public transit layer.
+/**
+* @testcase ITc_maps_view_set_get_public_transit_enabled_p
+* @author SRID(arvin.mittal)
+* @reviewer SRID(a.pandia)
+* @type auto
+* @since_tizen 3.0
+* @description This function is called to indicate or query whether public transit routes should be shown as a layer on the map
+* @scenario indicate whether the map should show public transit layer \n
+* query whether the map has public transit layer enabled.
+* @apicovered maps_view_set_public_transit_enabled, maps_view_get_public_transit_enabled
+* @passcase if maps_view_set_public_transit_enabled and maps_view_get_public_transit_enabled passes
+* @failcase if maps_view_set_public_transit_enabled or maps_view_get_public_transit_enabled fails
+* @precondition view is created using maps_view_create().
+* @postcondition NA
+*/
+int ITc_maps_view_set_get_public_transit_enabled_p(void)
+{
+ START_TEST_VIEW(g_CheckInitErr,"maps_view");
+ bool setEnabled = false;
+ bool getEnabled = true;
+
+ int nRet = maps_view_set_public_transit_enabled(g_HandleMapView, setEnabled);
+ PRINT_RESULT(MAPS_ERROR_NONE, nRet, "maps_view_set_public_transit_enabled", MapServiceGetError(nRet));
+
+ nRet = maps_view_get_public_transit_enabled(g_HandleMapView, &getEnabled);
+ PRINT_RESULT(MAPS_ERROR_NONE, nRet, "maps_view_get_public_transit_enabled", MapServiceGetError(nRet));
+ if(setEnabled != getEnabled)
+ {
+ FPRINTF("[Line : %d][%s] value mismatch\\n", __LINE__, API_NAMESPACE);
+ return 1;
+ }
+
+ return 0;
+}
/** @} */
/** @} */
extern int ITc_maps_view_move_p(void);
extern int ITc_maps_view_resize_p(void);
extern int ITc_maps_view_foreach_object_p(void);
+extern int ITc_maps_view_set_get_public_transit_enabled_p(void);
testcase tc_array[] = {
{"ITc_maps_address_create_destroy_p", ITc_maps_address_create_destroy_p, ITs_maps_service_address_startup, ITs_maps_service_address_cleanup},
{"ITc_maps_view_move_p", ITc_maps_view_move_p, ITs_maps_view_startup, ITs_maps_view_cleanup},
{"ITc_maps_view_resize_p", ITc_maps_view_resize_p, ITs_maps_view_startup, ITs_maps_view_cleanup},
{"ITc_maps_view_foreach_object_p", ITc_maps_view_foreach_object_p, ITs_maps_view_startup, ITs_maps_view_cleanup},
+ {"ITc_maps_view_set_get_public_transit_enabled_p", ITc_maps_view_set_get_public_transit_enabled_p, ITs_maps_view_startup, ITs_maps_view_cleanup},
{NULL, NULL}
};
extern int ITc_maps_view_move_p(void);
extern int ITc_maps_view_resize_p(void);
extern int ITc_maps_view_foreach_object_p(void);
+extern int ITc_maps_view_set_get_public_transit_enabled_p(void);
testcase tc_array[] = {
{"ITc_maps_address_create_destroy_p", ITc_maps_address_create_destroy_p, ITs_maps_service_address_startup, ITs_maps_service_address_cleanup},
{"ITc_maps_view_move_p", ITc_maps_view_move_p, ITs_maps_view_startup, ITs_maps_view_cleanup},
{"ITc_maps_view_resize_p", ITc_maps_view_resize_p, ITs_maps_view_startup, ITs_maps_view_cleanup},
{"ITc_maps_view_foreach_object_p", ITc_maps_view_foreach_object_p, ITs_maps_view_startup, ITs_maps_view_cleanup},
+ {"ITc_maps_view_set_get_public_transit_enabled_p", ITc_maps_view_set_get_public_transit_enabled_p, ITs_maps_view_startup, ITs_maps_view_cleanup},
{NULL, NULL}
};