diff --git a/test/unittest/device_usage_statistics_service_test.cpp b/test/unittest/device_usage_statistics_service_test.cpp index 194af777a5f2ba1e077b59c06cd67ec1d868b387..6af42a31353a23c2f3951ab835a5d3cfde90b808 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