• 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 = "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    "c_utils:utils",
42    "eventhandler:libeventhandler",
43    "graphic_surface:surface",
44    "hilog:libhilog",
45    "hisysevent:libhisysevent",
46    "init:libbeget_proxy",
47    "init:libbegetutil",
48    "ipc:ipc_core",
49    "ipc:libdbinder",
50  ]
51
52  subsystem_name = "graphic"
53}
54
55config("rs_window_animation_test_config") {
56  visibility = [ ":*" ]
57  include_dirs = [
58    "//foundation/window/window_manager/interfaces/innerkits",
59    "//foundation/graphic/graphic_2d/rosen/modules/animation/window_animation/include",
60  ]
61}
62
63group("unittest") {
64  testonly = true
65  deps = [ ":RSWindowAnimationTest" ]
66}
67