Add coverage
authorJunghyun Yeon <jungh.yeon@samsung.com>
Fri, 4 Jun 2021 07:43:38 +0000 (16:43 +0900)
committer연정현/Tizen Platform Lab(SR)/Staff Engineer/삼성전자 <jungh.yeon@samsung.com>
Tue, 8 Jun 2021 01:23:12 +0000 (10:23 +0900)
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
test/unit_tests/parcel_utils.cc

index 706a1c73f19d5df0e0652e0f7cb31b71145d0990..7ad234bd3ecf596fa75aa4c6e9eb310ee6f7031f 100644 (file)
@@ -129,8 +129,22 @@ application_x* GetTestApplication(std::string appid) {
   application->datacontrol =
       g_list_append(application->datacontrol, datacontrol);
 
-  application->background_category = g_list_append(
+  application->background_category = g_list_prepend(
       application->background_category, strdup("enable"));
+  application->background_category = g_list_prepend(
+      application->background_category, strdup("media"));
+  application->background_category = g_list_prepend(
+      application->background_category, strdup("download"));
+  application->background_category = g_list_prepend(
+      application->background_category, strdup("background-network"));
+  application->background_category = g_list_prepend(
+      application->background_category, strdup("location"));
+  application->background_category = g_list_prepend(
+      application->background_category, strdup("sensor"));
+  application->background_category = g_list_prepend(
+      application->background_category, strdup("iot-communication"));
+  application->background_category = g_list_prepend(
+      application->background_category, strdup("system"));
 
   appcontrol_x* appcontrol =
       reinterpret_cast<appcontrol_x*>(calloc(1, sizeof(appcontrol_x)));