Add test ewk_view_geolocation_permission_callback_set to gypi file
[platform/framework/web/chromium-efl.git] / tizen_src / ewk / unittest / utc_blink_ewk_view_encoding_custom_set_func.cpp
1 // Copyright 2014 Samsung Electronics. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "utc_blink_ewk_base.h"
6
7 class utc_blink_ewk_view_encoding_custom_set : public utc_blink_ewk_base
8 {
9 public:
10   static const char* encoding_;
11 };
12
13 const char* utc_blink_ewk_view_encoding_custom_set::encoding_ = "utf-8";
14
15 /**
16 * @brief Check whether function works well with correct webview as parameter
17 */
18 TEST_F(utc_blink_ewk_view_encoding_custom_set, POS_TEST)
19 {
20   ewk_view_encoding_custom_set(GetEwkWebView(), encoding_);
21   SUCCEED();
22 }
23
24 /**
25 * @brief Checking whether function works properly in case of NULL of a webview.
26 */
27 TEST_F(utc_blink_ewk_view_encoding_custom_set, NEG_TEST)
28 {
29   ewk_view_encoding_custom_set(NULL, encoding_);
30   SUCCEED();
31 }