#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 *) {
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()));
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);
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));
}
#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 *) {
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()));
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()));
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()));
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);
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));
}
#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 *) {
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()));
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()));
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()));
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);
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));
}
#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:
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;
/**
* @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);
* @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;
#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:
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;
/**
* @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);
#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:
};
/**
* @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) {
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) {
/**
* @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) {
#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) {
/**
* @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) {
/**
* @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);
#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()
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);
/**
* @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();
/**
* @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)
#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" */
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)
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();
/**
* @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();
}