10485dae0Sopenharmony_ci# Copyright (c) 2021 Huawei Device Co., Ltd. 20485dae0Sopenharmony_ci# Licensed under the Apache License, Version 2.0 (the "License"); 30485dae0Sopenharmony_ci# you may not use this file except in compliance with the License. 40485dae0Sopenharmony_ci# You may obtain a copy of the License at 50485dae0Sopenharmony_ci# 60485dae0Sopenharmony_ci# http://www.apache.org/licenses/LICENSE-2.0 70485dae0Sopenharmony_ci# 80485dae0Sopenharmony_ci# Unless required by applicable law or agreed to in writing, software 90485dae0Sopenharmony_ci# distributed under the License is distributed on an "AS IS" BASIS, 100485dae0Sopenharmony_ci# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 110485dae0Sopenharmony_ci# See the License for the specific language governing permissions and 120485dae0Sopenharmony_ci# limitations under the License. 130485dae0Sopenharmony_ciimport("//build/lite/config/component/lite_component.gni") 140485dae0Sopenharmony_ciimport("//build/lite/config/test.gni") 150485dae0Sopenharmony_ci 160485dae0Sopenharmony_ciunittest("ai_test_function_door") { 170485dae0Sopenharmony_ci output_extension = "bin" 180485dae0Sopenharmony_ci output_dir = "$root_out_dir/test/unittest/ai" 190485dae0Sopenharmony_ci ldflags = [ 200485dae0Sopenharmony_ci "-lstdc++", 210485dae0Sopenharmony_ci "-ldl", 220485dae0Sopenharmony_ci ] 230485dae0Sopenharmony_ci include_dirs = [ 240485dae0Sopenharmony_ci "//base/hiviewdfx/hilog_lite/interfaces/native/kits/hilog", 250485dae0Sopenharmony_ci "//foundation/ai/ai_engine/interfaces", 260485dae0Sopenharmony_ci "//foundation/ai/ai_engine/services/client", 270485dae0Sopenharmony_ci "//foundation/ai/ai_engine/services/common", 280485dae0Sopenharmony_ci "//foundation/ai/ai_engine/services/server", 290485dae0Sopenharmony_ci "//foundation/ai/ai_engine/test/utils", 300485dae0Sopenharmony_ci "//foundation/communication/ipc/interfaces/innerkits/c/ipc/include", 310485dae0Sopenharmony_ci "//foundation/systemabilitymgr/samgr_lite/interfaces/innerkits/registry", 320485dae0Sopenharmony_ci "//foundation/systemabilitymgr/samgr_lite/interfaces/innerkits/samgr", 330485dae0Sopenharmony_ci "//foundation/systemabilitymgr/samgr_lite/interfaces/kits/registry", 340485dae0Sopenharmony_ci "//foundation/systemabilitymgr/samgr_lite/interfaces/kits/samgr", 350485dae0Sopenharmony_ci "//third_party/bounds_checking_function/include", 360485dae0Sopenharmony_ci "//commonlibrary/utils_lite/include", 370485dae0Sopenharmony_ci ] 380485dae0Sopenharmony_ci deps = [ 390485dae0Sopenharmony_ci "//base/hiviewdfx/hilog_lite/frameworks/featured:hilog_shared", 400485dae0Sopenharmony_ci "//foundation/ai/ai_engine/services/client:client", 410485dae0Sopenharmony_ci "//foundation/ai/ai_engine/services/common/platform/dl_operation:dlOperation", 420485dae0Sopenharmony_ci "//foundation/ai/ai_engine/services/common/platform/lock:lock", 430485dae0Sopenharmony_ci "//foundation/ai/ai_engine/services/common/protocol/data_channel:data_channel", 440485dae0Sopenharmony_ci "//foundation/ai/ai_engine/services/server/plugin_manager:plugin_manager", 450485dae0Sopenharmony_ci "//foundation/ai/ai_engine/test/sample:sample_plugin_1", 460485dae0Sopenharmony_ci "//foundation/ai/ai_engine/test/sample:sample_plugin_2", 470485dae0Sopenharmony_ci "//foundation/systemabilitymgr/samgr_lite/samgr:samgr", 480485dae0Sopenharmony_ci ] 490485dae0Sopenharmony_ci sources = [ 500485dae0Sopenharmony_ci "async_process/async_process_function_test.cpp", 510485dae0Sopenharmony_ci "destroy/destroy_function_test.cpp", 520485dae0Sopenharmony_ci "init/init_function_test.cpp", 530485dae0Sopenharmony_ci "plugin_label/plugin_label_test.cpp", 540485dae0Sopenharmony_ci "plugin_manager/plugin_manager_test.cpp", 550485dae0Sopenharmony_ci "prepare/prepare_function_test.cpp", 560485dae0Sopenharmony_ci "release/release_function_test.cpp", 570485dae0Sopenharmony_ci "sa_client/sa_client_test.cpp", 580485dae0Sopenharmony_ci "set_get_option/option_function_test.cpp", 590485dae0Sopenharmony_ci "share_memory/share_memory_test.cpp", 600485dae0Sopenharmony_ci "sync_process/sync_process_function_test.cpp", 610485dae0Sopenharmony_ci ] 620485dae0Sopenharmony_ci} 630485dae0Sopenharmony_ci 640485dae0Sopenharmony_cigroup("function") { 650485dae0Sopenharmony_ci deps = [ 660485dae0Sopenharmony_ci ":ai_test_function_door", 670485dae0Sopenharmony_ci "death_callback:testDeathCallback", 680485dae0Sopenharmony_ci ] 690485dae0Sopenharmony_ci} 70