Merge "[Cherry-pick] Refactor WrapShape classes to BasicShape" into tizen_2.1
[framework/web/webkit-efl.git] / TC / unit_test / webkit2 / utc_webkit2_ewk_context_icon_database_delete_all_func.c
1 /*
2  * WebKit2 EFL
3  *
4  * Copyright (c) 2012 Samsung Electronics Co., Ltd.
5  *
6  * This library is free software; you can redistribute it and/or modify it under
7  * the terms of the GNU Lesser General Public License as published by the
8  * Free Software Foundation; either version 2.1 of the License, or (at your option)
9  * any later version.
10  *
11  * This library is distributed in the hope that it will be useful, but WITHOUT ANY
12  * WARRANTY; without even the implied warranty of MERCHANTABILITY or
13  * FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
14  * License for more details.
15  *
16  * You should have received a copy of the GNU Lesser General Public License
17  * along with this library; if not, write to the Free Software Foundation, Inc., 51
18  * Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
19  *
20  */
21
22 /**
23  * @file utc_webkit2_ewk_context_icon_database_delete_all_func.c
24  * @author Changhyup Jwa <ch.jwa@samsung.com>
25  * @date 2012-06-15
26  * @brief Tests EWK function ewk_context_icon_database_delete_all()
27  */
28
29 /* Define those macros _before_ you include the utc_webkit2_ewk.h header file. */
30 #define TESTED_FUN_NAME ewk_context_icon_database_delete_all
31 #define POSITIVE_TEST_FUN_NUM 1
32 #define NEGATIVE_TEST_FUN_NUM 1
33
34 #include "utc_webkit2_ewk.h"
35
36 /* Startup and cleanup functions */
37 static void startup(void)
38 {
39     utc_webkit2_ewk_test_init();
40 }
41
42 static void cleanup(void)
43 {
44     utc_webkit2_ewk_test_end();
45 }
46
47 /**
48  * @brief Positive TC for ewk_context_icon_database_delete_all()
49  */
50 POS_TEST_FUN(1)
51 {
52     /* TODO: this code should use ewk_context_icon_database_delete_all and check its behaviour.
53     Results should be reported using one of utc_ macros */
54     Ewk_Context* defaultContext = ewk_context_default_get();
55     if (!defaultContext)
56         utc_fail();
57     ewk_context_icon_database_delete_all(defaultContext);
58     utc_pass();
59 }
60
61 /**
62  * @brief Negative TC for ewk_context_icon_database_delete_all()
63  */
64 NEG_TEST_FUN(1)
65 {
66     /* TODO: this code should use ewk_context_icon_database_delete_all and check its behaviour.
67     Results should be reported using one of utc_ macros */
68     ewk_context_icon_database_delete_all(NULL);
69     utc_pass();
70 }