[UTC][calendar-service2][Non-ACR][add comment]
authorJeesun Kim <iamjs.kim@samsung.com>
Tue, 1 Aug 2017 09:10:23 +0000 (18:10 +0900)
committerJihun Park <jihun87.park@samsung.com>
Wed, 2 Aug 2017 01:17:20 +0000 (01:17 +0000)
Signed-off-by: Jeesun Kim <iamjs.kim@samsung.com>
Change-Id: I8ebd6f56e0163901bdb430bf123e645afc86b9a9

src/utc/calendar-service2/utc-calendar-reminder.c

index 6141a9a..f7f63b4 100755 (executable)
@@ -451,6 +451,7 @@ int utc_calendar_reminder_add_cb_utime_daily_p(void)
        int event_id = 0;
        time_t now_t = 0;
 
+       DBG("add 1 min, daily");
        now_t = time(NULL);
        now_t += 5;
        now_t += 60;                                    /* add 1 min */
@@ -461,6 +462,7 @@ int utc_calendar_reminder_add_cb_utime_daily_p(void)
        ret = _delete_event(event_id);
        assert_eq(ret, CALENDAR_ERROR_NONE);
 
+       DBG("add 1 hour, daily");
        now_t = time(NULL);
        now_t += 5;
        now_t += (60 * 60);                             /* add 1 hour */
@@ -471,6 +473,7 @@ int utc_calendar_reminder_add_cb_utime_daily_p(void)
        ret = _delete_event(event_id);
        assert_eq(ret, CALENDAR_ERROR_NONE);
 
+       DBG("add 1 day, daily");
        now_t = time(NULL);
        now_t += 5;
        now_t += (60 * 60 * 24);                /* add 1 day */
@@ -481,6 +484,7 @@ int utc_calendar_reminder_add_cb_utime_daily_p(void)
        ret = _delete_event(event_id);
        assert_eq(ret, CALENDAR_ERROR_NONE);
 
+       DBG("add 1 week, daily");
        now_t = time(NULL);
        now_t += 5;
        now_t += (60 * 60 * 24 * 7);    /* add 1 week */
@@ -508,6 +512,7 @@ int utc_calendar_reminder_add_cb_utime_weekly_p(void)
        int event_id = 0;
        time_t now_t = 0;
 
+       DBG("add 1 min, weekly");
        now_t = time(NULL);
        now_t += 5;
        now_t += 60;                                    /* add 1 min */
@@ -518,6 +523,7 @@ int utc_calendar_reminder_add_cb_utime_weekly_p(void)
        ret = _delete_event(event_id);
        assert_eq(ret, CALENDAR_ERROR_NONE);
 
+       DBG("add 1 hour, weekly");
        now_t = time(NULL);
        now_t += 5;
        now_t += (60 * 60);                             /* add 1 hour */
@@ -528,6 +534,7 @@ int utc_calendar_reminder_add_cb_utime_weekly_p(void)
        ret = _delete_event(event_id);
        assert_eq(ret, CALENDAR_ERROR_NONE);
 
+       DBG("add 1 day, weekly");
        now_t = time(NULL);
        now_t += 5;
        now_t += (60 * 60 * 24);                /* add 1 day */
@@ -538,6 +545,7 @@ int utc_calendar_reminder_add_cb_utime_weekly_p(void)
        ret = _delete_event(event_id);
        assert_eq(ret, CALENDAR_ERROR_NONE);
 
+       DBG("add 1 week, weekly");
        now_t = time(NULL);
        now_t += 5;
        now_t += (60 * 60 * 24 * 7);    /* add 1 week */
@@ -566,6 +574,7 @@ int utc_calendar_reminder_add_cb_utime_monthly_p(void)
        time_t now_t = 0;
        struct tm now_s = {0};
 
+       DBG("add 1 min, monthly");
        now_t = time(NULL);
        now_t += 5;
        now_t += 60;                                    /* add 1 min */
@@ -585,6 +594,7 @@ int utc_calendar_reminder_add_cb_utime_monthly_p(void)
        ret = _delete_event(event_id);
        assert_eq(ret, CALENDAR_ERROR_NONE);
 
+       DBG("add 1 hour, monthly");
        now_t = time(NULL);
        now_t += 5;
        now_t += (60 * 60);                             /* add 1 hour */
@@ -604,6 +614,7 @@ int utc_calendar_reminder_add_cb_utime_monthly_p(void)
        ret = _delete_event(event_id);
        assert_eq(ret, CALENDAR_ERROR_NONE);
 
+       DBG("add 1 day, monthly");
        now_t = time(NULL);
        now_t += 5;
        now_t += (60 * 60 * 24);                /* add 1 day */
@@ -623,6 +634,7 @@ int utc_calendar_reminder_add_cb_utime_monthly_p(void)
        ret = _delete_event(event_id);
        assert_eq(ret, CALENDAR_ERROR_NONE);
 
+       DBG("add 1 week, monthly");
        now_t = time(NULL);
        now_t += 5;
        now_t += (60 * 60 * 24 * 7);    /* add 1 week */
@@ -660,6 +672,7 @@ int utc_calendar_reminder_add_cb_utime_yearly_p(void)
        time_t now_t = 0;
        struct tm now_s = {0};
 
+       DBG("add 1 min, yearly");
        now_t = time(NULL);
        now_t += 5;
        now_t += 60;                                    /* add 1 min */
@@ -672,6 +685,7 @@ int utc_calendar_reminder_add_cb_utime_yearly_p(void)
        ret = _delete_event(event_id);
        assert_eq(ret, CALENDAR_ERROR_NONE);
 
+       DBG("add 1 hour, yearly");
        now_t = time(NULL);
        now_t += 5;
        now_t += (60 * 60);                             /* add 1 hour */
@@ -684,6 +698,7 @@ int utc_calendar_reminder_add_cb_utime_yearly_p(void)
        ret = _delete_event(event_id);
        assert_eq(ret, CALENDAR_ERROR_NONE);
 
+       DBG("add 1 day, yearly");
        now_t = time(NULL);
        now_t += 5;
        now_t += (60 * 60 * 24);                /* add 1 day */
@@ -696,6 +711,7 @@ int utc_calendar_reminder_add_cb_utime_yearly_p(void)
        ret = _delete_event(event_id);
        assert_eq(ret, CALENDAR_ERROR_NONE);
 
+       DBG("add 1 week, yearly");
        now_t = time(NULL);
        now_t += 5;
        now_t += (60 * 60 * 24 * 7);    /* add 1 week */
@@ -751,6 +767,7 @@ int utc_calendar_reminder_add_cb_localtime_once_p(void)
        time_t now_t = 0;
        struct tm now_s = {0};
 
+       DBG("add 1 hour, once");
        now_t = time(NULL);
        now_t += 5;
        now_t += 60;                            /* add 1 hour */
@@ -761,6 +778,7 @@ int utc_calendar_reminder_add_cb_localtime_once_p(void)
        ret = _delete_event(event_id);
        assert_eq(ret, CALENDAR_ERROR_NONE);
 
+       DBG("add 1 hour, once");
        now_t = time(NULL);
        now_t += 5;
        now_t += (60 * 60);                             /* add 1 hour */
@@ -771,6 +789,7 @@ int utc_calendar_reminder_add_cb_localtime_once_p(void)
        ret = _delete_event(event_id);
        assert_eq(ret, CALENDAR_ERROR_NONE);
 
+       DBG("add 1 day, once");
        now_t = time(NULL);
        now_t += 5;
        now_t += (60 * 60 * 24);                /* add 1 day */
@@ -781,6 +800,7 @@ int utc_calendar_reminder_add_cb_localtime_once_p(void)
        ret = _delete_event(event_id);
        assert_eq(ret, CALENDAR_ERROR_NONE);
 
+       DBG("add 1 week, once");
        now_t = time(NULL);
        now_t += 5;
        now_t += (60 * 60 * 24 * 7);    /* add 1 week */
@@ -809,6 +829,7 @@ int utc_calendar_reminder_add_cb_localtime_daily_p(void)
        time_t now_t = 0;
        struct tm now_s = {0};
 
+       DBG("add 1 min, daily");
        now_t = time(NULL);
        now_t += 5;
        now_t += 60;                                    /* add 1 min */
@@ -820,6 +841,7 @@ int utc_calendar_reminder_add_cb_localtime_daily_p(void)
        ret = _delete_event(event_id);
        assert_eq(ret, CALENDAR_ERROR_NONE);
 
+       DBG("add 1 hour, daily");
        now_t = time(NULL);
        now_t += 5;
        now_t += (60 * 60);                             /* add 1 hour */
@@ -831,6 +853,7 @@ int utc_calendar_reminder_add_cb_localtime_daily_p(void)
        ret = _delete_event(event_id);
        assert_eq(ret, CALENDAR_ERROR_NONE);
 
+       DBG("add 1 day, daily");
        now_t = time(NULL);
        now_t += 5;
        now_t += (60 * 60 * 24);                /* add 1 day */
@@ -842,6 +865,7 @@ int utc_calendar_reminder_add_cb_localtime_daily_p(void)
        ret = _delete_event(event_id);
        assert_eq(ret, CALENDAR_ERROR_NONE);
 
+       DBG("add 1 week, daily");
        now_t = time(NULL);
        now_t += 5;
        now_t += (60 * 60 * 24 * 7);    /* add 1 week */
@@ -872,6 +896,7 @@ int utc_calendar_reminder_add_cb_localtime_weekly_p(void)
        struct tm now_s = {0};
 
        /* localtime weekly */
+       DBG("add 1 min, weekly");
        now_t = time(NULL);
        now_t += 5;
        now_t += 60;                                    /* add 1 min */
@@ -883,6 +908,7 @@ int utc_calendar_reminder_add_cb_localtime_weekly_p(void)
        ret = _delete_event(event_id);
        assert_eq(ret, CALENDAR_ERROR_NONE);
 
+       DBG("add 1 hour, weekly");
        now_t = time(NULL);
        now_t += 5;
        now_t += (60 * 60);                             /* add 1 hour */
@@ -894,6 +920,7 @@ int utc_calendar_reminder_add_cb_localtime_weekly_p(void)
        ret = _delete_event(event_id);
        assert_eq(ret, CALENDAR_ERROR_NONE);
 
+       DBG("add 1 day, weekly");
        now_t = time(NULL);
        now_t += 5;
        now_t += (60 * 60 * 24);                /* add 1 day */
@@ -905,6 +932,7 @@ int utc_calendar_reminder_add_cb_localtime_weekly_p(void)
        ret = _delete_event(event_id);
        assert_eq(ret, CALENDAR_ERROR_NONE);
 
+       DBG("add 1 week, weekly");
        now_t = time(NULL);
        now_t += 5;
        now_t += (60 * 60 * 24 * 7);    /* add 1 week */
@@ -934,6 +962,7 @@ int utc_calendar_reminder_add_cb_localtime_monthly_p(void)
        time_t now_t = 0;
        struct tm now_s = {0};
 
+       DBG("add 1 min, monthly");
        now_t = time(NULL);
        now_t += 5;
        now_t += 60;                                    /* add 1 min */
@@ -952,6 +981,7 @@ int utc_calendar_reminder_add_cb_localtime_monthly_p(void)
        ret = _delete_event(event_id);
        assert_eq(ret, CALENDAR_ERROR_NONE);
 
+       DBG("add 1 hour, monthly");
        now_t = time(NULL);
        now_t += 5;
        now_t += (60 * 60);                             /* add 1 hour */
@@ -970,6 +1000,7 @@ int utc_calendar_reminder_add_cb_localtime_monthly_p(void)
        ret = _delete_event(event_id);
        assert_eq(ret, CALENDAR_ERROR_NONE);
 
+       DBG("add 1 day, monthly");
        now_t = time(NULL);
        now_t += 5;
        now_t += (60 * 60 * 24);                /* add 1 day */
@@ -988,6 +1019,7 @@ int utc_calendar_reminder_add_cb_localtime_monthly_p(void)
        ret = _delete_event(event_id);
        assert_eq(ret, CALENDAR_ERROR_NONE);
 
+       DBG("add 1 week, monthly");
        now_t = time(NULL);
        now_t += 5;
        now_t += (60 * 60 * 24 * 7);    /* add 1 week */
@@ -1024,6 +1056,7 @@ int utc_calendar_reminder_add_cb_localtime_yearly_p(void)
        time_t now_t = 0;
        struct tm now_s = {0};
 
+       DBG("add 1 min, yearly");
        now_t = time(NULL);
        now_t += 5;
        now_t += 60;                                    /* add 1 min */
@@ -1035,6 +1068,7 @@ int utc_calendar_reminder_add_cb_localtime_yearly_p(void)
        ret = _delete_event(event_id);
        assert_eq(ret, CALENDAR_ERROR_NONE);
 
+       DBG("add 1 hour, yearly");
        now_t = time(NULL);
        now_t += 5;
        now_t += (60 * 60);                             /* add 1 hour */
@@ -1046,6 +1080,7 @@ int utc_calendar_reminder_add_cb_localtime_yearly_p(void)
        ret = _delete_event(event_id);
        assert_eq(ret, CALENDAR_ERROR_NONE);
 
+       DBG("add 1 day, yearly");
        now_t = time(NULL);
        now_t += 5;
        now_t += (60 * 60 * 24);                /* add 1 day */
@@ -1057,6 +1092,7 @@ int utc_calendar_reminder_add_cb_localtime_yearly_p(void)
        ret = _delete_event(event_id);
        assert_eq(ret, CALENDAR_ERROR_NONE);
 
+       DBG("add 1 week, yearly");
        now_t = time(NULL);
        now_t += 5;
        now_t += (60 * 60 * 24 * 7);    /* add 1 week */