if (is_maps_supported) {
maps_place_category_set_id(__pCategory, "test");
- maps_place_category_set_name(__pCategory, "test");
+ ret = maps_place_category_set_name(__pCategory, "test");
+ ASSERT_IF_VAL_REF2(ret, is_maps_supported, MAPS_ERROR_NONE, MAPS_ERROR_NOT_SUPPORTED);
maps_place_category_set_url(__pCategory, "test");
ret = maps_place_category_clone(__pCategory, &clone_place_category);
assert(bottom_right);
ret = maps_area_create_rectangle(top_left, bottom_right, &boundary);
-
- maps_coordinates_destroy(top_left);
- maps_coordinates_destroy(bottom_right);
+ ret = maps_coordinates_destroy(top_left);
+ assert_eq(ret, MAPS_ERROR_NONE);
+ ret = maps_coordinates_destroy(bottom_right);
assert_eq(ret, MAPS_ERROR_NONE);
assert(boundary);
ret = maps_area_destroy(boundary);
assert_eq(ret, MAPS_ERROR_NONE);
} else {
- maps_area_destroy(boundary);
+ ret = maps_area_destroy(boundary);
assert_eq(ret, MAPS_ERROR_NOT_SUPPORTED);
}
printf("bounds ==NULL\n");
} else {
location_bounds_type_e type;
- location_bounds_get_type(bounds, &type);
+ ret = location_bounds_get_type(bounds, &type);
+ if (ret != LOCATIONS_ERROR_NONE )
+ {
+ return false;
+ }
touch_foreach_bounds = true;
}
return true;