1# Copyright (c) 2021 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/test.gni") 15import("//foundation/communication/dsoftbus/dsoftbus.gni") 16 17module_output_path = "dsoftbus_standard/auth" 18 19ohos_unittest("AuthTest") { 20 module_out_path = module_output_path 21 sources = [ "unittest/auth_test.cpp" ] 22 23 include_dirs = [ 24 "//base/security/deviceauth/interfaces/innerkits", 25 "$dsoftbus_root_path/core/authentication/include", 26 "$dsoftbus_root_path/core/authentication/interface", 27 "$dsoftbus_root_path/core/bus_center/interface", 28 "$dsoftbus_root_path/core/bus_center/lnn/net_ledger/common/include", 29 "$dsoftbus_root_path/core/common/include", 30 "$dsoftbus_root_path/core/common/message_handler/include", 31 "$dsoftbus_root_path/core/connection/interface", 32 "$dsoftbus_root_path/core/frame/standard/init/include", 33 "$dsoftbus_root_path/core/frame/common/include", 34 "$dsoftbus_root_path/interfaces/kits/bus_center", 35 "$dsoftbus_root_path/interfaces/kits/common", 36 "$dsoftbus_root_path/core/connection/manager", 37 "$dsoftbus_root_path/adapter/common/include/", 38 "//utils/native/base/include", 39 "//third_party/cJSON", 40 "unittest/common/", 41 ] 42 43 deps = [ 44 "$dsoftbus_root_path/core/common:softbus_utils", 45 "$dsoftbus_root_path/core/frame:softbus_server", 46 "//third_party/googletest:gtest_main", 47 "//utils/native/base:utils", 48 "//utils/native/base:utilsecurec_shared", 49 ] 50 51 if (is_standard_system) { 52 external_deps = [ "hiviewdfx_hilog_native:libhilog" ] 53 } else { 54 external_deps = [ "hilog:libhilog" ] 55 } 56} 57 58group("unittest") { 59 testonly = true 60 deps = [ ":AuthTest" ] 61} 62