tests: resource-monitor-tests: Rename the test name to PhysicalResourceMonitorTest accepted/tizen/unified/20220728.044818 submit/tizen/20220727.085152
authorChanwoo Choi <cw00.choi@samsung.com>
Thu, 21 Jul 2022 07:28:38 +0000 (16:28 +0900)
committerChanwoo Choi <cw00.choi@samsung.com>
Wed, 27 Jul 2022 08:24:29 +0000 (17:24 +0900)
The resource-monitor provides the both physical resources like
CPU/BUS/Display etc and logical resources such as process and
process-group. In order to add the logical resource test,
Rename the previous test name to PhysicalResourceMonitorTest.

Change-Id: I49fc0a38cc73bdc0b3a00d23582a874ff72120e6
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
tests/integration-test/resource-monitor-tests.cpp

index 71fd72f..22ba73e 100644 (file)
@@ -150,7 +150,7 @@ struct resource_attr_info {
        int attr_type;
 };
 
-class ResourceInfo {
+class PhysicalResourceInfo {
 public:
        const int type;
        const char *name;
@@ -161,7 +161,7 @@ public:
        const int num_attrs;
        vector<struct resource_attr_info> attrs;
 
-       ResourceInfo(
+       PhysicalResourceInfo(
                const int type_,
                const char *name_,
                int mon_id_,
@@ -180,11 +180,11 @@ public:
                        attrs(attrs_) {}
 };
 
-class EachResourceMonitorTest : public ::testing::TestWithParam<ResourceInfo> {};
+class PhysicalResourceMonitorTest : public ::testing::TestWithParam<PhysicalResourceInfo> {};
 
-INSTANTIATE_TEST_CASE_P (ResourceMonitorTest, EachResourceMonitorTest,
+INSTANTIATE_TEST_CASE_P (ResourceMonitorTest, PhysicalResourceMonitorTest,
        ::testing::Values (
-       ResourceInfo (
+       PhysicalResourceInfo (
                RESOURCE_TYPE_CPU,
                "RESOURCE_TYPE_CPU",
                -1,
@@ -201,7 +201,7 @@ INSTANTIATE_TEST_CASE_P (ResourceMonitorTest, EachResourceMonitorTest,
                }
        ),
 
-       ResourceInfo (
+       PhysicalResourceInfo (
                RESOURCE_TYPE_BUS,
                "RESOURCE_TYPE_BUS",
                -1,
@@ -218,7 +218,7 @@ INSTANTIATE_TEST_CASE_P (ResourceMonitorTest, EachResourceMonitorTest,
                }
        ),
 
-       ResourceInfo (
+       PhysicalResourceInfo (
                RESOURCE_TYPE_GPU,
                "RESOURCE_TYPE_GPU",
                -1,
@@ -237,7 +237,7 @@ INSTANTIATE_TEST_CASE_P (ResourceMonitorTest, EachResourceMonitorTest,
        )
 ));
 
-TEST_P(EachResourceMonitorTest, pass_resource_monitor_create_resource_and_delete)
+TEST_P(PhysicalResourceMonitorTest, pass_resource_monitor_create_resource_and_delete)
 {
        auto res = GetParam();
        int i;
@@ -261,7 +261,7 @@ TEST_P(EachResourceMonitorTest, pass_resource_monitor_create_resource_and_delete
        pass_resource_monitor_exit(res.mon_id);
 }
 
-TEST_P(EachResourceMonitorTest, pass_resource_monitor_set_resource_ctrl)
+TEST_P(PhysicalResourceMonitorTest, pass_resource_monitor_set_resource_ctrl)
 {
        auto res = GetParam();
        int i;
@@ -310,7 +310,7 @@ static int __pass_resource_monitor_set_resource_attr(int mon_id, int res_id, int
        return ret;
 }
 
-TEST_P(EachResourceMonitorTest, pass_resource_monitor_set_resource_attr)
+TEST_P(PhysicalResourceMonitorTest, pass_resource_monitor_set_resource_attr)
 {
        auto res = GetParam();
        int i;
@@ -409,7 +409,7 @@ static int __pass_resource_monitor_get_value(int mon_id, int res_id, int num_att
        return err_count ? -EINVAL : 0;
 }
 
-TEST_P(EachResourceMonitorTest, pass_resource_monitor_get_value)
+TEST_P(PhysicalResourceMonitorTest, pass_resource_monitor_get_value)
 {
        auto res = GetParam();
        int i;