[M120 Migration][MM] Support W3C EME
[platform/framework/web/chromium-efl.git] / tizen_src / ewk / unittest / utc_blink_ewk_view_custom_header_add_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_custom_header_add : public utc_blink_ewk_base
8 {
9 };
10
11 /**
12  * @brief Checking whether the custom header is added properly.
13  */
14 TEST_F(utc_blink_ewk_view_custom_header_add, POS_TEST)
15 {
16   EXPECT_EQ(EINA_TRUE, ewk_view_custom_header_add(GetEwkWebView(), "Test-Name", "Test-Value"));
17 }
18
19 /**
20  * @brief Checking whether function works properly in case of NULL of a webview.
21  */
22 TEST_F(utc_blink_ewk_view_custom_header_add, NEG_TEST)
23 {
24   EXPECT_EQ(EINA_FALSE, ewk_view_custom_header_add(NULL, "Test-Name", "Test-Value"));
25 }