• 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")
15
16module_output_path = "screenlock/screenlock_service"
17
18ohos_unittest("ScreenLockServiceTest") {
19  module_out_path = module_output_path
20  include_dirs = [
21    "unittest",
22    "//base/miscservices/screenlock/frameworks/kitsimpl/include",
23  ]
24
25  sources = [ "unittest/screenlock_service_test.cpp",
26              "unittest/screenlock_notify_test_instance.cpp",
27              "unittest/screenlock_unlock_callback_test.cpp"
28  ]
29
30  external_deps = [
31    "ability_base:base",
32    "hiviewdfx_hilog_native:libhilog",
33    "ipc:ipc_core",
34    "multimedia_image_standard:image_native",
35    "window_manager:libwm",
36    "window_manager:libdm",
37  ]
38
39  deps = [
40    "//base/miscservices/screenlock/frameworks/kitsimpl:screenlock_client",
41    "//base/miscservices/screenlock/services:screenlock_server",
42    "//base/miscservices/screenlock/utils:screenlock_utils",
43    "//third_party/googletest:gtest_main",
44    "//utils/native/base:utils",
45    "//foundation/appexecfwk/standard/interfaces/innerkits/libeventhandler:libeventhandler",
46    "//foundation/distributedschedule/safwk/interfaces/innerkits/safwk:system_ability_fwk",
47    "//foundation/distributedschedule/samgr/interfaces/innerkits/samgr_proxy:samgr_proxy",
48  ]
49}
50
51group("unittest") {
52  testonly = true
53
54  deps = []
55
56  deps += [ ":ScreenLockServiceTest" ]
57}
58