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/graphic/graphic_surface/graphic_surface_config.gni") 16 17module_out_path = "graphic_surface/surface" 18 19group("systemtest") { 20 testonly = true 21 22 deps = [ 23 ":native_window_buffer_test", 24 ":surface_ipc_test", 25 ] 26} 27 28## SystemTest native_window_buffer_test {{{ 29ohos_systemtest("native_window_buffer_test") { 30 module_out_path = module_out_path 31 32 sources = [ "native_window_buffer_test.cpp" ] 33 34 include_dirs = [ 35 "$graphic_surface_root/surface/include", 36 "//base/security/access_token/interfaces/innerkits/nativetoken/include", 37 "//base/security/access_token/interfaces/innerkits/accesstoken/include", 38 "//base/security/access_token/interfaces/innerkits/token_setproc/include", 39 ] 40 41 cflags = [ 42 "-Wall", 43 "-Werror", 44 "-g3", 45 "-Dprivate=public", 46 "-Dprotected=public", 47 ] 48 49 deps = [ 50 "$graphic_surface_root/buffer_handle:buffer_handle", 51 "$graphic_surface_root/surface:surface", 52 "//third_party/googletest:gtest_main", 53 ] 54 55 external_deps = [ 56 "access_token:libaccesstoken_sdk", 57 "access_token:libnativetoken", 58 "access_token:libtoken_setproc", 59 "c_utils:utils", 60 "hilog:libhilog", 61 "ipc:ipc_core", 62 "samgr:samgr_proxy", 63 ] 64} 65 66## SystemTest native_window_buffer_test }}} 67 68## SystemTest surface_ipc_test {{{ 69ohos_systemtest("surface_ipc_test") { 70 module_out_path = module_out_path 71 72 sources = [ "surface_ipc_test.cpp" ] 73 74 include_dirs = [ 75 "$graphic_surface_root/surface/include", 76 "//base/security/access_token/interfaces/innerkits/nativetoken/include", 77 "//base/security/access_token/interfaces/innerkits/accesstoken/include", 78 "//base/security/access_token/interfaces/innerkits/token_setproc/include", 79 ] 80 81 cflags = [ 82 "-Wall", 83 "-Werror", 84 "-g3", 85 ] 86 87 deps = [ 88 "$graphic_surface_root/surface:surface", 89 "//third_party/googletest:gtest_main", 90 ] 91 92 external_deps = [ 93 "access_token:libaccesstoken_sdk", 94 "access_token:libnativetoken", 95 "access_token:libtoken_setproc", 96 "c_utils:utils", 97 "hilog:libhilog", 98 "ipc:ipc_core", 99 "samgr:samgr_proxy", 100 ] 101} 102## SystemTest surface_ipc_test }}} 103