# Copyright (C) 2022 Huawei Device Co., Ltd. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. import("//build/ohos.gni") import("//build/ohos_var.gni") import("//build/test.gni") module_output_path = "libpurgeablemem/" purgeable_external_deps = [ "c_utils:utils", "hilog:libhilog", "memory_utils:libpurgeablemem", ] ohos_unittest("purgeable_c_test") { module_out_path = module_output_path sources = [ "purgeable_c_test.cpp" ] if (is_standard_system) { external_deps = purgeable_external_deps } subsystem_name = "commonlibrary" part_name = "memory_utils" } ohos_unittest("purgeable_cpp_test") { module_out_path = module_output_path sources = [ "purgeable_cpp_test.cpp" ] if (is_standard_system) { external_deps = purgeable_external_deps } subsystem_name = "commonlibrary" part_name = "memory_utils" } ohos_unittest("purgeableashmem_test") { module_out_path = module_output_path sources = [ "purgeableashmem_test.cpp" ] if (is_standard_system) { external_deps = purgeable_external_deps } subsystem_name = "commonlibrary" part_name = "memory_utils" } group("libpurgeablemem_test") { testonly = true deps = [ ":purgeable_c_test", ":purgeable_cpp_test", ":purgeableashmem_test", ] }