• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 2022 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/lite/config/component/lite_component.gni")
15import("//build/ohos.gni")
16import("//build/test.gni")
17import("../../../../core/common/dfx/dsoftbus_dfx.gni")
18import("../../../../dsoftbus.gni")
19import("../../../utils/utils.gni")
20
21module_output_path = "dsoftbus/discovery"
22
23ohos_unittest("DiscClientProxyTest") {
24  module_out_path = module_output_path
25  sources = [
26    "$dsoftbus_core_path/discovery/ipc/standard/src/disc_client_proxy.cpp",
27    "$dsoftbus_core_path/discovery/ipc/standard/src/disc_client_proxy_standard.cpp",
28    "$dsoftbus_root_path/sdk/frame/standard/src/if_softbus_client.cpp",
29    "client_info_manager_mock.cpp",
30    "disc_client_proxy_test.cpp",
31    "remote_object_mock.cpp",
32  ]
33  sources += test_utils_src
34
35  include_dirs = [
36    "$dsoftbus_core_path/discovery/ipc/include",
37    "$dsoftbus_core_path/discovery/ipc/standard/include",
38    "$dsoftbus_root_path/interfaces/kits/common",
39    "$dsoftbus_root_path/interfaces/kits/discovery",
40    "$dsoftbus_root_path/sdk/frame/standard/include/",
41    "$dsoftbus_core_path/common/include",
42    "$dsoftbus_root_path/core/common/dfx/interface/include",
43    "$dsoftbus_core_path/frame/standard/client_manager/include",
44    "$softbus_adapter_common/include",
45  ]
46  include_dirs += test_utils_inc
47
48  deps = [
49    "//third_party/googletest:gmock",
50    "//third_party/googletest:gtest_main",
51  ]
52
53  external_deps = [
54    "c_utils:utils",
55    "ipc:ipc_core",
56  ]
57}
58
59group("unittest") {
60  testonly = true
61  deps = [ ":DiscClientProxyTest" ]
62}
63