From c427ac9e975187ebc45b90b4ce0e2b27a2dcb177 Mon Sep 17 00:00:00 2001 From: Youngjae Shin Date: Mon, 13 Apr 2020 12:35:21 +0900 Subject: [PATCH] revise test case names --- unittest/modes_test_client.cpp | 8 ++++---- unittest/modes_test_noti.cpp | 6 +++--- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/unittest/modes_test_client.cpp b/unittest/modes_test_client.cpp index bc95108..4784f46 100644 --- a/unittest/modes_test_client.cpp +++ b/unittest/modes_test_client.cpp @@ -121,7 +121,7 @@ TEST_F(ClientTest, registerMode) g_main_loop_run(loop); EXPECT_EQ(MODES_ERROR_NONE, result); if (0 != remove(MODES_CUSTOM_MODE_DEFAULT_DIR "/tizen_" CREATED_MODE_NAME "_mode.xml")) { - std::cout << "remove() Fail :" << MODES_CUSTOM_MODE_DEFAULT_DIR "/tizen_" CREATED_MODE_NAME "_mode.xml" << "errno = " << errno << std::endl; + std::cout << "remove() Fail :" << MODES_CUSTOM_MODE_DEFAULT_DIR "/tizen_" CREATED_MODE_NAME "_mode.xml" << " errno = " << errno << std::endl; } } @@ -143,9 +143,9 @@ TEST_F(ClientTest, undoModeEx2) TEST_F(ClientTest, getModes) { -const char* const typeList[2]= { - "MODES_TYPE_MODE_NORMAL", - "MODES_TYPE_MODE_ONESHOT" + const char* const typeList[2] = { + "MODES_TYPE_MODE_NORMAL", + "MODES_TYPE_MODE_ONESHOT" }; GList *list, *cur; diff --git a/unittest/modes_test_noti.cpp b/unittest/modes_test_noti.cpp index 183bb78..9145c84 100644 --- a/unittest/modes_test_noti.cpp +++ b/unittest/modes_test_noti.cpp @@ -128,7 +128,7 @@ unsigned char ClientNotiTest::calledbit4 = 0; GMainLoop *ClientNotiTest::loop = NULL; const char *ClientNotiTest::notiTestMode = "ex2"; -TEST_F(ClientNotiTest, notiConnect) +TEST_F(ClientNotiTest, subscribeCB) { const char *testMode = "ex2"; modes_noti_ID id = modes_subscribe_mode_changes(handle, notiFunc, (void*)testMode); @@ -144,7 +144,7 @@ TEST_F(ClientNotiTest, notiConnect) modes_unsubscribe_mode_changes(handle, id); } -TEST_F(ClientNotiTest, notiMultiCb) +TEST_F(ClientNotiTest, subscribeMultiCb) { calledbit1 = 0; calledbit2 = 0; @@ -179,7 +179,7 @@ TEST_F(ClientNotiTest, notiMultiCb) EXPECT_EQ(calledbit4, 1 << 0 | 1 << 1); } -TEST_F(ClientNotiTest, essential) +TEST_F(ClientNotiTest, essentialAction) { const char *testMode = "essential_ex"; modes_noti_ID id = modes_subscribe_mode_changes(handle, changeFn, (void*)testMode); -- 2.7.4