* @objective Positive test case 01
* Test case checks if the function is invoked successfully.
* @procedure
- * @step 1 Encode image data.
+ * @step 1 Encode image data (lossless).
* @step 2 Check the value returned if it is not NULL.
+ * @step 3 Encode image data (jpeg).
+ * @step 4 Check the value returned if it is not NULL.
+ * @step 5 Encode image data (etc1_alpha or rgba).
+ * @step 6 Check the value returned if it is not NULL.
*
* @passcondition : API Executes successfully, returning non-NULL value
* @}
void* ret = NULL;
int size;
- ret = eet_data_image_encode_cipher(test_noalpha.color, NULL, test_noalpha.w, test_noalpha.h, test_noalpha.alpha, 9, 100, 0, &size);
+ ret = eet_data_image_encode_cipher(test_noalpha.color, NULL, test_noalpha.w, test_noalpha.h, test_noalpha.alpha, 9, 100, EET_IMAGE_LOSSLESS, &size);
if (ret == NULL)
{
ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
}
+
+ ret = eet_data_image_encode_cipher(test_noalpha.color, NULL, test_noalpha.w, test_noalpha.h, test_noalpha.alpha, 9, 100, EET_IMAGE_JPEG, &size);
+
+ if (ret == NULL)
+ {
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
+ }
+
+ ret = eet_data_image_encode_cipher(test_noalpha.color, NULL, test_noalpha.w, test_noalpha.h, test_noalpha.alpha, 9, 100, EET_IMAGE_ETC1_ALPHA, &size);
+
+ if (ret == NULL)
+ {
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
+ }
+
printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
}
END_TEST