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