• 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    ":network_udp_unit_test",
24  ]
25}
26
27ohos_unittest("network_tcp_unit_test") {
28  module_out_path = module_out_path
29
30  include_dirs = [
31    "//utils/native/base/include",
32    "$SHARING_ROOT_DIR/services",
33  ]
34
35  sources = [ "network_tcp_unit_test.cpp" ]
36
37  deps = [
38    "$SHARING_ROOT_DIR/services/common:sharing_common",
39    "$SHARING_ROOT_DIR/services/network:sharing_network",
40    "$SHARING_ROOT_DIR/services/utils:sharing_utils",
41    "//third_party/googletest:gtest_main",
42  ]
43
44  external_deps = [ "hilog:libhilog" ]
45
46  subsystem_name = "castplus"
47  part_name = "sharing_framework"
48}
49
50ohos_unittest("network_udp_unit_test") {
51  module_out_path = module_out_path
52
53  include_dirs = [
54    "//utils/native/base/include",
55    "$SHARING_ROOT_DIR/services",
56  ]
57
58  sources = [ "network_udp_unit_test.cpp" ]
59
60  deps = [
61    "$SHARING_ROOT_DIR/services/common:sharing_common",
62    "$SHARING_ROOT_DIR/services/network:sharing_network",
63    "$SHARING_ROOT_DIR/services/utils:sharing_utils",
64    "//third_party/googletest:gtest_main",
65  ]
66
67  external_deps = [ "hilog:libhilog" ]
68
69  subsystem_name = "castplus"
70  part_name = "sharing_framework"
71}
72