• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 2022 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("../../../../../../graphic_config.gni")
16module_output_path =
17    "graphic_2d/graphic_2d/rosen/modules/animation/window_animation"
18
19ohos_unittest("RSWindowAnimationTest") {
20  module_out_path = module_output_path
21
22  sources = [
23    "rs_window_animation_finished_callback_proxy_test.cpp",
24    "rs_window_animation_finished_callback_stub_test.cpp",
25    "rs_window_animation_proxy_test.cpp",
26    "rs_window_animation_stub_test.cpp",
27    "rs_window_animation_target_test.cpp",
28  ]
29
30  configs = [ ":rs_window_animation_test_config" ]
31
32  deps = [
33    "$graphic_2d_root/rosen/modules/animation/window_animation:window_animation",
34    "$graphic_2d_root/rosen/modules/render_service_base:librender_service_base",
35    "$graphic_2d_root/rosen/modules/render_service_client:librender_service_client",
36  ]
37
38  external_deps = [
39    "access_token:libaccesstoken_sdk",
40    "c_utils:utils",
41    "eventhandler:libeventhandler",
42    "graphic_surface:surface",
43    "hilog:libhilog",
44    "hisysevent:libhisysevent",
45    "init:libbeget_proxy",
46    "init:libbegetutil",
47    "ipc:ipc_core",
48    "ipc:libdbinder",
49    "googletest:gtest_main",
50    "window_manager:libwm",
51  ]
52
53  subsystem_name = "graphic"
54}
55
56config("rs_window_animation_test_config") {
57  visibility = [ ":*" ]
58  include_dirs = [
59    "//foundation/window/window_manager/interfaces/innerkits",
60    "//foundation/graphic/graphic_2d/rosen/modules/animation/window_animation/include",
61  ]
62}
63
64group("unittest") {
65  testonly = true
66  deps = [ ":RSWindowAnimationTest" ]
67}
68