• 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")
15import("../../../../../os_account.gni")
16
17module_output_path = "account/systemtest"
18
19ohos_systemtest("ActsAccountFuzzTest") {
20  module_out_path = module_output_path
21  resource_config_file = "${os_account_path}/test/systemtest/common/resource/fuzzTest/ohos_test.xml"
22
23  sources = [
24    "${os_account_path}/test/systemtest/common/resource/fuzzTest/src/fuzz_test_manager.cpp",
25    "${os_account_path}/test/systemtest/common/resource/fuzzTest/src/getparam.cpp",
26    "acts_account_fuzz_test.cpp",
27  ]
28
29  configs = [
30    "${os_account_path}/test/systemtest/common/acts:accountfuzz_test_config",
31  ]
32
33  include_dirs = [
34    "${app_account_interfaces_native_path}/include",
35    "${os_account_interfaces_native_path}/include",
36    "${innerkits_common}/include",
37    "${os_account_path}/test/systemtest/common/resource/fuzzTest/include",
38    "${services_path}/accountmgr/include/appaccount",
39    "//third_party/json/include",
40  ]
41
42  cflags = []
43
44  if (target_cpu == "arm") {
45    cflags += [ "-DBINDER_IPC_32BIT" ]
46  }
47
48  deps = [
49    "${app_account_innerkits_native_path}:app_account_innerkits",
50    "${common_path}:libaccount_common",
51    "${innerkits_native_path}:libaccountkits",
52    "${os_account_innerkits_native_path}:os_account_innerkits",
53    "${os_account_path}/services/accountmgr/src/appaccount:app_account_service_core",
54    "//third_party/googletest:gtest_main",
55  ]
56
57  defines = [
58    "ACCOUNT_LOG_TAG = \"AccountFuzzTest\"",
59    "LOG_DOMAIN = 0xD001B00",
60  ]
61  external_deps = [
62    "ability_base:want",
63    "c_utils:utils",
64    "hilog:libhilog",
65    "ipc:ipc_single",
66  ]
67}
68
69group("fuzzTest") {
70  testonly = true
71
72  deps = []
73}
74