Fix build error in test code caused by a base type change 19/263619/1
authorJi-hoon Lee <dalton.lee@samsung.com>
Mon, 6 Sep 2021 10:25:24 +0000 (19:25 +0900)
committerJi-hoon Lee <dalton.lee@samsung.com>
Mon, 6 Sep 2021 10:25:24 +0000 (19:25 +0900)
Change-Id: Icabc735fba71657d871baaf5049cf3e063f1c33d

tests/utc/package-update-monitor/test_package_update_monitor.cpp

index 9bce7cd..6ded7dc 100644 (file)
@@ -131,7 +131,7 @@ TEST_F(DefaultFixture, UpdateStartsAndRestartsForWakeupEngineInstall) {
        std::string wakeup_engine_appid{"wakeup-engine-default"};
 
        clientInfo.getItems()[0].used = true;
-       strcpy(clientInfo.getItems()[0].wakeup_engine, wakeup_engine_appid.c_str());
+       strcpy(clientInfo.getItems()[0].wakeup_engine[0], wakeup_engine_appid.c_str());
 
        monitor.GenerateFakeInstallPackageEvent(wakeup_engine_appid);
 
@@ -179,7 +179,7 @@ TEST_F(DefaultFixture, UpdateStartsAndRestartsForWakeupEngineUpdate) {
        std::string wakeup_engine_appid{"wakeup-engine-default"};
 
        clientInfo.getItems()[0].used = true;
-       strcpy(clientInfo.getItems()[0].wakeup_engine, wakeup_engine_appid.c_str());
+       strcpy(clientInfo.getItems()[0].wakeup_engine[0], wakeup_engine_appid.c_str());
 
        monitor.GenerateFakeUpdatePackageEvent(wakeup_engine_appid);