From: Ankit Date: Tue, 14 Jun 2022 11:42:32 +0000 (+0530) Subject: [ITC][email][NonACR][Whitespaces removed and print messages fixed] X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1f6ea4abfffe8150c6ea468d26357497fa5283f6;p=test%2Ftct%2Fnative%2Fapi.git [ITC][email][NonACR][Whitespaces removed and print messages fixed] Change-Id: I4cff4b1e6b6603ab8f2f56ab29d97ef9c65e478e Signed-off-by: Ankit --- diff --git a/src/itc/email/ITs-email.c b/src/itc/email/ITs-email.c index 1bf0ead09..e8d260fff 100755 --- a/src/itc/email/ITs-email.c +++ b/src/itc/email/ITs-email.c @@ -26,15 +26,15 @@ char g_pstrRecipient[CONFIG_VALUE_LEN_MAX] = {0,}; /** * @function ITs_email_startup -* @description Called before each test, created email handle +* @description Called before each test, creates email handle * @parameter NA * @return NA */ void ITs_email_startup(void) { - struct stat stBuff; + struct stat stBuff; g_eEmailNotSupported=false; - g_eEmailMismatch =false; + g_eEmailMismatch =false; if ( stat(ERR_LOG, &stBuff) == 0 ) { remove(ERR_LOG); @@ -44,8 +44,8 @@ void ITs_email_startup(void) FPRINTF("[Line : %d][%s] TEST SUIT start-up: ITs_Messaging_Email_p\\n", __LINE__, API_NAMESPACE); #endif //Create Email Message Handle - - g_bIsEmailSendFeatureSupported = TCTCheckSystemInfoFeatureSupported(EMAIL_FEATURE, API_NAMESPACE) ; + + g_bIsEmailSendFeatureSupported = TCTCheckSystemInfoFeatureSupported(EMAIL_FEATURE, API_NAMESPACE); int nRet = email_create_message(&g_hEmail); @@ -136,7 +136,7 @@ gboolean EmailTimeout(gpointer data) g_main_loop_unref(g_pEmailMainLoop); g_pEmailMainLoop = NULL; } - + FPRINTF("[Line : %d][%s] Callback Time-out\\n", __LINE__, API_NAMESPACE); return false; } @@ -145,7 +145,7 @@ void email_message_sent_callback(email_h email, email_sending_e result, void *us { FPRINTF("[Line : %d][%s] Callback invoked: email_message_sent_callback \\n", __LINE__, API_NAMESPACE); g_bCallbackOccurred = true; - + if ( email == NULL ) { FPRINTF("[Line : %d][%s] email is NULL in callback email_message_sent_callback\\n", __LINE__, API_NAMESPACE); @@ -201,7 +201,7 @@ void email_message_sent_callback(email_h email, email_sending_e result, void *us * @passcase If adds and removes the attachment to the email message successfully * @failcase If fails to add and remove attachment to the email message * @precondition NA -* @postcondition NA +* @postcondition NA */ int ITc_email_add_remove_attach_p(void) { @@ -222,7 +222,7 @@ int ITc_email_add_remove_attach_p(void) /**** Clears All Attachments of the Email Message ****/ nRet = email_remove_all_attachments(g_hEmail); PRINT_RESULT_CLEANUP(EMAILS_ERROR_NONE, nRet, "email_remove_all_attachments", EmailGetError(nRet),FREE_MEMORY(pszImagePath)); - + FREE_MEMORY(pszImagePath); return 0; @@ -245,7 +245,7 @@ int ITc_email_add_remove_attach_p(void) * @passcase If adds and removes the recipient to the email message successfully * @failcase If fails to add and remove recipient to the email message * @precondition NA -* @postcondition NA +* @postcondition NA */ int ITc_email_add_remove_recipient_p(void) { @@ -296,7 +296,7 @@ int ITc_email_add_remove_recipient_p(void) * @passcase If creates and destroys the email message handle * @failcase If fails to create and destroy the email message handle * @precondition NA -* @postcondition NA +* @postcondition NA */ int ITc_email_create_destroy_message_p(void) { @@ -330,11 +330,11 @@ int ITc_email_create_destroy_message_p(void) * @scenario Creates an email message\n * Saves the email message in outbox\n * Destroys the email message -* @apicovered email_save_message +* @apicovered email_save_message * @passcase If saves the email message successfully * @failcase If fails to save the email message * @precondition NA -* @postcondition NA +* @postcondition NA */ int ITc_email_save_message_p(void) { @@ -368,7 +368,7 @@ int ITc_email_save_message_p(void) * @scenario Creates an email message\n * Sends the email message\n * Destroys the email message -* @apicovered email_save_message, email_send_message, email_set_message_sent_cb, email_unset_message_sent_cb +* @apicovered email_save_message, email_send_message, email_set_message_sent_cb, email_unset_message_sent_cb * @passcase If sends an email message successfully * @failcase If fails to send the email message * @precondition An email account should be manually added to the device before executing this test @@ -413,20 +413,20 @@ int ITc_email_send_message_with_attachment_p(void) return 1; } - PRINT_RESULT_CLEANUP(EMAILS_ERROR_NONE, nRet, "email_set_message_sent_cb", EmailGetError(nRet), email_unset_message_sent_cb(g_hEmail)); + PRINT_RESULT_CLEANUP(EMAILS_ERROR_NONE, nRet, "email_send_message", EmailGetError(nRet), email_unset_message_sent_cb(g_hEmail)); int nEmailTimeoutId = 0; RUN_POLLING_LOOP; if ( !g_bCallbackOccurred ) { - FPRINTF("[Line : %d][%s] email_set_message_sent_cb failed to invoke callback\\n", __LINE__, API_NAMESPACE); + FPRINTF("[Line : %d][%s] email_send_message failed to invoke callback\\n", __LINE__, API_NAMESPACE); email_unset_message_sent_cb(g_hEmail); return 1; } if ( !g_bEmailSentSuccess ) { - FPRINTF("[Line : %d][%s] email_set_message_sent_cb invoked callback with email_sending_e = false\\n", __LINE__, API_NAMESPACE); + FPRINTF("[Line : %d][%s] email_send_message invoked callback with email_sending_e = false\\n", __LINE__, API_NAMESPACE); email_unset_message_sent_cb(g_hEmail); return 1; } @@ -454,7 +454,7 @@ int ITc_email_send_message_with_attachment_p(void) * @passcase If sends an email message successfully * @failcase If fails to send the email message * @precondition An email account should be manually added to the device before executing this test -* @postcondition NA +* @postcondition NA */ int ITc_email_send_message_without_attachment_p(void) { @@ -497,18 +497,18 @@ int ITc_email_send_message_without_attachment_p(void) PRINT_RESULT_CLEANUP(EMAILS_ERROR_NONE, nRet, "email_send_message", EmailGetError(nRet), email_unset_message_sent_cb(g_hEmail)); - int nEmailTimeoutId = 0; + int nEmailTimeoutId = 0; RUN_POLLING_LOOP; if ( !g_bCallbackOccurred ) { - FPRINTF("[Line : %d][%s] email_set_message_sent_cb failed to invoke callback\\n", __LINE__, API_NAMESPACE); + FPRINTF("[Line : %d][%s] email_send_message failed to invoke callback\\n", __LINE__, API_NAMESPACE); email_unset_message_sent_cb(g_hEmail); return 1; } if ( !g_bEmailSentSuccess ) { - FPRINTF("[Line : %d][%s] email_set_message_sent_cb invoked callback with email_sending_e = false\\n", __LINE__, API_NAMESPACE); + FPRINTF("[Line : %d][%s] email_send_message invoked callback with email_sending_e = false\\n", __LINE__, API_NAMESPACE); email_unset_message_sent_cb(g_hEmail); return 1; } @@ -631,7 +631,7 @@ int ITc_email_set_unset_message_sent_cb_p(void) PRINT_RESULT(EMAILS_ERROR_NONE, nRet, "email_unset_message_sent_cb", EmailGetError(nRet)); g_bCallbackOccurred = false; - + //Send an email message nRet = email_send_message(g_hEmail, true); PRINT_RESULT(EMAILS_ERROR_NONE, nRet, "email_send_message", EmailGetError(nRet)); @@ -661,7 +661,7 @@ int ITc_email_set_unset_message_sent_cb_p(void) * @passcase If sets the subject of email message successfully * @failcase If fails to set the subject of email message * @precondition NA -* @postcondition NA +* @postcondition NA */ int ITc_email_set_subject_p(void) {