void utc_notification_startup(void)
{
notification_h notification = NULL;
- bundle *b = NULL;
/* NOTIFICATION_TYPE_NOTI */
notification = notification_create(NOTIFICATION_TYPE_NOTI);
- b = bundle_create();
notification_set_time(notification, TEST_TIME);
notification_set_image(notification, NOTIFICATION_IMAGE_TYPE_ICON, TEST_IMAGE);
notification_set_tag(notification, TEST_TAG_FOR_NOTI);
/* NOTIFICATION_TYPE_ONGOING */
notification = notification_create(NOTIFICATION_TYPE_ONGOING);
- b = bundle_create();
notification_set_time(notification, TEST_TIME);
notification_set_image(notification, NOTIFICATION_IMAGE_TYPE_ICON, TEST_IMAGE);
notification_set_tag(notification, TEST_TAG_FOR_ONGOING);
*/
void utc_notification_cleanup(void)
{
+ notification_h notification = NULL;
+ notification = notification_load_by_tag(TEST_TAG_FOR_NOTI);
+
+ notification_delete(notification);
+ notification_free(notification);
}
/**
assert(!notification);
- notification_free(notification);
return 0;
}
assert_eq(ret, NOTIFICATION_ERROR_NONE);
assert_eq(strcmp(image, TEST_IMAGE), 0);
+ image = NULL;
notification_free(notification);
ret = notification_get_text(notification, NOTIFICATION_TEXT_TYPE_TITLE, &value);
assert_neq(value, NULL);
assert_eq(ret, NOTIFICATION_ERROR_NONE);
+ value = NULL;
notification_free(notification);
ret = notification_get_text(notification, NOTIFICATION_TEXT_TYPE_CONTENT, &value);
assert_neq(value, NULL);
assert_eq(ret, NOTIFICATION_ERROR_NONE);
+ value = NULL;
notification_free(notification);
ret = notification_get_text(notification, NOTIFICATION_TEXT_TYPE_CONTENT_FOR_DISPLAY_OPTION_IS_OFF, &value);
assert_neq(value, NULL);
assert_eq(ret, NOTIFICATION_ERROR_NONE);
+ value = NULL;
notification_free(notification);
ret = notification_get_text(notification, NOTIFICATION_TEXT_TYPE_EVENT_COUNT, &value);
assert_neq(value, NULL);
assert_eq(ret, NOTIFICATION_ERROR_NONE);
+ value = NULL;
notification_free(notification);
ret = notification_get_text(notification, NOTIFICATION_TEXT_TYPE_INFO_SUB_1, &value);
assert_neq(value, NULL);
assert_eq(ret, NOTIFICATION_ERROR_NONE);
+ value = NULL;
notification_free(notification);
ret = notification_get_text(notification, NOTIFICATION_TEXT_TYPE_INFO_2, &value);
assert_neq(value, NULL);
assert_eq(ret, NOTIFICATION_ERROR_NONE);
+ value = NULL;
notification_free(notification);
ret = notification_get_text(notification, NOTIFICATION_TEXT_TYPE_INFO_SUB_2, &value);
assert_neq(value, NULL);
assert_eq(ret, NOTIFICATION_ERROR_NONE);
+ value = NULL;
notification_free(notification);
ret = notification_get_text(notification, NOTIFICATION_TEXT_TYPE_INFO_3, &value);
assert_neq(value, NULL);
assert_eq(ret, NOTIFICATION_ERROR_NONE);
+ value = NULL;
notification_free(notification);
ret = notification_get_text(notification, NOTIFICATION_TEXT_TYPE_INFO_SUB_3, &value);
assert_neq(value, NULL);
assert_eq(ret, NOTIFICATION_ERROR_NONE);
+ value = NULL;
notification_free(notification);
ret = notification_get_text(notification, NOTIFICATION_TEXT_TYPE_GROUP_TITLE, &value);
assert_neq(value, NULL);
assert_eq(ret, NOTIFICATION_ERROR_NONE);
+ value = NULL;
notification_free(notification);
ret = notification_get_text(notification, NOTIFICATION_TEXT_TYPE_GROUP_CONTENT, &value);
assert_neq(value, NULL);
assert_eq(ret, NOTIFICATION_ERROR_NONE);
+ value = NULL;
notification_free(notification);
ret = notification_get_text(notification, NOTIFICATION_TEXT_TYPE_GROUP_CONTENT_FOR_DISPLAY_OPTION_IS_OFF, &value);
assert_neq(value, NULL);
assert_eq(ret, NOTIFICATION_ERROR_NONE);
+ value = NULL;
notification_free(notification);
ret = notification_get_text(notification, NOTIFICATION_TEXT_TYPE_BUTTON_1, &value);
assert_neq(value, NULL);
assert_eq(ret, NOTIFICATION_ERROR_NONE);
+ value = NULL;
notification_free(notification);
ret = notification_get_text(notification, NOTIFICATION_TEXT_TYPE_BUTTON_2, &value);
assert_neq(value, NULL);
assert_eq(ret, NOTIFICATION_ERROR_NONE);
+ value = NULL;
notification_free(notification);
ret = notification_get_text(notification, NOTIFICATION_TEXT_TYPE_BUTTON_3, &value);
assert_neq(value, NULL);
assert_eq(ret, NOTIFICATION_ERROR_NONE);
+ value = NULL;
notification_free(notification);
ret = notification_get_text(notification, NOTIFICATION_TEXT_TYPE_BUTTON_4, &value);
assert_neq(value, NULL);
assert_eq(ret, NOTIFICATION_ERROR_NONE);
+ value = NULL;
notification_free(notification);
ret = notification_get_text(notification, NOTIFICATION_TEXT_TYPE_BUTTON_5, &value);
assert_neq(value, NULL);
assert_eq(ret, NOTIFICATION_ERROR_NONE);
+ value = NULL;
notification_free(notification);
ret = notification_get_text(notification, NOTIFICATION_TEXT_TYPE_BUTTON_6, &value);
assert_neq(value, NULL);
assert_eq(ret, NOTIFICATION_ERROR_NONE);
+ value = NULL;
notification_free(notification);
assert_neq(value, NULL);
assert_eq(ret, NOTIFICATION_ERROR_NONE);
+ value = NULL;
notification_free(notification);
assert_eq(type, NOTIFICATION_SOUND_TYPE_USER_DATA);
assert_eq(strcmp(value, TEST_PATH), 0);
assert_eq(ret, NOTIFICATION_ERROR_NONE);
+ value = NULL;
notification_free(notification);
assert_neq(value, NULL);
assert_eq(ret, NOTIFICATION_ERROR_NONE);
+ value = NULL;
notification_free(notification);
assert_eq(type, NOTIFICATION_VIBRATION_TYPE_USER_DATA);
assert_eq(strcmp(value, TEST_PATH), 0);
assert_eq(ret, NOTIFICATION_ERROR_NONE);
+ value = NULL;
notification_free(notification);
assert(notification_cloned);
notification_free(notification_cloned);
-
+ notification_free(notification);
assert_eq(ret, NOTIFICATION_ERROR_NONE);
return 0;
assert_neq(tag, NULL);
assert_eq(ret, NOTIFICATION_ERROR_NONE);
+ tag = NULL;
notification_free(notification);
assert_eq(strcmp(tag, TEST_TAG_FOR_NOTI), 0);
assert_eq(ret, NOTIFICATION_ERROR_NONE);
+ tag = NULL;
notification_free(notification);
assert_eq(ret, NOTIFICATION_ERROR_NONE);
+ notification_delete(notification);
notification_free(notification);
return 0;
assert_neq(tag, NULL);
assert_eq(ret, NOTIFICATION_ERROR_NONE);
+ tag = NULL;
notification_free(notification);
{
int ret = 0;
notification_h notification = NULL;
- app_control_h app_control = NULL;
- char *pkgname = NULL;
notification = notification_create(NOTIFICATION_TYPE_NOTI);
{
int ret = 0;
notification_h notification = NULL;
- app_control_h app_control = NULL;
- char *pkgname = NULL;
notification = notification_create(NOTIFICATION_TYPE_NOTI);
{
int ret = 0;
notification_h notification = NULL;
- app_control_h app_control = NULL;
- char *pkgname = NULL;
notification = notification_create(NOTIFICATION_TYPE_NOTI);
int ret = 0;
notification_h notification = NULL;
bool auto_remove = true;
- app_control_h app_control = NULL;
- char *pkgname = NULL;
notification = notification_create(NOTIFICATION_TYPE_NOTI);