From: Chanwoo Choi Date: Thu, 21 Jul 2022 07:28:38 +0000 (+0900) Subject: tests: resource-monitor-tests: Rename the test name to PhysicalResourceMonitorTest X-Git-Tag: accepted/tizen/unified/20220728.044818^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e2c95b796351e8c44ac3bc10c0daeeb329b5aa2d;p=platform%2Fcore%2Fsystem%2Fpass.git tests: resource-monitor-tests: Rename the test name to PhysicalResourceMonitorTest 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 --- diff --git a/tests/integration-test/resource-monitor-tests.cpp b/tests/integration-test/resource-monitor-tests.cpp index 71fd72f..22ba73e 100644 --- a/tests/integration-test/resource-monitor-tests.cpp +++ b/tests/integration-test/resource-monitor-tests.cpp @@ -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 attrs; - ResourceInfo( + PhysicalResourceInfo( const int type_, const char *name_, int mon_id_, @@ -180,11 +180,11 @@ public: attrs(attrs_) {} }; -class EachResourceMonitorTest : public ::testing::TestWithParam {}; +class PhysicalResourceMonitorTest : public ::testing::TestWithParam {}; -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;