# Copyright (c) 2022-2023 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/test.gni") module_output_path = "graphic_2d/rosen/modules/2d_graphics/effect" ohos_unittest("2d_graphics_effect_test") { module_out_path = module_output_path sources = [ "blur_draw_looper_test.cpp", "color_filter_test.cpp", "color_matrix_test.cpp", "color_space_test.cpp", "filter_test.cpp", "image_filter_test.cpp", "mask_filter_test.cpp", "path_effect_test.cpp", "shader_effect_test.cpp", ] include_dirs = [ "//third_party/googletest/googletest/include", "//foundation/graphic/graphic_2d/rosen/modules/2d_graphics/include", "//foundation/graphic/graphic_2d/rosen/modules/2d_graphics/src", "//commonlibrary/c_utils/base/include", ] deps = [ "//foundation/graphic/graphic_2d/rosen/modules/2d_graphics:2d_graphics", ] external_deps = [ "hilog:libhilog" ] if (defined(use_rosen_drawing) && use_rosen_drawing) { defines = [ "USE_ROSEN_DRAWING" ] } part_name = "graphic_2d" subsystem_name = "graphic" } group("unittest") { testonly = true deps = [ ":2d_graphics_effect_test" ] }