mirror of
https://gitee.com/openharmony/arkui_ace_engine
synced 2024-10-08 00:44:23 +00:00
删除无断言用例
Signed-off-by: kangchongtao <kangchongtao@huawei.com>
This commit is contained in:
parent
49a3cd790b
commit
01697ad11a
@ -1381,34 +1381,6 @@ HWTEST_F(PipelineContextTestNg, PipelineContextTestNg028, TestSize.Level1)
|
||||
EXPECT_DOUBLE_EQ(context_->designWidthScale_, DEFAULT_DOUBLE1);
|
||||
}
|
||||
|
||||
/**
|
||||
* @tc.name: PipelineContextTestNg029
|
||||
* @tc.desc: Test ThemeManager and SharedImageManager multithread.
|
||||
* @tc.type: FUNC
|
||||
*/
|
||||
HWTEST_F(PipelineContextTestNg, PipelineContextTestNg029, TestSize.Level1)
|
||||
{
|
||||
std::vector<std::thread> threads;
|
||||
for (int i = 0; i < 20; ++i) {
|
||||
threads.emplace_back(std::thread([]() { context_->GetOrCreateSharedImageManager(); }));
|
||||
}
|
||||
for (auto&& thread : threads) {
|
||||
thread.join();
|
||||
}
|
||||
|
||||
threads.clear();
|
||||
for (int i = 0; i < 20; ++i) {
|
||||
if (i == 10) {
|
||||
context_->SetThemeManager(AceType::MakeRefPtr<MockThemeManager>());
|
||||
} else {
|
||||
threads.emplace_back(std::thread([]() { context_->GetThemeManager(); }));
|
||||
}
|
||||
}
|
||||
for (auto&& thread : threads) {
|
||||
thread.join();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @tc.name: PipelineContextTestNg030
|
||||
* @tc.desc: Test RestoreNodeInfo, GetStoredNodeInfo, StoreNode and GetRestoreInfo.
|
||||
|
Loading…
Reference in New Issue
Block a user