From 8890819c767c75558fd5b36f3893ca72a46643c6 Mon Sep 17 00:00:00 2001 From: Nicolas Date: Wed, 21 Feb 2024 11:18:35 +0000 Subject: [PATCH] =?UTF-8?q?=E5=9B=9E=E9=80=80=20'Pull=20Request=20!423=20:?= =?UTF-8?q?=20=E4=BF=AE=E6=94=B9UT=E7=94=A8=E4=BE=8B'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../device_usage_statistics_service_test.cpp | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/test/unittest/device_usage_statistics_service_test.cpp b/test/unittest/device_usage_statistics_service_test.cpp index 194af77..6af42a3 100644 --- a/test/unittest/device_usage_statistics_service_test.cpp +++ b/test/unittest/device_usage_statistics_service_test.cpp @@ -854,6 +854,24 @@ HWTEST_F(DeviceUsageStatisticsServiceTest, BundleActiveGroupControllerTest_007, coreObject->bundleGroupController_->IsBundleIdle("test", userId); } +/* + * @tc.name: BundleActiveGroupControllerTest_008 + * @tc.desc: test the interface + * @tc.type: FUNC + * @tc.require: DTS2023121404861 + */ +HWTEST_F(DeviceUsageStatisticsServiceTest, BundleActiveGroupControllerTest_008, + Function | MediumTest | Level0) +{ + auto coreObject = std::make_shared(); + coreObject->bundleGroupController_ = std::make_shared(true); + coreObject->InitBundleGroupController(); + int32_t userId = 100; + int32_t appGroup = 0; + coreObject->bundleGroupController_->QueryAppGroup(appGroup, nullptr, userId); + coreObject->bundleGroupController_->QueryAppGroup(appGroup, "test", userId); +} + /* * @tc.name: BundleActiveGroupControllerTest_009 * @tc.desc: test the interface -- Gitee