• 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("../../time.gni")
16
17config("module_private_config") {
18  visibility = [ ":*" ]
19
20  include_dirs = [
21    "${api_path}/include",
22    "//foundation/arkui/napi/interfaces/kits/napi",
23    "//third_party/json/include",
24    "${time_service_path}/time/test/unittest/include",
25    "${time_utils_path}/native/include",
26    "${time_service_path}/time/include",
27  ]
28}
29
30module_output_path = "time_service/time_dfx"
31
32ohos_unittest("TimeDfxTest") {
33  module_out_path = module_output_path
34
35  sources = [ "src/time_dfx_test.cpp" ]
36
37  configs = [ ":module_private_config" ]
38
39  deps = [
40    "../../interfaces/inner_api:time_client",
41    "../../services:time_service",
42    "//third_party/googletest:gtest_main",
43    "//third_party/jsoncpp:jsoncpp",
44  ]
45
46  external_deps = [
47    "ability_base:want",
48    "ability_runtime:runtime",
49    "ability_runtime:wantagent_innerkits",
50    "bundle_framework:appexecfwk_core",
51    "c_utils:utils",
52    "hiviewdfx_hilog_native:libhilog",
53    "ipc:ipc_core",
54    "safwk:system_ability_fwk",
55    "samgr:samgr_proxy",
56  ]
57}
58
59group("unittest") {
60  testonly = true
61
62  deps = [ ":TimeDfxTest" ]
63}