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