1885b47fbSopenharmony_ci# Copyright (C) 2024 Huawei Device Co., Ltd. 2885b47fbSopenharmony_ci# Licensed under the Apache License, Version 2.0 (the "License"); 3885b47fbSopenharmony_ci# you may not use this file except in compliance with the License. 4885b47fbSopenharmony_ci# You may obtain a copy of the License at 5885b47fbSopenharmony_ci# 6885b47fbSopenharmony_ci# http://www.apache.org/licenses/LICENSE-2.0 7885b47fbSopenharmony_ci# 8885b47fbSopenharmony_ci# Unless required by applicable law or agreed to in writing, software 9885b47fbSopenharmony_ci# distributed under the License is distributed on an "AS IS" BASIS, 10885b47fbSopenharmony_ci# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 11885b47fbSopenharmony_ci# See the License for the specific language governing permissions and 12885b47fbSopenharmony_ci# limitations under the License. 13885b47fbSopenharmony_ci 14885b47fbSopenharmony_ciimport("//build/test.gni") 15885b47fbSopenharmony_ci 16885b47fbSopenharmony_cimodule_output_path = "accessibility/accessibility" 17885b47fbSopenharmony_ci 18885b47fbSopenharmony_ci############################################################################### 19885b47fbSopenharmony_ciconfig("module_parcel_private_config") { 20885b47fbSopenharmony_ci visibility = [ ":*" ] 21885b47fbSopenharmony_ci cflags = [] 22885b47fbSopenharmony_ci if (target_cpu == "arm") { 23885b47fbSopenharmony_ci cflags += [ "-DBINDER_IPC_32BIT" ] 24885b47fbSopenharmony_ci } 25885b47fbSopenharmony_ci include_dirs = [ 26885b47fbSopenharmony_ci "../../include/parcel", 27885b47fbSopenharmony_ci "../../../../common/log/include", 28885b47fbSopenharmony_ci "../../../../interfaces/innerkits/common/include", 29885b47fbSopenharmony_ci ] 30885b47fbSopenharmony_ci defines = [ 31885b47fbSopenharmony_ci "AAMS_LOG_TAG = \"accessibility_parcel\"", 32885b47fbSopenharmony_ci "AAMS_LOG_DOMAIN = 0xD001D05", 33885b47fbSopenharmony_ci ] 34885b47fbSopenharmony_ci} 35885b47fbSopenharmony_ci 36885b47fbSopenharmony_ciaccessibility_parcel_src = [ 37885b47fbSopenharmony_ci "../../src/parcel/accessibility_ability_info_parcel.cpp", 38885b47fbSopenharmony_ci "../../src/parcel/accessibility_caption_parcel.cpp", 39885b47fbSopenharmony_ci "../../src/parcel/accessibility_element_info_parcel.cpp", 40885b47fbSopenharmony_ci "../../src/parcel/accessibility_event_info_parcel.cpp", 41885b47fbSopenharmony_ci "../../src/parcel/accessibility_window_info_parcel.cpp", 42885b47fbSopenharmony_ci] 43885b47fbSopenharmony_ci 44885b47fbSopenharmony_ciaccessibility_parcel_test_src = [ 45885b47fbSopenharmony_ci "accessibility_ability_info_parcel_test.cpp", 46885b47fbSopenharmony_ci "accessibility_caption_parcel_test.cpp", 47885b47fbSopenharmony_ci "accessibility_element_info_parcel_test.cpp", 48885b47fbSopenharmony_ci "accessibility_event_info_parcel_test.cpp", 49885b47fbSopenharmony_ci "accessibility_window_info_parcel_test.cpp", 50885b47fbSopenharmony_ci] 51885b47fbSopenharmony_ci 52885b47fbSopenharmony_ciohos_unittest("accessibility_parcel_test") { 53885b47fbSopenharmony_ci module_out_path = module_output_path 54885b47fbSopenharmony_ci 55885b47fbSopenharmony_ci sources = accessibility_parcel_src 56885b47fbSopenharmony_ci sources += accessibility_parcel_test_src 57885b47fbSopenharmony_ci 58885b47fbSopenharmony_ci configs = [ 59885b47fbSopenharmony_ci ":module_parcel_private_config", 60885b47fbSopenharmony_ci "../../../../resources/config/build:coverage_flags", 61885b47fbSopenharmony_ci ] 62885b47fbSopenharmony_ci 63885b47fbSopenharmony_ci deps = [ 64885b47fbSopenharmony_ci "../../../../../../../third_party/googletest:gmock_main", 65885b47fbSopenharmony_ci "../../../../../../../third_party/googletest:gtest_main", 66885b47fbSopenharmony_ci "../../../../interfaces/innerkits/common:accessibility_common", 67885b47fbSopenharmony_ci ] 68885b47fbSopenharmony_ci 69885b47fbSopenharmony_ci external_deps = [ 70885b47fbSopenharmony_ci "access_token:libaccesstoken_sdk", 71885b47fbSopenharmony_ci "access_token:libtokenid_sdk", 72885b47fbSopenharmony_ci "c_utils:utils", 73885b47fbSopenharmony_ci "hilog:libhilog", 74885b47fbSopenharmony_ci "input:libmmi-client", 75885b47fbSopenharmony_ci "ipc:ipc_single", 76885b47fbSopenharmony_ci ] 77885b47fbSopenharmony_ci} 78885b47fbSopenharmony_ci 79885b47fbSopenharmony_ci############################################################################### 80885b47fbSopenharmony_ci 81885b47fbSopenharmony_cigroup("unittest") { 82885b47fbSopenharmony_ci testonly = true 83885b47fbSopenharmony_ci deps = [] 84885b47fbSopenharmony_ci 85885b47fbSopenharmony_ci deps += [ ":accessibility_parcel_test" ] 86885b47fbSopenharmony_ci} 87885b47fbSopenharmony_ci############################################################################### 88