unittest: pass_gtest: Fix thermal monitor dbus path 84/223784/2
authorChanwoo Choi <cw00.choi@samsung.com>
Tue, 4 Feb 2020 02:28:57 +0000 (11:28 +0900)
committerChanwoo Choi <cw00.choi@samsung.com>
Tue, 4 Feb 2020 03:38:47 +0000 (12:38 +0900)
The commit a33200bbbe14 ("pass: Change DBUS interface of thermal monitor")
changed the Thermal Monitor dbus path/interface as following:
In order to support the unittest of Thermal Monitor, fix the thermal monitor
dbus path.

[Before]
DBUS_THERMAL_INTERFACE "org.tizen.system.pass.monitor.thermal"
DBUS_THERMAL_PATH      "/Org/Tizen/System/Pass/Monitor/Thermal"
[After]
DBUS_THERMAL_INTERFACE "org.tizen.system.thermal"
DBUS_THERMAL_PATH      "/Org/Tizen/System/Thermal"

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

index dd80a17d6ac4b862f397505e7c9e35e79dce0aca..9bef5d14a32012ea859abe87b611fe8db077054d 100644 (file)
@@ -182,20 +182,20 @@ TEST_F(PowerMgntTest, ThermalMonitorSendDbus_RestartsThermalMonitor)
 {
        gint32 ret;
 
-       ret = pass_test_method_call(DBUS_PASS_PATH"/Monitor/Thermal",
-                                       DBUS_PASS_BUS_NAME".monitor.thermal",
+       ret = pass_test_method_call(DBUS_THERMAL_PATH,
+                                       DBUS_THERMAL_INTERFACE,
                                        "start",
                                        NULL);
        ASSERT_EQ(ret, 0) << "ThermalMonitorStart Failed";
 
-       ret = pass_test_method_call(DBUS_PASS_PATH"/Monitor/Thermal",
-                                       DBUS_PASS_BUS_NAME".monitor.thermal",
+       ret = pass_test_method_call(DBUS_THERMAL_PATH,
+                                       DBUS_THERMAL_INTERFACE,
                                        "stop",
                                        NULL);
        ASSERT_EQ(ret, 0) << "ThermalMonitorStop Failed";
 
-       ret = pass_test_method_call(DBUS_PASS_PATH"/Monitor/Thermal",
-                                       DBUS_PASS_BUS_NAME".monitor.thermal",
+       ret = pass_test_method_call(DBUS_THERMAL_PATH,
+                                       DBUS_THERMAL_INTERFACE,
                                        "start",
                                        NULL);
        ASSERT_EQ(ret, 0) << "ThermalMonitorStart Failed";