tizen beta release
[framework/location/libslp-location.git] / TC / unit / utc_signals_zone_out.c
index 5070a66..6eee476 100644 (file)
@@ -18,6 +18,7 @@
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
+
 #include <tet_api.h>
 #include <glib.h>
 #include <location.h>
@@ -46,24 +47,25 @@ exit_loop (gpointer data)
 }
 
 static void startup()
-{      
+{
        location_init();
        loc = location_new(LOCATION_METHOD_GPS);
        location_start(loc);
-       loop = g_main_loop_new(NULL,FALSE);     
+       loop = g_main_loop_new(NULL,FALSE);
 
        LocationPosition *rb = location_position_new(0, 36.395, 25.41, 0, LOCATION_STATUS_2D_FIX);
        LocationPosition *lt = location_position_new(0, 36.413, 25.388, 0, LOCATION_STATUS_2D_FIX);
        LocationBoundary* bound = location_boundary_new_for_rect(lt, rb);
+       location_boundary_add(loc, bound);
+
        location_position_free (rb);
        location_position_free (lt);
-       g_object_set(loc, "boundary", bound, NULL);
        location_boundary_free (bound);
        tet_printf("\n TC startup");
 }
 
 static void cleanup()
-{      
+{
        location_stop(loc);
        location_free(loc);
        tet_printf("\n TC End");
@@ -89,5 +91,5 @@ utc_zone_out()
 {
        g_signal_connect (loc, "zone-out", G_CALLBACK(_cb_zone_out), loc);
        g_timeout_add_seconds(60, exit_loop, NULL);
-       g_main_loop_run (loop); 
+       g_main_loop_run (loop);
 }