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.
5 #include "utc_blink_ewk_base.h"
7 class utc_blink_ewk_context_cache_disabled_set : public utc_blink_ewk_base
13 * @brief Checking whether cache is cleared.
15 TEST_F(utc_blink_ewk_context_cache_disabled_set, POS_TEST1)
17 Ewk_Context* context = ewk_context_default_get();
21 Eina_Bool result = ewk_context_cache_disabled_set(context, true);
25 EXPECT_EQ(result, EINA_TRUE);
28 TEST_F(utc_blink_ewk_context_cache_disabled_set, POS_TEST2)
30 Eina_Bool result = ewk_context_cache_disabled_set(ewk_context_default_get(), false);
34 EXPECT_EQ(result, EINA_TRUE);
37 * @brief Checking whether function works properly in case of NULL of a context.
39 TEST_F(utc_blink_ewk_context_cache_disabled_set, NEG_TEST)
41 Eina_Bool result = ewk_context_cache_disabled_set(NULL, true);
45 EXPECT_NE(result, EINA_TRUE);