1fc0b0055Sopenharmony_ci# Copyright (C) 2023 Huawei Device Co., Ltd.
2fc0b0055Sopenharmony_ci# Licensed under the Apache License, Version 2.0 (the "License");
3fc0b0055Sopenharmony_ci# you may not use this file except in compliance with the License.
4fc0b0055Sopenharmony_ci# You may obtain a copy of the License at
5fc0b0055Sopenharmony_ci#
6fc0b0055Sopenharmony_ci#     http://www.apache.org/licenses/LICENSE-2.0
7fc0b0055Sopenharmony_ci#
8fc0b0055Sopenharmony_ci# Unless required by applicable law or agreed to in writing, software
9fc0b0055Sopenharmony_ci# distributed under the License is distributed on an "AS IS" BASIS,
10fc0b0055Sopenharmony_ci# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11fc0b0055Sopenharmony_ci# See the License for the specific language governing permissions and
12fc0b0055Sopenharmony_ci# limitations under the License.
13fc0b0055Sopenharmony_ci
14fc0b0055Sopenharmony_ciimport("//base/security/access_token/access_token.gni")
15fc0b0055Sopenharmony_ciimport("//build/test.gni")
16fc0b0055Sopenharmony_ci
17fc0b0055Sopenharmony_ciohos_unittest("CreateCameraWindowTest") {
18fc0b0055Sopenharmony_ci  subsystem_name = "security"
19fc0b0055Sopenharmony_ci  part_name = "access_token"
20fc0b0055Sopenharmony_ci  module_out_path = part_name + "/" + part_name
21fc0b0055Sopenharmony_ci  sanitize = {
22fc0b0055Sopenharmony_ci    cfi = true
23fc0b0055Sopenharmony_ci    cfi_cross_dso = true
24fc0b0055Sopenharmony_ci    debug = false
25fc0b0055Sopenharmony_ci  }
26fc0b0055Sopenharmony_ci  branch_protector_ret = "pac_ret"
27fc0b0055Sopenharmony_ci  sources = [ "camera_window_create.cpp" ]
28fc0b0055Sopenharmony_ci
29fc0b0055Sopenharmony_ci  deps = [
30fc0b0055Sopenharmony_ci    "${access_token_path}/interfaces/innerkits/token_setproc:libtoken_setproc",
31fc0b0055Sopenharmony_ci  ]
32fc0b0055Sopenharmony_ci  external_deps = [
33fc0b0055Sopenharmony_ci    "ability_base:configuration",
34fc0b0055Sopenharmony_ci    "ability_runtime:ability_context_native",
35fc0b0055Sopenharmony_ci    "ability_runtime:ability_manager",
36fc0b0055Sopenharmony_ci    "ability_runtime:abilitykit_native",
37fc0b0055Sopenharmony_ci    "ability_runtime:ui_extension",
38fc0b0055Sopenharmony_ci    "c_utils:utils",
39fc0b0055Sopenharmony_ci    "ipc:ipc_core",
40fc0b0055Sopenharmony_ci    "napi:ace_napi",
41fc0b0055Sopenharmony_ci    "window_manager:libwm",
42fc0b0055Sopenharmony_ci  ]
43fc0b0055Sopenharmony_ci}
44