• 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/test.gni")
15import("../../../../../../dsoftbus.gni")
16
17module_output_path = "dsoftbus/transmission/stream"
18
19ohos_distributedtest("DistriStreamTest") {
20  module_out_path = module_output_path
21  sources = [ "distributed_stream_test.cpp" ]
22  include_dirs = [
23    "./",
24    "$dsoftbus_root_path/tests/sdk/common/include",
25    "//test/developertest/aw/cxx/distributed",
26  ]
27  deps = [
28    "$dsoftbus_root_path/tests/sdk/common:softbus_access_token_test",
29    "//third_party/googletest:gtest",
30  ]
31  external_deps = [
32    "dsoftbus:softbus_client",
33    "hilog:libhilog",
34  ]
35}
36
37ohos_distributedtest("DistriStreamTestAgent") {
38  module_out_path = module_output_path
39  sources = [ "distributed_stream_test_agent.cpp" ]
40  include_dirs = [
41    "./",
42    "$dsoftbus_root_path/tests/sdk/common/include",
43    "//test/developertest/aw/cxx/distributed",
44  ]
45
46  deps = [
47    "$dsoftbus_root_path/tests/sdk/common:softbus_access_token_test",
48    "//third_party/googletest:gtest",
49  ]
50  external_deps = [
51    "dsoftbus:softbus_client",
52    "hilog:libhilog",
53  ]
54}
55
56group("distributed_stream_test") {
57  testonly = true
58  deps = []
59  if (is_standard_system) {
60    deps = [
61      ":DistriStreamTest",
62      ":DistriStreamTestAgent",
63    ]
64  }
65}
66