Rename class name to be consistent with the name of tested functions
authorPiotr Sieduszewski <p.sieduszews@samsung.com>
Wed, 10 Dec 2014 17:57:08 +0000 (18:57 +0100)
committerYoungsoo Choi <kenshin.choi@samsung.com>
Tue, 10 Jul 2018 06:57:09 +0000 (06:57 +0000)
ewk_back_forward_list_item_at_index_get
ewk_back_forward_list_n_back_items_copy
ewk_back_forward_list_n_forward_items_copy
ewk_certificate_policy_decision_certificate_pem_get
ewk_certificate_policy_decision_url_get
ewk_context_cache_disabled_set
ewk_settings_loads_images_automatically_set
ewk_user_media_permission_request_suspend
ewk_view_notification_closed

Bug: http://107.108.218.239/bugzilla/show_bug.cgi?id=9483
Reviewed by: Antonio Gomes, Piotr Tworek, SeungSeop Park

Change-Id: Iebb2ad9a40d332d5b81f49601f23262278662c86
Signed-off-by: Piotr Sieduszewski <p.sieduszews@samsung.com>
tizen_src/ewk/unittest/utc_blink_ewk_back_forward_list_item_at_index_get_func.cpp
tizen_src/ewk/unittest/utc_blink_ewk_back_forward_list_n_back_items_copy_func.cpp
tizen_src/ewk/unittest/utc_blink_ewk_back_forward_list_n_forward_items_copy_func.cpp
tizen_src/ewk/unittest/utc_blink_ewk_certificate_policy_decision_certificate_pem_get_func.cpp
tizen_src/ewk/unittest/utc_blink_ewk_certificate_policy_decision_url_get_func.cpp
tizen_src/ewk/unittest/utc_blink_ewk_context_cache_disabled_set_func.cpp
tizen_src/ewk/unittest/utc_blink_ewk_settings_loads_images_automatically_set_func.cpp
tizen_src/ewk/unittest/utc_blink_ewk_user_media_permission_request_suspend_func.cpp
tizen_src/ewk/unittest/utc_blink_ewk_view_notification_closed_func.cpp

index ba68a92..5b2bc3c 100644 (file)
@@ -4,7 +4,7 @@
 
 #include "utc_blink_ewk_base.h"
 
-class utc_blink_ewk_view_back_forward_list_item_at_index_get : public utc_blink_ewk_base
+class utc_blink_ewk_back_forward_list_item_at_index_get : public utc_blink_ewk_base
 {
 protected:
   void LoadFinished(Evas_Object *) {
@@ -17,11 +17,11 @@ protected:
   static const char* const TEST_URL3;
 };
 
-const char* const utc_blink_ewk_view_back_forward_list_item_at_index_get::TEST_URL1 = "ewk_history/page1.html";
-const char* const utc_blink_ewk_view_back_forward_list_item_at_index_get::TEST_URL2 = "ewk_history/page2.html";
-const char* const utc_blink_ewk_view_back_forward_list_item_at_index_get::TEST_URL3 = "ewk_history/page3.html";
+const char* const utc_blink_ewk_back_forward_list_item_at_index_get::TEST_URL1 = "ewk_history/page1.html";
+const char* const utc_blink_ewk_back_forward_list_item_at_index_get::TEST_URL2 = "ewk_history/page2.html";
+const char* const utc_blink_ewk_back_forward_list_item_at_index_get::TEST_URL3 = "ewk_history/page3.html";
 
-TEST_F(utc_blink_ewk_view_back_forward_list_item_at_index_get, POS_TEST)
+TEST_F(utc_blink_ewk_back_forward_list_item_at_index_get, POS_TEST)
 {
   // load 3 pages to get some interesting history
   ASSERT_EQ(EINA_TRUE, ewk_view_url_set(GetEwkWebView(), GetResourceUrl(TEST_URL1).c_str()));
@@ -116,7 +116,7 @@ TEST_F(utc_blink_ewk_view_back_forward_list_item_at_index_get, POS_TEST)
   ASSERT_EQ(NULL, ewk_back_forward_list_item_at_index_get(list, -10));
 }
 
-TEST_F(utc_blink_ewk_view_back_forward_list_item_at_index_get, EMPTY_TEST)
+TEST_F(utc_blink_ewk_back_forward_list_item_at_index_get, EMPTY_TEST)
 {
   Ewk_Back_Forward_List *list = ewk_view_back_forward_list_get(GetEwkWebView());
   ASSERT_TRUE(list);
@@ -125,7 +125,7 @@ TEST_F(utc_blink_ewk_view_back_forward_list_item_at_index_get, EMPTY_TEST)
   ASSERT_EQ(NULL, ewk_back_forward_list_item_at_index_get(list, -1));
 }
 
-TEST_F(utc_blink_ewk_view_back_forward_list_item_at_index_get, NULL_TEST)
+TEST_F(utc_blink_ewk_back_forward_list_item_at_index_get, NULL_TEST)
 {
   ASSERT_EQ(NULL, ewk_back_forward_list_item_at_index_get(NULL, 0));
 }
index 96b1a47..869807c 100644 (file)
@@ -4,7 +4,7 @@
 
 #include "utc_blink_ewk_base.h"
 
-class utc_blink_ewk_view_back_forward_n_back_items_copy : public utc_blink_ewk_base
+class utc_blink_ewk_back_forward_list_n_back_items_copy : public utc_blink_ewk_base
 {
 protected:
   void LoadFinished(Evas_Object *) {
@@ -17,11 +17,11 @@ protected:
   static const char* const TEST_URL3;
 };
 
-const char* const utc_blink_ewk_view_back_forward_n_back_items_copy::TEST_URL1 = "ewk_history/page1.html";
-const char* const utc_blink_ewk_view_back_forward_n_back_items_copy::TEST_URL2 = "ewk_history/page2.html";
-const char* const utc_blink_ewk_view_back_forward_n_back_items_copy::TEST_URL3 = "ewk_history/page3.html";
+const char* const utc_blink_ewk_back_forward_list_n_back_items_copy::TEST_URL1 = "ewk_history/page1.html";
+const char* const utc_blink_ewk_back_forward_list_n_back_items_copy::TEST_URL2 = "ewk_history/page2.html";
+const char* const utc_blink_ewk_back_forward_list_n_back_items_copy::TEST_URL3 = "ewk_history/page3.html";
 
-TEST_F(utc_blink_ewk_view_back_forward_n_back_items_copy, LESS_ITEMS_TEST)
+TEST_F(utc_blink_ewk_back_forward_list_n_back_items_copy, LESS_ITEMS_TEST)
 {
   // load 3 pages to get some interesting history
   ASSERT_EQ(EINA_TRUE, ewk_view_url_set(GetEwkWebView(), GetResourceUrl(TEST_URL1).c_str()));
@@ -50,7 +50,7 @@ TEST_F(utc_blink_ewk_view_back_forward_n_back_items_copy, LESS_ITEMS_TEST)
   eina_list_free(back_list);
 }
 
-TEST_F(utc_blink_ewk_view_back_forward_n_back_items_copy, EQUAL_ITEMS_TEST)
+TEST_F(utc_blink_ewk_back_forward_list_n_back_items_copy, EQUAL_ITEMS_TEST)
 {
   // load 3 pages to get some interesting history
   ASSERT_EQ(EINA_TRUE, ewk_view_url_set(GetEwkWebView(), GetResourceUrl(TEST_URL1).c_str()));
@@ -107,7 +107,7 @@ TEST_F(utc_blink_ewk_view_back_forward_n_back_items_copy, EQUAL_ITEMS_TEST)
   eina_list_free(back_list);
 }
 
-TEST_F(utc_blink_ewk_view_back_forward_n_back_items_copy, MORE_ITEMS_TEST)
+TEST_F(utc_blink_ewk_back_forward_list_n_back_items_copy, MORE_ITEMS_TEST)
 {
   // load 3 pages to get some interesting history
   ASSERT_EQ(EINA_TRUE, ewk_view_url_set(GetEwkWebView(), GetResourceUrl(TEST_URL1).c_str()));
@@ -144,7 +144,7 @@ TEST_F(utc_blink_ewk_view_back_forward_n_back_items_copy, MORE_ITEMS_TEST)
   eina_list_free(back_list);
 }
 
-TEST_F(utc_blink_ewk_view_back_forward_n_back_items_copy, EMPTY_TEST)
+TEST_F(utc_blink_ewk_back_forward_list_n_back_items_copy, EMPTY_TEST)
 {
   Ewk_Back_Forward_List *list = ewk_view_back_forward_list_get(GetEwkWebView());
   ASSERT_TRUE(list);
@@ -152,7 +152,7 @@ TEST_F(utc_blink_ewk_view_back_forward_n_back_items_copy, EMPTY_TEST)
   ASSERT_EQ(0, eina_list_count(back_list));
 }
 
-TEST_F(utc_blink_ewk_view_back_forward_n_back_items_copy, NULL_TEST)
+TEST_F(utc_blink_ewk_back_forward_list_n_back_items_copy, NULL_TEST)
 {
   ASSERT_FALSE(ewk_back_forward_list_n_back_items_copy(NULL, -1));
 }
index a14ac92..ea9cb04 100644 (file)
@@ -4,7 +4,7 @@
 
 #include "utc_blink_ewk_base.h"
 
-class utc_blink_ewk_view_back_forward_n_forward_items_copy : public utc_blink_ewk_base
+class utc_blink_ewk_back_forward_list_n_forward_items_copy : public utc_blink_ewk_base
 {
 protected:
   void LoadFinished(Evas_Object *) {
@@ -17,11 +17,11 @@ protected:
   static const char* const TEST_URL3;
 };
 
-const char* const utc_blink_ewk_view_back_forward_n_forward_items_copy::TEST_URL1 = "ewk_history/page1.html";
-const char* const utc_blink_ewk_view_back_forward_n_forward_items_copy::TEST_URL2 = "ewk_history/page2.html";
-const char* const utc_blink_ewk_view_back_forward_n_forward_items_copy::TEST_URL3 = "ewk_history/page3.html";
+const char* const utc_blink_ewk_back_forward_list_n_forward_items_copy::TEST_URL1 = "ewk_history/page1.html";
+const char* const utc_blink_ewk_back_forward_list_n_forward_items_copy::TEST_URL2 = "ewk_history/page2.html";
+const char* const utc_blink_ewk_back_forward_list_n_forward_items_copy::TEST_URL3 = "ewk_history/page3.html";
 
-TEST_F(utc_blink_ewk_view_back_forward_n_forward_items_copy, LESS_ITEMS_TEST)
+TEST_F(utc_blink_ewk_back_forward_list_n_forward_items_copy, LESS_ITEMS_TEST)
 {
   // load 3 pages to get some interesting history
   ASSERT_EQ(EINA_TRUE, ewk_view_url_set(GetEwkWebView(), GetResourceUrl(TEST_URL1).c_str()));
@@ -55,7 +55,7 @@ TEST_F(utc_blink_ewk_view_back_forward_n_forward_items_copy, LESS_ITEMS_TEST)
   eina_list_free(fwd_list);
 }
 
-TEST_F(utc_blink_ewk_view_back_forward_n_forward_items_copy, EQUAL_ITEMS_TEST)
+TEST_F(utc_blink_ewk_back_forward_list_n_forward_items_copy, EQUAL_ITEMS_TEST)
 {
   // load 3 pages to get some interesting history
   ASSERT_EQ(EINA_TRUE, ewk_view_url_set(GetEwkWebView(), GetResourceUrl(TEST_URL1).c_str()));
@@ -117,7 +117,7 @@ TEST_F(utc_blink_ewk_view_back_forward_n_forward_items_copy, EQUAL_ITEMS_TEST)
   eina_list_free(forward_list);
 }
 
-TEST_F(utc_blink_ewk_view_back_forward_n_forward_items_copy, MORE_ITEMS_TEST)
+TEST_F(utc_blink_ewk_back_forward_list_n_forward_items_copy, MORE_ITEMS_TEST)
 {
   // load 3 pages to get some interesting history
   ASSERT_EQ(EINA_TRUE, ewk_view_url_set(GetEwkWebView(), GetResourceUrl(TEST_URL1).c_str()));
@@ -159,7 +159,7 @@ TEST_F(utc_blink_ewk_view_back_forward_n_forward_items_copy, MORE_ITEMS_TEST)
   eina_list_free(fwd_list);
 }
 
-TEST_F(utc_blink_ewk_view_back_forward_n_forward_items_copy, EMPTY_TEST)
+TEST_F(utc_blink_ewk_back_forward_list_n_forward_items_copy, EMPTY_TEST)
 {
   Ewk_Back_Forward_List *list = ewk_view_back_forward_list_get(GetEwkWebView());
   ASSERT_TRUE(list);
@@ -167,7 +167,7 @@ TEST_F(utc_blink_ewk_view_back_forward_n_forward_items_copy, EMPTY_TEST)
   ASSERT_EQ(0, eina_list_count(fwd_list));
 }
 
-TEST_F(utc_blink_ewk_view_back_forward_n_forward_items_copy, NULL_TEST)
+TEST_F(utc_blink_ewk_back_forward_list_n_forward_items_copy, NULL_TEST)
 {
   ASSERT_FALSE(ewk_back_forward_list_n_forward_items_copy(NULL, -1));
 }
index 44da018..875a066 100755 (executable)
@@ -8,7 +8,7 @@
 
 #define URL "https://www.pcwebshop.co.uk"
 
-class utc_blink_ewk_certificate_pem_get : public utc_blink_ewk_base
+class utc_blink_ewk_certificate_policy_decision_certificate_pem_get : public utc_blink_ewk_base
 {
 
 protected:
@@ -31,7 +31,7 @@ protected:
   static void policy_decision(void* data, Evas_Object* webview, void* event_info)
   {
     utc_message("[policy decision] :: \n");
-    utc_blink_ewk_certificate_pem_get *owner = static_cast<utc_blink_ewk_certificate_pem_get*>(data);
+    utc_blink_ewk_certificate_policy_decision_certificate_pem_get *owner = static_cast<utc_blink_ewk_certificate_policy_decision_certificate_pem_get*>(data);
 
     Ewk_Certificate_Policy_Decision* policy = (Ewk_Certificate_Policy_Decision*)event_info;
 
@@ -44,7 +44,7 @@ protected:
 /**
 * @brief Checking whether certification request confirmation works properly.
 */
-TEST_F(utc_blink_ewk_certificate_pem_get, POS_TEST)
+TEST_F(utc_blink_ewk_certificate_policy_decision_certificate_pem_get, POS_TEST)
 {
   Eina_Bool result = ewk_view_url_set(GetEwkWebView(), URL);
 
@@ -64,7 +64,7 @@ TEST_F(utc_blink_ewk_certificate_pem_get, POS_TEST)
 * @brief Checking whether function works properly in case of NULL of a webview.
 */
 /*  To be implemented
-TEST_F(utc_blink_ewk_certificate_pem_get, NEG_TEST)
+TEST_F(utc_blink_ewk_certificate_policy_decision_certificate_pem_get, NEG_TEST)
 {
   is_failed = EINA_FALSE;
   is_Accepted = EINA_FALSE;
index 733a961..d66485b 100755 (executable)
@@ -8,7 +8,7 @@
 
 #define URL "https://www.pcwebshop.co.uk"
 
-class utc_blink_ewk_certificate_url_get  : public utc_blink_ewk_base
+class utc_blink_ewk_certificate_policy_decision_url_get  : public utc_blink_ewk_base
 {
 
  protected:
@@ -31,7 +31,7 @@ class utc_blink_ewk_certificate_url_get  : public utc_blink_ewk_base
     static void policy_decision(void* data, Evas_Object* webview, void* event_info)
     {
         utc_message("[policy decision] :: \n");
-        utc_blink_ewk_certificate_url_get *owner = static_cast<utc_blink_ewk_certificate_url_get*>(data);
+        utc_blink_ewk_certificate_policy_decision_url_get *owner = static_cast<utc_blink_ewk_certificate_policy_decision_url_get*>(data);
 
         Ewk_Certificate_Policy_Decision* policy = (Ewk_Certificate_Policy_Decision*)event_info;
 
@@ -44,7 +44,7 @@ class utc_blink_ewk_certificate_url_get  : public utc_blink_ewk_base
 /**
 * @brief Checking whether certification request confirmation works properly.
 */
-TEST_F(utc_blink_ewk_certificate_url_get, POS_TEST)
+TEST_F(utc_blink_ewk_certificate_policy_decision_url_get, POS_TEST)
 {
     Eina_Bool result = ewk_view_url_set(GetEwkWebView(), URL);
 
index f47220d..6779a2f 100755 (executable)
@@ -4,7 +4,7 @@
 
 #include "utc_blink_ewk_base.h"
 
-class utc_blink_ewk_context_cache_disabled : public utc_blink_ewk_base
+class utc_blink_ewk_context_cache_disabled_set : public utc_blink_ewk_base
 {
 protected:
 };
@@ -12,7 +12,7 @@ protected:
 /**
  * @brief Checking whether cache is cleared.
  */
-TEST_F(utc_blink_ewk_context_cache_disabled, POS_TEST1)
+TEST_F(utc_blink_ewk_context_cache_disabled_set, POS_TEST1)
 {
   Ewk_Context* context = ewk_context_default_get();
   if (!context) {
@@ -25,7 +25,7 @@ TEST_F(utc_blink_ewk_context_cache_disabled, POS_TEST1)
   EXPECT_EQ(result, EINA_TRUE);
 }
 
-TEST_F(utc_blink_ewk_context_cache_disabled, POS_TEST2)
+TEST_F(utc_blink_ewk_context_cache_disabled_set, POS_TEST2)
 {
   Eina_Bool result = ewk_context_cache_disabled_set(ewk_context_default_get(), false);
   if (!result) {
@@ -36,7 +36,7 @@ TEST_F(utc_blink_ewk_context_cache_disabled, POS_TEST2)
 /**
  * @brief Checking whether function works properly in case of NULL of a context.
  */
-TEST_F(utc_blink_ewk_context_cache_disabled, NEG_TEST)
+TEST_F(utc_blink_ewk_context_cache_disabled_set, NEG_TEST)
 {
   Eina_Bool result = ewk_context_cache_disabled_set(NULL, true);
   if (result) {
index a7a9873..c11723b 100755 (executable)
@@ -4,14 +4,14 @@
 
 #include "utc_blink_ewk_base.h"
 
-class utc_blink_ewk_settings_load_images_automatically_set : public utc_blink_ewk_base {
+class utc_blink_ewk_settings_loads_images_automatically_set : public utc_blink_ewk_base {
 };
 
 
 /**
  * @brief Tests if returns TRUE when initiated with a correct webview and set to TRUE.
  */
-TEST_F(utc_blink_ewk_settings_load_images_automatically_set, POS_TEST1)
+TEST_F(utc_blink_ewk_settings_loads_images_automatically_set, POS_TEST1)
 {
   Ewk_Settings* settings = ewk_view_settings_get(GetEwkWebView());
   if (!settings) {
@@ -29,7 +29,7 @@ TEST_F(utc_blink_ewk_settings_load_images_automatically_set, POS_TEST1)
 /**
  * @brief Tests if returns FALSE when initiated with a correct webview and set to FALSE.
  */
-TEST_F(utc_blink_ewk_settings_load_images_automatically_set, POS_TEST2)
+TEST_F(utc_blink_ewk_settings_loads_images_automatically_set, POS_TEST2)
 {
   Ewk_Settings* settings = ewk_view_settings_get(GetEwkWebView());
   if (!settings) {
@@ -47,7 +47,7 @@ TEST_F(utc_blink_ewk_settings_load_images_automatically_set, POS_TEST2)
 /**
  * @brief Tests if returns FALSE when initiated with NULL webview.
  */
-TEST_F(utc_blink_ewk_settings_load_images_automatically_set, NEG_TEST)
+TEST_F(utc_blink_ewk_settings_loads_images_automatically_set, NEG_TEST)
 {
   Eina_Bool result = ewk_settings_loads_images_automatically_set(NULL, EINA_TRUE);
   EXPECT_EQ(result, EINA_FALSE);
index 604cdc2..302db12 100755 (executable)
@@ -4,7 +4,7 @@
 
 #include "utc_blink_ewk_base.h"
 
-class utc_blink_ewk_user_media_permission_suspend : public utc_blink_ewk_base
+class utc_blink_ewk_user_media_permission_request_suspend : public utc_blink_ewk_base
 {
 protected:
   void PostSetUp()
@@ -22,7 +22,7 @@ protected:
     utc_message("[media permission handler] ::");
     if(data)
     {
-      utc_blink_ewk_user_media_permission_suspend *owner= static_cast<utc_blink_ewk_user_media_permission_suspend*>(data);
+      utc_blink_ewk_user_media_permission_request_suspend *owner= static_cast<utc_blink_ewk_user_media_permission_request_suspend*>(data);
       Ewk_User_Media_Permission_Request* media_permission_request = static_cast<Ewk_User_Media_Permission_Request*>(event_info);
       if (!media_permission_request) {
         owner->EventLoopStop(Failure);
@@ -37,7 +37,7 @@ protected:
 /**
   * @brief Checking whether sending cancellation notification for authentication challenge works properly.
   */
-TEST_F(utc_blink_ewk_user_media_permission_suspend, POS_TEST)
+TEST_F(utc_blink_ewk_user_media_permission_request_suspend, POS_TEST)
 {
   if( !ewk_view_url_set(GetEwkWebView(), "http://shinydemos.com/explode/"))
     utc_fail();
@@ -52,7 +52,7 @@ TEST_F(utc_blink_ewk_user_media_permission_suspend, POS_TEST)
 /**
   * @brief Checking whether function works properly in case of NULL of a webview.
   */
-TEST_F(utc_blink_ewk_user_media_permission_suspend, NEG_TEST)
+TEST_F(utc_blink_ewk_user_media_permission_request_suspend, NEG_TEST)
 {
   Eina_Bool result = ewk_view_url_set(NULL, "http://shinydemos.com/explode/");
   if (result)
index b7a8a97..a707bde 100755 (executable)
@@ -4,7 +4,7 @@
 
 #include "utc_blink_ewk_base.h"
 
-class utc_blink_ewk_notification_closed : public utc_blink_ewk_base
+class utc_blink_ewk_view_notification_closed : public utc_blink_ewk_base
 {
  protected:
   /* Callback for "notification,permission,request" */
@@ -23,7 +23,7 @@ class utc_blink_ewk_notification_closed : public utc_blink_ewk_base
     utc_message("[notificationShow] :: \n");
     if(!data)
       utc_fail();
-    utc_blink_ewk_notification_closed* owner=static_cast<utc_blink_ewk_notification_closed*>(data);
+    utc_blink_ewk_view_notification_closed* owner=static_cast<utc_blink_ewk_view_notification_closed*>(data);
 
     Ewk_Context* context = ewk_view_context_get(webview);
     if (!event_info || !context)
@@ -55,12 +55,12 @@ protected:
   Ewk_Notification* old_notification;
 };
 
-const char*const utc_blink_ewk_notification_closed::sample="common/sample_notification_1.html";
+const char*const utc_blink_ewk_view_notification_closed::sample="common/sample_notification_1.html";
 
 /**
 * @brief Positive test case for ewk_notification_showed()
 */
-TEST_F(utc_blink_ewk_notification_closed, POS_TEST)
+TEST_F(utc_blink_ewk_view_notification_closed, POS_TEST)
 {
   if(!ewk_view_url_set(GetEwkWebView(), GetResourceUrl(sample).c_str()))
     utc_fail();
@@ -77,9 +77,9 @@ TEST_F(utc_blink_ewk_notification_closed, POS_TEST)
 /**
 * @brief Checking whether function works properly in case of NULL value pass
 */
-TEST_F(utc_blink_ewk_notification_closed, NEG_TEST)
+TEST_F(utc_blink_ewk_view_notification_closed, NEG_TEST)
 {
-  ewk_notification_showed(NULL, 0);
+  ewk_view_notification_closed(NULL, 0);
   /* If NULL argument passing won't give segmentation fault negative test case will pass */
   utc_pass();
 }