• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (C) 2021 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")
15
16config("module_private_config") {
17  visibility = [ ":*" ]
18
19  include_dirs = [
20    "//base/miscservices/time/interfaces/innerkits/include",
21    "unittest/include",
22    "//foundation/ace/napi/interfaces/kits/napi",
23  ]
24}
25
26module_output_path = "time_native/time_service"
27
28ohos_unittest("TimeServiceTest") {
29  module_out_path = module_output_path
30
31  sources = [ "unittest/src/time_service_test.cpp" ]
32
33  configs = [ ":module_private_config" ]
34
35  deps = [
36    "//base/miscservices/time/interfaces/innerkits:time_client",
37    "//foundation/aafwk/standard/interfaces/innerkits/base:base",
38    "//foundation/aafwk/standard/interfaces/innerkits/intent:intent",
39    "//foundation/aafwk/standard/interfaces/innerkits/want:want",
40    "//foundation/appexecfwk/standard/interfaces/innerkits/appexecfwk_core:appexecfwk_core",
41    "//foundation/distributedschedule/dmsfwk/services/dtbschedmgr:distributedschedsvr",
42    "//foundation/distributedschedule/safwk/interfaces/innerkits/safwk:system_ability_fwk",
43    "//foundation/distributedschedule/samgr/interfaces/innerkits/samgr_proxy:samgr_proxy",
44    "//third_party/googletest:gtest_main",
45    "//utils/native/base:utils",
46  ]
47
48  external_deps = [
49    "ability_runtime:runtime",
50    "ability_runtime:wantagent_innerkits",
51    "hiviewdfx_hilog_native:libhilog",
52    "ipc:ipc_core",
53    "safwk:system_ability_fwk",
54    "samgr_standard:samgr_proxy",
55  ]
56}
57
58group("unittest") {
59  testonly = true
60
61  deps = []
62
63  deps += [ ":TimeServiceTest" ]
64}
65