• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 2021-2023 Huawei Device Co., Ltd.
2# Licensed under the Apache License, Version 2.0 (the "License");
3# you may not use this file except in compliance with the License.
4# You may obtain a copy of the License at
5#
6#     http://www.apache.org/licenses/LICENSE-2.0
7#
8# Unless required by applicable law or agreed to in writing, software
9# distributed under the License is distributed on an "AS IS" BASIS,
10# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11# See the License for the specific language governing permissions and
12# limitations under the License.
13
14import("//build/test.gni")
15import("//foundation/arkui/ace_engine/test/unittest/ace_unittest.gni")
16
17ohos_unittest("geometry_test") {
18  module_out_path = "$basic_test_output_path/geometry"
19
20  sources = [
21    # deps
22
23    "$ace_root/frameworks/base/json/json_util.cpp",
24    "$ace_root/frameworks/base/test/mock/mock_system_properties.cpp",
25    "$ace_root/frameworks/base/utils/base_id.cpp",
26    "$ace_root/frameworks/core/animation/animator.cpp",
27    "$ace_root/frameworks/core/animation/anticipate_curve.cpp",
28    "$ace_root/frameworks/core/animation/cubic_curve.cpp",
29    "$ace_root/frameworks/core/animation/curves.cpp",
30    "$ace_root/frameworks/core/animation/test/mock/mock_scheduler.cpp",
31    "$ace_root/frameworks/core/common/container_scope.cpp",
32    "$ace_root/frameworks/core/components/common/properties/color.cpp",
33    "$ace_root/frameworks/core/pipeline_ng/test/mock/mock_pipeline_base.cpp",
34    "$ace_root/test/mock/core/common/mock_container.cpp",
35    "$ace_root/test/mock/frameworks/base/log/mock_jank_frame_report.cpp",
36
37    # test target
38    "$ace_root/frameworks/base/geometry/animatable_dimension.cpp",
39    "$ace_root/frameworks/base/geometry/animatable_matrix4.cpp",
40    "$ace_root/frameworks/base/geometry/dimension.cpp",
41    "$ace_root/frameworks/base/geometry/least_square_impl.cpp",
42    "$ace_root/frameworks/base/geometry/matrix3.cpp",
43    "$ace_root/frameworks/base/geometry/matrix4.cpp",
44    "$ace_root/frameworks/base/geometry/quaternion.cpp",
45    "$ace_root/frameworks/base/geometry/transform_util.cpp",
46
47    # self
48    "animatable_dimension_test.cpp",
49    "animatable_matrix4_test.cpp",
50    "dimension_test.cpp",
51    "least_square_impl_test.cpp",
52    "matrix3_test.cpp",
53    "matrix4_test.cpp",
54    "quaternion_test.cpp",
55    "transform_util_test.cpp",
56  ]
57
58  deps = [
59    "$ace_root/frameworks/base:ace_memory_monitor_ohos",
60    "$ace_root/test/unittest:ace_unittest_log",
61    "$ace_root/test/unittest:ace_unittest_trace",
62    "$cjson_root:cjson_static",
63    "//third_party/googletest:gmock_main",
64  ]
65  configs = [ "$ace_root/test/unittest:ace_unittest_config" ]
66}
67