!50 【轻量级 PR】:update test/unittest/security_collector/interface_test/src/collector_interface_test.cpp.

Merge pull request !50 from 王毅/N/A
This commit is contained in:
openharmony_ci 2024-08-21 10:56:23 +00:00 committed by Gitee
commit 3cc21e6c9e
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -193,7 +193,7 @@ HWTEST_F(CollectorInterfaceTest, UnSubscribe002, testing::ext::TestSize.Level1)
new(std::nothrow) SecurityCollector::SecurityCollectorManagerCallbackService(nullptr);
manager.eventListeners_.insert({subscriber, callback});
int ret = manager.Unsubscribe(subscriber);
EXPECT_EQ(ret, SecurityCollector::BAD_PARAM);
EXPECT_EQ(ret, SecurityCollector::NO_PERMISSION);
}
HWTEST_F(CollectorInterfaceTest, UnSubscribe003, testing::ext::TestSize.Level1)