• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 2021 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/ace_config.gni")
16
17if (is_standard_system) {
18  module_output_path = "ace_engine/frameworkbasicability/geometry"
19} else {
20  module_output_path = "ace_engine_full/frameworkbasicability/geometry"
21}
22
23ohos_unittest("GeometryTest") {
24  module_out_path = module_output_path
25
26  sources = [
27    # deps
28    "$ace_root/frameworks/base/test/mock/mock_system_properties.cpp",
29    "$ace_root/frameworks/base/utils/base_id.cpp",
30    "$ace_root/frameworks/core/animation/animator.cpp",
31    "$ace_root/frameworks/core/animation/anticipate_curve.cpp",
32    "$ace_root/frameworks/core/animation/cubic_curve.cpp",
33    "$ace_root/frameworks/core/animation/curves.cpp",
34    "$ace_root/frameworks/core/animation/test/mock/mock_scheduler.cpp",
35    "$ace_root/frameworks/core/common/container_scope.cpp",
36    "$ace_root/frameworks/core/common/test/mock/mock_container.cpp",
37    "$ace_root/frameworks/core/components/common/properties/color.cpp",
38    "$ace_root/frameworks/core/pipeline_ng/test/mock/mock_pipeline_base.cpp",
39    "$ace_root/frameworks/core/pipeline_ng/test/mock/mock_pipeline_context.cpp",
40
41    # test target
42    "$ace_root/frameworks/base/geometry/animatable_dimension.cpp",
43    "$ace_root/frameworks/base/geometry/animatable_matrix4.cpp",
44    "$ace_root/frameworks/base/geometry/dimension.cpp",
45    "$ace_root/frameworks/base/geometry/least_square_impl.cpp",
46    "$ace_root/frameworks/base/geometry/matrix3.cpp",
47    "$ace_root/frameworks/base/geometry/matrix4.cpp",
48    "$ace_root/frameworks/base/geometry/quaternion.cpp",
49    "$ace_root/frameworks/base/geometry/transform_util.cpp",
50
51    # self
52    "animatable_dimension_test.cpp",
53    "animatable_matrix4_test.cpp",
54    "dimension_test.cpp",
55    "least_square_impl_test.cpp",
56    "matrix3_test.cpp",
57    "matrix4_test.cpp",
58    "quaternion_test.cpp",
59    "transform_util_test.cpp",
60  ]
61
62  include_dirs = [
63    "//commonlibrary/c_utils/base/include",
64    "$ace_root",
65    "//third_party/googletest/googlemock/include",
66  ]
67
68  configs = [ "$ace_root:ace_test_config" ]
69
70  deps = [
71    "$ace_root:ace_test_log",
72    "$cjson_root:cjson_static",
73    "//third_party/googletest:gmock_main",
74    "//third_party/googletest:gtest_main",
75  ]
76
77  external_deps = [ "c_utils:utils" ]
78
79  part_name = ace_engine_part
80}
81