• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 2023 Shenzhen Kaihong Digital Industry Development 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/CastEngine/castengine_wifi_display/config.gni")
16
17module_out_path = "sharing/network"
18
19group("network_unittest") {
20  testonly = true
21  deps = [
22    ":network_tcp_unit_test",
23  ]
24}
25
26ohos_unittest("network_tcp_unit_test") {
27  module_out_path = module_out_path
28
29  include_dirs = [
30    "$SHARING_ROOT_DIR/services",
31  ]
32
33  sources = [ "network_tcp_unit_test.cpp" ]
34
35  deps = [
36    "$SHARING_ROOT_DIR/services/common:sharing_common",
37    "$SHARING_ROOT_DIR/services/network:sharing_network",
38    "$SHARING_ROOT_DIR/services/utils:sharing_utils",
39  ]
40
41  external_deps = [
42    "c_utils:utils",
43    "hilog:libhilog",
44    "eventhandler:libeventhandler",
45    "googletest:gtest_main"
46  ]
47
48  subsystem_name = "castplus"
49  part_name = "sharing_framework"
50}
51
52ohos_unittest("network_udp_unit_test") {
53  module_out_path = module_out_path
54
55  include_dirs = [
56    "$SHARING_ROOT_DIR/services",
57  ]
58
59  sources = [ "network_udp_unit_test.cpp" ]
60
61  deps = [
62    "$SHARING_ROOT_DIR/services/common:sharing_common",
63    "$SHARING_ROOT_DIR/services/network:sharing_network",
64    "$SHARING_ROOT_DIR/services/utils:sharing_utils",
65  ]
66
67  external_deps = [
68    "hilog:libhilog",
69    "googletest:gtest_main"
70    ]
71
72  subsystem_name = "castplus"
73  part_name = "sharing_framework"
74}
75