mirror of
https://gitee.com/openharmony/arkui_ace_engine
synced 2024-11-23 23:21:05 +00:00
modify security comnponent unit test
Signed-off-by: libing23 <libing23@huawei.com>
This commit is contained in:
parent
0031606ce7
commit
3769484b66
@ -88,12 +88,12 @@ foreach(item, ace_platforms) {
|
||||
part_name = ace_engine_part
|
||||
testonly = true
|
||||
sources = [
|
||||
"$ace_root/frameworks/base/test/mock/mock_ace_container.cpp",
|
||||
"$ace_root/frameworks/base/test/mock/mock_download_manager.cpp",
|
||||
"$ace_root/frameworks/base/test/mock/mock_drag_window_old.cpp",
|
||||
"$ace_root/frameworks/core/common/test/mock/mock_ace_application_info.cpp",
|
||||
"$ace_root/frameworks/core/components/test/mock/mock_resource_adapter.cpp",
|
||||
"$ace_root/frameworks/core/components/test/unittest/mock/subwindow_mock.cpp",
|
||||
"$ace_root/test/mock/adapter/mock_ace_container.cpp",
|
||||
]
|
||||
|
||||
if (is_ohos_standard_system) {
|
||||
@ -118,7 +118,11 @@ foreach(item, ace_platforms) {
|
||||
"//third_party/googletest:gtest_main",
|
||||
]
|
||||
|
||||
external_deps = [ "c_utils:utils" ]
|
||||
external_deps = [
|
||||
"ability_runtime:abilitykit_native",
|
||||
"c_utils:utils",
|
||||
"napi:ace_napi",
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -55,7 +55,6 @@ ohos_unittest("CardFrontendTest") {
|
||||
]
|
||||
|
||||
sources += [
|
||||
"$ace_root/test/mock/adapter/mock_ace_container.cpp",
|
||||
"$ace_root/test/mock/adapter/mock_mmi_event_convertor.cpp",
|
||||
"$ace_root/test/mock/core/common/mock_udmf.cpp",
|
||||
]
|
||||
|
@ -50,7 +50,6 @@ ohos_unittest("CommonEventTest") {
|
||||
|
||||
part_name = ace_engine_part
|
||||
sources += [
|
||||
"$ace_root/test/mock/adapter/mock_ace_container.cpp",
|
||||
"$ace_root/test/mock/adapter/mock_mmi_event_convertor.cpp",
|
||||
"$ace_root/test/mock/core/common/mock_udmf.cpp",
|
||||
]
|
||||
|
@ -80,7 +80,6 @@ ohos_unittest("ManifestParserTest") {
|
||||
]
|
||||
|
||||
sources += [
|
||||
"$ace_root/test/mock/adapter/mock_ace_container.cpp",
|
||||
"$ace_root/test/mock/adapter/mock_mmi_event_convertor.cpp",
|
||||
"$ace_root/test/mock/core/common/mock_udmf.cpp",
|
||||
]
|
||||
|
@ -51,7 +51,6 @@ ohos_unittest("custom_paint_test_ng") {
|
||||
]
|
||||
|
||||
sources += [
|
||||
"$ace_root/test/mock/adapter/mock_ace_container.cpp",
|
||||
"$ace_root/test/mock/adapter/mock_mmi_event_convertor.cpp",
|
||||
"$ace_root/test/mock/core/common/mock_udmf.cpp",
|
||||
]
|
||||
|
@ -20,4 +20,10 @@ sptr<IRemoteObject> AceContainer::GetToken()
|
||||
{
|
||||
return token_;
|
||||
}
|
||||
|
||||
std::shared_ptr<AbilityRuntime::Context> AceContainer::GetAbilityContextByModule(
|
||||
const std::string& bundle, const std::string& module)
|
||||
{
|
||||
return nullptr;
|
||||
}
|
||||
} // namespace OHOS::Ace::Platform
|
||||
|
Loading…
Reference in New Issue
Block a user