• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 2023 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("//foundation/multimedia/media_library/media_library.gni")
16
17ohos_fuzztest("UpDateFuzzTest") {
18  module_out_path = "media_library/medialibrary_update_test"
19  fuzz_config_file = "../update_fuzzer"
20  include_dirs = [
21    "./include",
22    "../get_self_permissions/include",
23    "../../../media_library_helper/include",
24    "../../../../services/media_scanner/include/scanner",
25    "../../../medialibrary_data_extension/include",
26    "../../../../../interfaces/inner_api/media_library_helper/include",
27    "../../../../../interfaces/innerkits/native/include",
28    "../../../media_library_helper/include",
29    "../../../../utils/include",
30    "//third_party/json/include",
31  ]
32  cflags = [
33    "-g",
34    "-O0",
35    "-Wno-unused-variable",
36    "-fno-omit-frame-pointer",
37  ]
38  sources = [ "../../../test/fuzztest/update_fuzzer/update_fuzzer.cpp" ]
39
40  defines = []
41  deps = [
42    "../../../media_library_helper:media_library_packages",
43    "../../../media_library_manager:media_library_manager",
44  ]
45
46  external_deps = [
47    "ability_base:want",
48    "ability_base:zuri",
49    "ability_runtime:ability_manager",
50    "ability_runtime:abilitykit_native",
51    "access_token:libaccesstoken_sdk",
52    "access_token:libnativetoken",
53    "access_token:libtoken_setproc",
54    "c_utils:utils",
55    "common_event_service:cesfwk_innerkits",
56    "data_share:datashare_common",
57    "data_share:datashare_consumer",
58    "hilog:libhilog",
59    "hitrace:hitrace_meter",
60    "ipc:ipc_core",
61    "relational_store:native_appdatafwk",
62    "relational_store:native_rdb",
63    "safwk:system_ability_fwk",
64    "samgr:samgr_proxy",
65    "user_file_service:file_access_extension_ability_kit",
66  ]
67}
68
69group("fuzztest") {
70  testonly = true
71  deps = [ ":UpDateFuzzTest" ]
72}
73