[M120 Migration][MM] Support W3C EME
[platform/framework/web/chromium-efl.git] / tizen_src / ewk / unittest / utc_blink_ewk_settings_spdy_enabled_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_settings_spdy_enabled_set : public utc_blink_ewk_base {
8 };
9
10 /**
11 * @brief Tests if returns TRUE when initiated with correct settings and
12 * enabled spdy set to TRUE.
13 */
14 TEST_F(utc_blink_ewk_settings_spdy_enabled_set, POS_TEST)
15 {
16   Ewk_Settings* settings = ewk_view_settings_get(GetEwkWebView());
17   ASSERT_TRUE(settings);
18
19   Eina_Bool result = ewk_settings_spdy_enabled_set(settings, EINA_TRUE);
20   ASSERT_EQ(EINA_TRUE, result);
21 }
22
23 /**
24 * @brief Tests if returns FALSE when initiated with NULL settings.
25 */
26 TEST_F(utc_blink_ewk_settings_spdy_enabled_set, NEG_TEST)
27 {
28   Eina_Bool result = ewk_settings_spdy_enabled_set(NULL, EINA_FALSE);
29   EXPECT_NE(result, EINA_TRUE);
30 }