extern int notification_get_noti_block_state_p(void);
extern int utc_notification_set_text_input_n(void);
extern int utc_notification_set_text_input_p(void);
+extern int utc_notification_set_extension_image_size_n(void);
+extern int utc_notification_set_extension_image_size_p(void);
+extern int utc_notification_get_extension_image_size_n(void);
+extern int utc_notification_get_extension_image_size_p(void);
testcase tc_array[] = {
{"utc_notification_create_1_n", utc_notification_create_1_n, NULL, NULL},
{"notification_get_noti_block_state_p", notification_get_noti_block_state_p, NULL, NULL},
{"utc_notification_set_text_input_n", utc_notification_set_text_input_n, NULL, NULL},
{"utc_notification_set_text_input_p", utc_notification_set_text_input_p, NULL, NULL},
+ {"utc_notification_set_extension_image_size_n", utc_notification_set_extension_image_size_n, NULL, NULL},
+ {"utc_notification_set_extension_image_size_p", utc_notification_set_extension_image_size_p, NULL, NULL},
+ {"utc_notification_get_extension_image_size_n", utc_notification_get_extension_image_size_n, NULL, NULL},
+ {"utc_notification_get_extension_image_size_p", utc_notification_get_extension_image_size_p, NULL, NULL},
{NULL, NULL}
};
extern int notification_get_noti_block_state_p(void);
extern int utc_notification_set_text_input_n(void);
extern int utc_notification_set_text_input_p(void);
+extern int utc_notification_set_extension_image_size_n(void);
+extern int utc_notification_set_extension_image_size_p(void);
+extern int utc_notification_get_extension_image_size_n(void);
+extern int utc_notification_get_extension_image_size_p(void);
testcase tc_array[] = {
{"utc_notification_create_1_n", utc_notification_create_1_n, NULL, NULL},
{"notification_get_noti_block_state_p", notification_get_noti_block_state_p, NULL, NULL},
{"utc_notification_set_text_input_n", utc_notification_set_text_input_n, NULL, NULL},
{"utc_notification_set_text_input_p", utc_notification_set_text_input_p, NULL, NULL},
+ {"utc_notification_set_extension_image_size_n", utc_notification_set_extension_image_size_n, NULL, NULL},
+ {"utc_notification_set_extension_image_size_p", utc_notification_set_extension_image_size_p, NULL, NULL},
+ {"utc_notification_get_extension_image_size_n", utc_notification_get_extension_image_size_n, NULL, NULL},
+ {"utc_notification_get_extension_image_size_p", utc_notification_get_extension_image_size_p, NULL, NULL},
{NULL, NULL}
};
extern int notification_get_noti_block_state_p(void);
extern int utc_notification_set_text_input_n(void);
extern int utc_notification_set_text_input_p(void);
+extern int utc_notification_set_extension_image_size_n(void);
+extern int utc_notification_set_extension_image_size_p(void);
+extern int utc_notification_get_extension_image_size_n(void);
+extern int utc_notification_get_extension_image_size_p(void);
testcase tc_array[] = {
{"utc_notification_create_1_n", utc_notification_create_1_n, NULL, NULL},
{"notification_get_noti_block_state_p", notification_get_noti_block_state_p, NULL, NULL},
{"utc_notification_set_text_input_n", utc_notification_set_text_input_n, NULL, NULL},
{"utc_notification_set_text_input_p", utc_notification_set_text_input_p, NULL, NULL},
+ {"utc_notification_set_extension_image_size_n", utc_notification_set_extension_image_size_n, NULL, NULL},
+ {"utc_notification_set_extension_image_size_p", utc_notification_set_extension_image_size_p, NULL, NULL},
+ {"utc_notification_get_extension_image_size_n", utc_notification_get_extension_image_size_n, NULL, NULL},
+ {"utc_notification_get_extension_image_size_p", utc_notification_get_extension_image_size_p, NULL, NULL},
{NULL, NULL}
};
extern int notification_get_noti_block_state_p(void);
extern int utc_notification_set_text_input_n(void);
extern int utc_notification_set_text_input_p(void);
+extern int utc_notification_set_extension_image_size_n(void);
+extern int utc_notification_set_extension_image_size_p(void);
+extern int utc_notification_get_extension_image_size_n(void);
+extern int utc_notification_get_extension_image_size_p(void);
testcase tc_array[] = {
{"utc_notification_create_1_n", utc_notification_create_1_n, NULL, NULL},
{"notification_get_noti_block_state_p", notification_get_noti_block_state_p, NULL, NULL},
{"utc_notification_set_text_input_n", utc_notification_set_text_input_n, NULL, NULL},
{"utc_notification_set_text_input_p", utc_notification_set_text_input_p, NULL, NULL},
+ {"utc_notification_set_extension_image_size_n", utc_notification_set_extension_image_size_n, NULL, NULL},
+ {"utc_notification_set_extension_image_size_p", utc_notification_set_extension_image_size_p, NULL, NULL},
+ {"utc_notification_get_extension_image_size_n", utc_notification_get_extension_image_size_n, NULL, NULL},
+ {"utc_notification_get_extension_image_size_p", utc_notification_get_extension_image_size_p, NULL, NULL},
{NULL, NULL}
};
return 0;
}
+
+/**
+ * @testcase notification_set_extension_image_size_n
+ * @since_tizen 4.0
+ * @description Negative test case of notification_set_extension_image_size()
+ */
+int utc_notification_set_extension_image_size_n(void)
+{
+ int ret = 0;
+
+ ret = notification_set_extension_image_size(NULL, -1);
+ assert_eq(ret, NOTIFICATION_ERROR_INVALID_PARAMETER);
+
+ return 0;
+}
+
+/**
+ * @testcase notification_set_extension_image_size_p
+ * @since_tizen 4.0
+ * @description Positive test case of notification_set_extension_image_size()
+ */
+int utc_notification_set_extension_image_size_p(void)
+{
+ int ret = 0;
+ notification_h notification = NULL;
+
+ notification = notification_create(NOTIFICATION_TYPE_NOTI);
+
+ assert(notification);
+
+ ret = notification_set_extension_image_size(notification, 20);
+ assert_eq(ret, NOTIFICATION_ERROR_NONE);
+
+ notification_free(notification);
+
+ return 0;
+}
+
+/**
+ * @testcase notification_get_extension_image_size_n
+ * @since_tizen 4.0
+ * @description Negative test case of notification_get_extension_image_size()
+ */
+int utc_notification_get_extension_image_size_n(void)
+{
+ int ret = 0;
+ notification_h notification = NULL;
+
+ notification = notification_create(NOTIFICATION_TYPE_NOTI);
+
+ assert(notification);
+
+ ret = notification_set_extension_image_size(notification, 20);
+ assert_eq(ret, NOTIFICATION_ERROR_NONE);
+
+ ret = notification_get_extension_image_size(NULL, NULL);
+ assert_eq(ret, NOTIFICATION_ERROR_INVALID_PARAMETER);
+
+ notification_free(notification);
+
+ return 0;
+}
+
+/**
+ * @testcase notification_get_extension_image_size_p
+ * @since_tizen 4.0
+ * @description Positive test case of notification_get_extension_image_size()
+ */
+int utc_notification_get_extension_image_size_p(void)
+{
+ int ret = 0;
+ int size;
+ notification_h notification = NULL;
+
+ notification = notification_create(NOTIFICATION_TYPE_NOTI);
+
+ assert(notification);
+
+ ret = notification_set_extension_image_size(notification, 20);
+ assert_eq(ret, NOTIFICATION_ERROR_NONE);
+
+ ret = notification_get_extension_image_size(notification, &size);
+ assert_eq(ret, NOTIFICATION_ERROR_NONE);
+
+ notification_free(notification);
+
+ return 0;
+}