• 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/ability/form_fwk/form_fwk.gni")
15
16config("form_mgr_proxy_test_config") {
17  include_dirs = [
18    "${form_fwk_path}/interfaces/kits/native/include",
19    "${form_fwk_path}/test/mock/include",
20  ]
21}
22
23ohos_unittest("FmsFormMgrProxyTempTest") {
24  module_out_path = "form_fwk/form_fwk/form_mgr_service"
25
26  configs = [ ":form_mgr_proxy_test_config" ]
27
28  sources = [ "form_mgr_proxy_test.cpp" ]
29
30  deps = [
31    "${form_fwk_path}:form_manager",
32    "//third_party/googletest:gmock_main",
33  ]
34
35  external_deps = [
36    "ability_base:want",
37    "ability_runtime:app_manager",
38    "bundle_framework:appexecfwk_base",
39    "bundle_framework:appexecfwk_core",
40    "c_utils:utils",
41    "common_event_service:cesfwk_core",
42    "common_event_service:cesfwk_innerkits",
43    "eventhandler:libeventhandler",
44    "hilog:libhilog",
45    "hisysevent:libhisysevent",
46    "ipc:ipc_core",
47    "kv_store:distributeddata_inner",
48    "relational_store:native_appdatafwk",
49    "relational_store:native_rdb",
50  ]
51
52  if (device_usage_statistics) {
53    external_deps += [ "device_usage_statistics:usagestatsinner" ]
54    defines = [ "DEVICE_USAGE_STATISTICS_ENABLE" ]
55  }
56}
57
58group("unittest") {
59  testonly = true
60  deps = [ ":FmsFormMgrProxyTempTest" ]
61}
62