From 15eb62344d884ab43a7ff65fbaaaa7e53951188c Mon Sep 17 00:00:00 2001 From: dy_study Date: Fri, 17 Jun 2022 19:26:03 +0800 Subject: [PATCH] =?UTF-8?q?IssueNo:#I5CWA6=20Description:=E5=85=83?= =?UTF-8?q?=E8=83=BD=E5=8A=9B=E9=83=A8=E4=BB=B6=E5=8C=96=E8=B5=84=E6=96=99?= =?UTF-8?q?=E4=BF=AE=E6=94=B9=20Sig:SIG=5FApplicaitonFramework=20Feature?= =?UTF-8?q?=20or=20Bugfix:Bugfix=20Binary=20Source:No?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: dy_study Change-Id: Ic9fd51b1fc2dabe68b4dc7751c8ad0e60597b99e --- README_zh.md | 6 +- ability_base/test/BUILD.gn | 216 ------------------------------------- 2 files changed, 3 insertions(+), 219 deletions(-) delete mode 100755 ability_base/test/BUILD.gn diff --git a/README_zh.md b/README_zh.md index 0bc13a405c..2defecc25c 100644 --- a/README_zh.md +++ b/README_zh.md @@ -225,10 +225,10 @@ aa force-stop com.ohos.app ## 相关仓 元能力子系统 -ability_base +[ability_base](https://gitee.com/openharmony/ability_ability_base) [**ability_runtime**](https://gitee.com/openharmony/ability_ability_runtime) -form_fwk +[form_fwk](https://gitee.com/openharmony/ability_form_fwk) -idl_tool \ No newline at end of file +[idl_tool](https://gitee.com/openharmony/ability_idl_tool) \ No newline at end of file diff --git a/ability_base/test/BUILD.gn b/ability_base/test/BUILD.gn deleted file mode 100755 index 5656a335ff..0000000000 --- a/ability_base/test/BUILD.gn +++ /dev/null @@ -1,216 +0,0 @@ -# Copyright (c) 2021-2022 Huawei Device Co., Ltd. -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -import("//build/test.gni") -import("//foundation/ability/ability_base/ability_base.gni") - -base_output_path = "aafwk/base_test" - -config("base_private_config") { - visibility = [ ":*" ] - include_dirs = [ "//utils/native/base/include" ] -} - -ohos_unittest("base_test") { - module_out_path = base_output_path - sources = [ "unittest/base/base_test.cpp" ] - - configs = [ ":base_private_config" ] - - deps = [ "//third_party/googletest:gtest_main" ] - - external_deps = [ - "ability_base:base", - "utils_base:utils", - ] -} - -###################################################################### -want_output_path = "ability_base/want_test" - -############################################################################### -config("want_private_config") { - visibility = [ ":*" ] - include_dirs = [ - "//utils/native/base/include", - "//sdk/appexecfwk/appexecfwk_base/include", - "${ability_base_innerapi_path}/uri/include", - "${ability_base_innerapi_path}/want/include", - ] - - defines = [ - "ABILITYBASE_LOG_TAG = \"WantUnitTest\"", - "ABILITYBASE_LOG_DOMAIN = 0xD002210", - ] -} - -config("module_private_want_param_wrapper_config") { - visibility = [ ":*" ] - include_dirs = [ - "//utils/native/base/include", - "//sdk/appexecfwk/appexecfwk_base/include", - "${ability_base_innerapi_path}/want/include", - ] - - defines = [ - "ABILITYBASE_LOG_TAG = \"WantUnitTest\"", - "ABILITYBASE_LOG_DOMAIN = 0xD002210", - ] -} - -ohos_unittest("operation_test") { - module_out_path = want_output_path - sources = [ "unittest/want/operation_test.cpp" ] - - configs = [ - ":want_private_config", - "${ability_base_path}:want_public_config", - ] - - deps = [ - "//third_party/googletest:gtest_main", - "//utils/native/base:utils", - ] - - external_deps = [ - "ability_base:base", - "ability_base:want", - "ability_base:zuri", - "bundle_framework:appexecfwk_base", - ] -} - -ohos_unittest("patterns_matcher_test") { - module_out_path = want_output_path - sources = [ "unittest/want/patterns_matcher_test.cpp" ] - - configs = [ - ":want_private_config", - "${ability_base_path}:want_public_config", - ] - - deps = [ - "//third_party/googletest:gtest_main", - "//utils/native/base:utils", - ] - - external_deps = [ - "ability_base:want", - "bundle_framework:appexecfwk_base", - "hiviewdfx_hilog_native:libhilog", - ] -} - -ohos_unittest("skills_test") { - module_out_path = want_output_path - sources = [ "unittest/want/skills_test.cpp" ] - - configs = [ - ":want_private_config", - "${ability_base_path}:want_public_config", - ] - - deps = [ - "//third_party/googletest:gtest_main", - "//utils/native/base:utils", - ] - - external_deps = [ - "ability_base:base", - "ability_base:want", - "ability_base:zuri", - "bundle_framework:appexecfwk_base", - "hiviewdfx_hilog_native:libhilog", - ] -} - -ohos_unittest("want_params_test") { - module_out_path = want_output_path - sources = [ "unittest/want/want_params_test.cpp" ] - - configs = [ - ":want_private_config", - "${ability_base_path}:want_public_config", - ] - - deps = [ - "//third_party/googletest:gtest_main", - "//utils/native/base:utils", - ] - - external_deps = [ - "ability_base:want", - "bundle_framework:appexecfwk_base", - "hiviewdfx_hilog_native:libhilog", - "ipc:ipc_core", - ] -} - -ohos_unittest("want_params_wrapper_test") { - module_out_path = want_output_path - sources = [ "unittest/want/want_params_wrapper_test.cpp" ] - - configs = [ ":module_private_want_param_wrapper_config" ] - - deps = [ - "//third_party/googletest:gtest_main", - "//utils/native/base:utils", - ] - - external_deps = [ - "ability_base:base", - "ability_base:want", - "ability_base:zuri", - "bundle_framework:appexecfwk_base", - "hiviewdfx_hilog_native:libhilog", - "ipc:ipc_core", - ] -} - -ohos_unittest("want_test") { - module_out_path = want_output_path - sources = [ "unittest/want/want_test.cpp" ] - - configs = [ - ":want_private_config", - "${ability_base_path}:want_public_config", - ] - - deps = [ - "//third_party/googletest:gtest_main", - "//utils/native/base:utils", - ] - - external_deps = [ - "ability_base:base", - "ability_base:want", - "ability_base:zuri", - "bundle_framework:appexecfwk_base", - "hiviewdfx_hilog_native:libhilog", - ] -} - -############################################################################### - -group("unittest") { - testonly = true - deps = [ - #":base_test", - ":operation_test", - ":patterns_matcher_test", - ":skills_test", - ":want_params_test", - ":want_params_wrapper_test", - ":want_test", - ] -}