[M120 Migration][MM] Support W3C EME
[platform/framework/web/chromium-efl.git] / tizen_src / ewk / unittest / utc_blink_ewk_context_additional_plugin_path_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_context_additional_plugin_path_set : public utc_blink_ewk_base
8 {
9 protected:
10   static const char*const plugin;
11 };
12
13 const char*const utc_blink_ewk_context_additional_plugin_path_set::plugin="/tmp";
14
15 /**
16  * @brief Tests if can set additional plugin path.
17  */
18 TEST_F(utc_blink_ewk_context_additional_plugin_path_set, POS_TEST)
19 {
20   Eina_Bool result = ewk_context_additional_plugin_path_set(ewk_view_context_get(GetEwkWebView()),plugin);
21   utc_check_eq(result, EINA_TRUE);
22 }
23
24 /**
25  * @brief Tests if returns false which context is null.
26  */
27 TEST_F(utc_blink_ewk_context_additional_plugin_path_set, NEG_TEST)
28 {
29   Eina_Bool result = ewk_context_additional_plugin_path_set(NULL, NULL);
30   utc_check_ne(result, EINA_TRUE);
31 }