!1050 新增部分DT用例

Merge pull request !1050 from 和锦涛/master
This commit is contained in:
openharmony_ci 2024-05-06 04:09:04 +00:00 committed by Gitee
commit 3edefea91a
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -925,6 +925,22 @@ HWTEST_F(AccessibilityConfigImplTest, UnsubscribeConfigObserver_001, TestSize.Le
GTEST_LOG_(INFO) << "UnsubscribeConfigObserver_001 end";
}
/**
* @tc.number: UnsubscribeConfigObserver_002
* @tc.name: UnsubscribeConfigObserver_002
* @tc.desc: Test function UnsubscribeConfigObserver
*/
HWTEST_F(AccessibilityConfigImplTest, UnsubscribeConfigObserver_002, TestSize.Level1)
{
GTEST_LOG_(INFO) << "UnsubscribeConfigObserver_002 start";
std::shared_ptr<AccessibilityConfigObserver> observer = nullptr;
auto &instance = OHOS::AccessibilityConfig::AccessibilityConfig::GetInstance();
instance.InitializeContext();
instance.UnsubscribeConfigObserver(CONFIG_ID_MAX, observer);
GTEST_LOG_(INFO) << "UnsubscribeConfigObserver_002 end";
}
/**
* @tc.number: SubscribeEnableAbilityListsObserver_001
* @tc.name: SubscribeEnableAbilityListsObserver_001