unittest: pass_gtest: Change name of unit tests 96/191596/1
authorChanwoo Choi <cw00.choi@samsung.com>
Mon, 10 Sep 2018 06:15:24 +0000 (15:15 +0900)
committerChanwoo Choi <cw00.choi@samsung.com>
Fri, 19 Oct 2018 00:02:36 +0000 (09:02 +0900)
Change the name of unit tests in order to improve the readability.

Change-Id: Ia18c511a36cbcf2e8c26cf0159901aaab3f32ff8
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
unittest/pass_gtest.cpp

index 60f78af..3230718 100644 (file)
@@ -22,7 +22,7 @@
 
 #include <pass/gdbus-definition.h>
 
-class PassTest : public testing::Test {
+class PowerMgntTest : public testing::Test {
 public:
        static void SetUpTestCase() {
                int ret = 0;
@@ -84,7 +84,7 @@ static gint32 pass_test_method_call(const gchar *path, const gchar *intf,
        return r;
 }
 
-TEST_F(PassTest, AppLaunch)
+TEST_F(PowerMgntTest, PmqosSendDbus_HandlesValidAppLaunch)
 {
        gint32 ret;
 
@@ -93,11 +93,9 @@ TEST_F(PassTest, AppLaunch)
                                                "AppLaunch",
                                                g_variant_new("(i)", 3000));
        ASSERT_EQ(ret, 0) << "AppLaunch Failed";
-
-
 }
 
-TEST_F(PassTest, MultipleAppLaunch)
+TEST_F(PowerMgntTest, PmqosSendDbus_HandlesValidMultipleAppLaunch)
 {
        gint32 ret;
        int i;
@@ -111,7 +109,7 @@ TEST_F(PassTest, MultipleAppLaunch)
        }
 }
 
-TEST_F(PassTest, AppLaunch_and_UltraPowerSaving)
+TEST_F(PowerMgntTest, PmqosSendDbus_HandlesValidUltraPowerSaving)
 {
        gint32 ret;
 
@@ -128,7 +126,7 @@ TEST_F(PassTest, AppLaunch_and_UltraPowerSaving)
        ASSERT_EQ(ret, 0) << "UltraPowerSaving Failed";
 }
 
-TEST_F(PassTest, HandleErrorCase)
+TEST_F(PowerMgntTest, PmqosSendDbus_HandlesInvalidInput)
 {
        gint32 ret;
 
@@ -153,7 +151,7 @@ TEST_F(PassTest, HandleErrorCase)
 
 }
 
-TEST_F(PassTest, PmQosRestart)
+TEST_F(PowerMgntTest, PmqosSendDbus_RestartsPmqos)
 {
        gint32 ret;
 
@@ -177,7 +175,7 @@ TEST_F(PassTest, PmQosRestart)
        ASSERT_EQ(ret, 0) << "PmQosStop  Faield";
 }
 
-TEST_F(PassTest, ThermalMonitorRestart)
+TEST_F(PowerMgntTest, ThermalMonitorSendDbus_RestartsThermalMonitor)
 {
        gint32 ret;
 
@@ -195,7 +193,7 @@ TEST_F(PassTest, ThermalMonitorRestart)
        ASSERT_EQ(ret, 0) << "ThermalMonitorStart Faield";
 }
 
-TEST_F(PassTest, PassCoreRestart)
+TEST_F(PowerMgntTest, CoreSendDbus_RestartsCore)
 {
        gint32 ret;
 
@@ -213,7 +211,7 @@ TEST_F(PassTest, PassCoreRestart)
        ASSERT_EQ(ret, 0) << "PassCoreStart Faield";
 }
 
-TEST_F(PassTest, PassServiceReStart)
+TEST_F(PowerMgntTest, RestartsPowerMgntService)
 {
        gint32 ret;