mirror of
https://gitee.com/openharmony/global_i18n
synced 2024-11-23 07:00:13 +00:00
回退googletest部件依赖
Signed-off-by: zhangdd_ewan <zhangdongdong50@huawei.com>
This commit is contained in:
parent
e91fcb73ea
commit
e0b25c090b
@ -59,7 +59,6 @@
|
||||
"config_policy",
|
||||
"c_utils",
|
||||
"eventhandler",
|
||||
"googletest",
|
||||
"hilog",
|
||||
"icu",
|
||||
"init",
|
||||
|
@ -11,7 +11,6 @@
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
import("//base/global/i18n/i18n.gni")
|
||||
import("//build/test.gni")
|
||||
|
||||
module_output_path = "i18n/intl_test"
|
||||
@ -50,13 +49,11 @@ ohos_unittest("intl_test") {
|
||||
"libpng:libpng",
|
||||
"openssl:libssl_shared",
|
||||
]
|
||||
if (i18n_testonly) {
|
||||
external_deps += [ "googletest:gtest" ]
|
||||
}
|
||||
|
||||
deps = [
|
||||
"//base/global/i18n/frameworks/intl:build_module",
|
||||
"//base/global/i18n/services:i18n_sa_client",
|
||||
"//third_party/googletest:gtest_main"
|
||||
]
|
||||
}
|
||||
|
||||
|
@ -35,7 +35,11 @@ ohos_fuzztest("PhoneNumberMatchedFuzzTest") {
|
||||
configs = []
|
||||
|
||||
deps = [ "../../../../intl:intl_util" ]
|
||||
external_deps = [ "libphonenumber:phonenumber_standard" ]
|
||||
external_deps = [
|
||||
"icu:shared_icui18n",
|
||||
"icu:shared_icuuc",
|
||||
"libphonenumber:phonenumber_standard"
|
||||
]
|
||||
|
||||
subsystem_name = "global"
|
||||
part_name = "i18n"
|
||||
|
@ -35,6 +35,10 @@ ohos_fuzztest("RulesEngineFuzzTest") {
|
||||
configs = []
|
||||
|
||||
deps = [ "../../../../intl:intl_util" ]
|
||||
external_deps = [
|
||||
"icu:shared_icui18n",
|
||||
"icu:shared_icuuc",
|
||||
]
|
||||
|
||||
subsystem_name = "global"
|
||||
part_name = "i18n"
|
||||
|
@ -11,7 +11,6 @@
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
import("//base/global/i18n/i18n.gni")
|
||||
import("//build/test.gni")
|
||||
|
||||
module_output_path = "i18n/zone_util_test"
|
||||
@ -22,12 +21,12 @@ ohos_unittest("zone_util_test") {
|
||||
sources = [ "unittest/zone_util_test.cpp" ]
|
||||
include_dirs =
|
||||
[ "//base/global/i18n/interfaces/native/inner_api/zone/include" ]
|
||||
deps = [ "//base/global/i18n/frameworks/zone:zone_util" ]
|
||||
deps = [
|
||||
"//base/global/i18n/frameworks/zone:zone_util",
|
||||
"//third_party/googletest:gtest_main"
|
||||
]
|
||||
external_deps = [
|
||||
"c_utils:utils",
|
||||
"libphonenumber:phonenumber_standard",
|
||||
]
|
||||
if (i18n_testonly) {
|
||||
external_deps += [ "googletest:gtest" ]
|
||||
}
|
||||
}
|
||||
|
1
i18n.gni
1
i18n.gni
@ -14,5 +14,4 @@
|
||||
declare_args() {
|
||||
i18n_support_ui = true
|
||||
i18n_support_app_preferred_language = true
|
||||
i18n_testonly = true
|
||||
}
|
||||
|
@ -11,7 +11,6 @@
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
import("//base/global/i18n/i18n.gni")
|
||||
import("//build/test.gni")
|
||||
|
||||
module_output_path = "i18n/i18n_service_test"
|
||||
@ -33,14 +32,12 @@ ohos_unittest("i18n_service_test") {
|
||||
"access_token:libnativetoken",
|
||||
"access_token:libtoken_setproc",
|
||||
]
|
||||
if (i18n_testonly) {
|
||||
external_deps += [ "googletest:gtest" ]
|
||||
}
|
||||
|
||||
deps = [
|
||||
"../../frameworks/intl:build_module",
|
||||
"../../services:i18n_sa",
|
||||
"../../services:i18n_sa_client",
|
||||
"//third_party/googletest:gtest_main"
|
||||
]
|
||||
|
||||
defines = [ "SUPPORT_GRAPHICS" ]
|
||||
|
Loading…
Reference in New Issue
Block a user