• 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.
13import("//build/test.gni")
14import("//foundation/distributeddatamgr/data_share/datashare.gni")
15import("//foundation/distributeddatamgr/relational_store/relational_store.gni")
16
17module_output_path =
18    "relational_store/relational_store/rdb_data_ability_adapter"
19
20###############################################################################
21config("module_private_config") {
22  visibility = [ ":*" ]
23
24  include_dirs = [
25    "${datashare_innerapi_path}/common/include",
26    "${relational_store_innerapi_path}/dataability/include",
27    "${relational_store_innerapi_path}/rdb_data_ability_adapter/include",
28    "//commonlibrary/c_utils/base/include",
29  ]
30}
31
32ohos_unittest("NativeDataAbilityAdapterTest") {
33  module_out_path = module_output_path
34
35  sources = [ "unittest/data_ability_utils_test.cpp" ]
36
37  configs = [ ":module_private_config" ]
38
39  external_deps = [
40    "c_utils:utils",
41    "hilog:libhilog",
42    "relational_store:native_dataability",
43    "relational_store:rdb_data_ability_adapter",
44  ]
45
46  deps = [
47    "${relational_store_innerapi_path}/rdb:native_rdb",
48    "//third_party/googletest:gtest_main",
49  ]
50}
51
52###############################################################################
53group("unittest") {
54  testonly = true
55
56  deps = [ ":NativeDataAbilityAdapterTest" ]
57}
58###############################################################################
59