1# Copyright (c) 2025 Huawei Device Co., Ltd. 2# Licensed under the Apache License, Version 2.0 (the "License"); 3# you may not use this file except in compliance with the License. 4# You may obtain a copy of the License at 5# 6# http://www.apache.org/licenses/LICENSE-2.0 7# 8# Unless required by applicable law or agreed to in writing, software 9# distributed under the License is distributed on an "AS IS" BASIS, 10# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 11# See the License for the specific language governing permissions and 12# limitations under the License. 13 14import("//build/ohos.gni") 15import("//build/test.gni") 16import("../../../../dsoftbus.gni") 17 18module_output_path = "dsoftbus/soft_bus/discovery" 19 20ohos_unittest("LocaleConfigWrapperTest") { 21 module_out_path = module_output_path 22 sources = [ 23 "$dsoftbus_root_path/core/discovery/common/src/locale_config_wrapper.cpp", 24 "locale_config_wrapper_test.cpp", 25 "parameter_mock.cpp", 26 ] 27 28 include_dirs = [ 29 "./", 30 "$dsoftbus_root_path/core/discovery/common/include/", 31 ] 32 33 deps = [ "$dsoftbus_root_path/dfx:softbus_dfx" ] 34 35 external_deps = [ 36 "c_utils:utils", 37 "googletest:gmock", 38 "googletest:gtest_main", 39 "hilog:libhilog", 40 "init:libbegetutil", 41 ] 42} 43 44group("unittest") { 45 testonly = true 46 deps = [ ":LocaleConfigWrapperTest" ] 47} 48