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("//foundation/appexecfwk/standard/appexecfwk.gni") 15 16config("formmgr_test_config") { 17 include_dirs = [ 18 "//utils/native/base/include", 19 "//utils/system/safwk/native/include", 20 "mock/include", 21 ] 22 23 configs = [ 24 "${services_path}/formmgr:formmgr_config", 25 "${common_path}:appexecfwk_common_config", 26 ] 27} 28 29public_configs = [ 30 ":formmgr_test_config", 31 "//utils/native/base:utils_config", 32] 33 34public_deps = [ 35 "${common_path}:libappexecfwk_common", 36 "//third_party/googletest:gmock_main", 37 "//third_party/googletest:gtest_main", 38 "//utils/native/base:utils", 39] 40 41group("unittest") { 42 testonly = true 43 44 deps = [ 45 "unittest/fms_form_cache_mgr_test:unittest", 46 "unittest/fms_form_data_mgr_test:unittest", 47 "unittest/fms_form_db_record_test:unittest", 48 "unittest/fms_form_host_record_test:unittest", 49 "unittest/fms_form_mgr_cast_temp_form_test:unittest", 50 "unittest/fms_form_provider_data_test:unittest", 51 "unittest/fms_form_provider_mgr_test:unittest", 52 "unittest/fms_form_set_next_refresh_test:unittest", 53 "unittest/fms_form_sys_event_receiver_test:unittest", 54 "unittest/fms_form_timer_mgr_test:unittest", 55 ] 56} 57