utc_webkit2_ewk_context_local_file_system_path_set_func \
utc_webkit2_ewk_context_memory_sampler_start_func \
utc_webkit2_ewk_context_memory_sampler_stop_func \
+ utc_webkit2_ewk_context_memory_saving_mode_set_func \
utc_webkit2_ewk_context_menu_item_append_as_action_func \
utc_webkit2_ewk_context_menu_item_count_func \
utc_webkit2_ewk_context_menu_item_enabled_get_func \
/unit_test/webkit2/utc_webkit2_ewk_context_local_file_system_path_set_func
/unit_test/webkit2/utc_webkit2_ewk_context_memory_sampler_start_func
/unit_test/webkit2/utc_webkit2_ewk_context_memory_sampler_stop_func
+/unit_test/webkit2/utc_webkit2_ewk_context_memory_saving_mode_set_func
/unit_test/webkit2/utc_webkit2_ewk_context_menu_item_append_as_action_func
/unit_test/webkit2/utc_webkit2_ewk_context_menu_item_count_func
/unit_test/webkit2/utc_webkit2_ewk_context_menu_item_enabled_get_func
--- /dev/null
+/*
+ * WebKit2 EFL
+ *
+ * Copyright (c) 2012 Samsung Electronics Co., Ltd.
+ *
+ * This library is free software; you can redistribute it and/or modify it under
+ * the terms of the GNU Lesser General Public License as published by the
+ * Free Software Foundation; either version 2.1 of the License, or (at your option)
+ * any later version.
+ *
+ * This library is distributed in the hope that it will be useful, but WITHOUT ANY
+ * WARRANTY; without even the implied warranty of MERCHANTABILITY or
+ * FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
+ * License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public License
+ * along with this library; if not, write to the Free Software Foundation, Inc., 51
+ * Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ *
+ */
+
+/**
+ * @file utc_webkit2_ewk_context_memory_saving_mode_set_func.c
+ * @author Eunsol Park <eunsol47.park@samsung.com>
+ * @date 2013-08-06
+ * @brief Tests EWK function ewk_context_memory_saving_mode_set()
+ */
+
+/* Define those macros _before_ you include the utc_webkit2_ewk.h header file. */
+#define TESTED_FUN_NAME ewk_context_memory_saving_mode_set
+#define POSITIVE_TEST_FUN_NUM 1
+#define NEGATIVE_TEST_FUN_NUM 1
+
+#include "utc_webkit2_ewk.h"
+
+/* Startup and cleanup functions */
+static void startup(void)
+{
+ utc_webkit2_ewk_test_init();
+}
+
+static void cleanup(void)
+{
+ utc_webkit2_ewk_test_end();
+}
+
+/**
+ * @brief Tests whether the function works properly for case Memory saving mode set true
+ */
+POS_TEST_FUN(1)
+{
+ Ewk_Context* context = ewk_view_context_get(test_view.webview);
+ ewk_context_memory_saving_mode_set(context, EINA_TRUE);
+ uts_pass();
+}
+
+/**
+ * @brief Tests whether the function works properly for case Memory saving mode set false
+ */
+NEG_TEST_FUN(1)
+{
+ Ewk_Context* context = ewk_view_context_get(test_view.webview);
+ ewk_context_memory_saving_mode_set(context, EINA_FALSE);
+ uts_pass();
+}