1# Copyright (c) 2020-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# http://www.apache.org/licenses/LICENSE-2.0 6# Unless required by applicable law or agreed to in writing, software 7# distributed under the License is distributed on an "AS IS" BASIS, 8# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 9# See the License for the specific language governing permissions and 10# limitations under the License. 11 12import("//build/test.gni") 13 14## UnitTest wallpaper_test {{{ 15 16ohos_unittest("wallpaper_test") { 17 module_out_path = "wallpaper_native/wallpaper_test" 18 sources = [ 19 "unittest/wallpaper_test.cpp" 20 #"unittest/wallpaperpermissontest.cpp", 21 #"unittest/image_source_picture_test.cpp", 22 ] 23 24 include_dirs = [ 25 "//third_party/json/include", 26 "//base/miscservices/wallpaper/frameworks/innerkitsimpl/wallpaper_manager/include", 27 "//base/miscservices/wallpaper/utils/include", 28 "//base/miscservices/wallpaper/frameworks/innerkitsimpl/wallpaper_manager/include", 29 "//foundation/graphic/standard/interfaces/innerkits/wm", 30 31 #"//foundation/multimedia/image_standard/interfaces/innerkits/include", 32 ] 33 deps = [ 34 "//utils/native/base:utils", 35 "//foundation/aafwk/standard/frameworks/kits/ability/native:abilitykit_native", 36 "//foundation/multimedia/image_standard/interfaces/innerkits:image_native", 37 "//base/hiviewdfx/hiview/adapter/utility:hiview_adapter_utility", 38 "//foundation/windowmanager/wm:libwm", 39 "//foundation/windowmanager/utils:libwmutil", 40 "//foundation/multimedia/image_standard:image_framework", 41 "//foundation/multimedia/image_standard/interfaces/innerkits:image", 42 "//foundation/multimedia/image_standard/interfaces/innerkits:image_native", 43 "//base/miscservices/wallpaper/frameworks/innerkitsimpl/wallpaper_manager:wallpapermanager", 44 ] 45 external_deps = [ 46 47 "ability_runtime:ability_manager", 48 "ability_base:want", 49 "permission_standard:libpermissionsdk_standard", 50 "safwk:system_ability_fwk", 51 "samgr_standard:samgr_proxy", 52 "hiviewdfx_hilog_native:libhilog", 53 "ipc:ipc_core", 54 "ces_standard:cesfwk_innerkits", 55 ] 56} 57 58## UnitTest wallpaper_test }}} 59 60group("unittest") { 61 testonly = true 62 deps = [ ":wallpaper_test" ] 63} 64 65 66 67 68