From: Youngjae Shin Date: Thu, 2 Apr 2020 04:30:22 +0000 (+0900) Subject: revise client test case X-Git-Tag: submit/tizen/20200406.072047^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2bcd8b6476aed91199a878c07815e20dc5685fa2;p=platform%2Fcore%2Fsystem%2Fmodes.git revise client test case --- diff --git a/unittest/modes_test_client.cpp b/unittest/modes_test_client.cpp index 5b024c1..66f76e1 100644 --- a/unittest/modes_test_client.cpp +++ b/unittest/modes_test_client.cpp @@ -17,7 +17,9 @@ #include #include #include +#include "common/definitions.h" +#define CREATED_MODE_NAME "created" class ClientTest : public ::testing::Test { protected: void SetUp() override @@ -55,7 +57,7 @@ protected: static gboolean registerModeIdler(gpointer data) { - modes_mode_h created_mode = modes_create_mode("created", MODES_TYPE_MODE_NORMAL); + modes_mode_h created_mode = modes_create_mode(CREATED_MODE_NAME, MODES_TYPE_MODE_NORMAL); modes_action_h action_handle[2]; action_handle[0] = modes_create_action("test.printBool", "on"); action_handle[1] = modes_create_action("test.printBool", "off"); @@ -117,6 +119,7 @@ TEST_F(ClientTest, registerMode) g_idle_add(registerModeIdler, NULL); g_main_loop_run(loop); EXPECT_EQ(MODES_ERROR_NONE, result); + remove(MODES_CUSTOM_MODE_DEFAULT_DIR "/tizen_" CREATED_MODE_NAME "_mode.xml"); } TEST_F(ClientTest, undoModeEx1)