123b3eb3cSopenharmony_ci# Copyright (c) 2023 Huawei Device Co., Ltd.
223b3eb3cSopenharmony_ci# Licensed under the Apache License, Version 2.0 (the "License");
323b3eb3cSopenharmony_ci# you may not use this file except in compliance with the License.
423b3eb3cSopenharmony_ci# You may obtain a copy of the License at
523b3eb3cSopenharmony_ci#
623b3eb3cSopenharmony_ci#     http://www.apache.org/licenses/LICENSE-2.0
723b3eb3cSopenharmony_ci#
823b3eb3cSopenharmony_ci# Unless required by applicable law or agreed to in writing, software
923b3eb3cSopenharmony_ci# distributed under the License is distributed on an "AS IS" BASIS,
1023b3eb3cSopenharmony_ci# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1123b3eb3cSopenharmony_ci# See the License for the specific language governing permissions and
1223b3eb3cSopenharmony_ci# limitations under the License.
1323b3eb3cSopenharmony_ci
1423b3eb3cSopenharmony_ciimport("//foundation/arkui/ace_engine/test/unittest/ace_unittest.gni")
1523b3eb3cSopenharmony_ci
1623b3eb3cSopenharmony_ciace_unittest("geometry_test") {
1723b3eb3cSopenharmony_ci  module_output = "basic"
1823b3eb3cSopenharmony_ci  type = "new"
1923b3eb3cSopenharmony_ci  sources = [
2023b3eb3cSopenharmony_ci    "animatable_dimension_test.cpp",
2123b3eb3cSopenharmony_ci    "animatable_matrix4_test.cpp",
2223b3eb3cSopenharmony_ci    "dimension_test.cpp",
2323b3eb3cSopenharmony_ci    "least_square_impl_test.cpp",
2423b3eb3cSopenharmony_ci    "matrix3_test.cpp",
2523b3eb3cSopenharmony_ci    "matrix4_test.cpp",
2623b3eb3cSopenharmony_ci    "quaternion_test.cpp",
2723b3eb3cSopenharmony_ci    "subwindow_manager_test.cpp",
2823b3eb3cSopenharmony_ci    "transform_util_test.cpp",
2923b3eb3cSopenharmony_ci  ]
3023b3eb3cSopenharmony_ci}
3123b3eb3cSopenharmony_ci
3223b3eb3cSopenharmony_ciace_unittest("util_test") {
3323b3eb3cSopenharmony_ci  module_output = "basic"
3423b3eb3cSopenharmony_ci  type = "new"
3523b3eb3cSopenharmony_ci  sources = [
3623b3eb3cSopenharmony_ci    "base_utils_test.cpp",
3723b3eb3cSopenharmony_ci    "json_util_test.cpp",
3823b3eb3cSopenharmony_ci    "node_object_test.cpp",
3923b3eb3cSopenharmony_ci    "uobject_test.cpp",
4023b3eb3cSopenharmony_ci  ]
4123b3eb3cSopenharmony_ci
4223b3eb3cSopenharmony_ci  external_deps = [ "bounds_checking_function:libsec_shared" ]
4323b3eb3cSopenharmony_ci}
4423b3eb3cSopenharmony_ci
4523b3eb3cSopenharmony_cigroup("base_unittest") {
4623b3eb3cSopenharmony_ci  testonly = true
4723b3eb3cSopenharmony_ci  deps = [
4823b3eb3cSopenharmony_ci    ":geometry_test",
4923b3eb3cSopenharmony_ci    ":util_test",
5023b3eb3cSopenharmony_ci  ]
5123b3eb3cSopenharmony_ci}
5223b3eb3cSopenharmony_ci
5323b3eb3cSopenharmony_cigroup("linux_base_unittest") {
5423b3eb3cSopenharmony_ci  testonly = true
5523b3eb3cSopenharmony_ci  deps = [
5623b3eb3cSopenharmony_ci    ":geometry_test",
5723b3eb3cSopenharmony_ci    ":util_test",
5823b3eb3cSopenharmony_ci  ]
5923b3eb3cSopenharmony_ci}
60