• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (C) 2025 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/distributeddatamgr/data_share/datashare.gni")
16
17ohos_unittest("ConcurrentTest") {
18  module_out_path = "data_share/native_datashare"
19
20  include_dirs = [
21    "${datashare_native_proxy_path}/include",
22    "${datashare_common_native_path}/include",
23  ]
24
25  sources = [
26    "${datashare_common_native_path}/src/datashare_itypes_utils.cpp",
27    "${datashare_common_native_path}/src/datashare_string_utils.cpp",
28    "${datashare_native_proxy_path}/src/data_proxy_observer_stub.cpp",
29    "${datashare_native_proxy_path}/src/data_share_service_proxy.cpp",
30    "${datashare_native_proxy_path}/src/published_data_subscriber_manager.cpp",
31    "${datashare_native_proxy_path}/src/rdb_subscriber_manager.cpp",
32    "concurrent_subscriber_test.cpp",
33  ]
34
35  deps = [
36    "${datashare_innerapi_path}:datashare_consumer",
37    "${datashare_innerapi_path}/common:datashare_common",
38  ]
39
40  external_deps = [
41    "c_utils:utils",
42    "hilog:libhilog",
43    "ipc:ipc_single",
44    "samgr:samgr_proxy",
45  ]
46
47  cflags = [
48    "-fvisibility=hidden",
49    "-Dprivate=public",
50    "-Dprotected=public",
51  ]
52}
53