14ed2deddSopenharmony_ci# Copyright (c) 2020-2021 Huawei Device Co., Ltd.
24ed2deddSopenharmony_ci# Licensed under the Apache License, Version 2.0 (the "License");
34ed2deddSopenharmony_ci# you may not use this file except in compliance with the License.
44ed2deddSopenharmony_ci# You may obtain a copy of the License at
54ed2deddSopenharmony_ci#     http://www.apache.org/licenses/LICENSE-2.0
64ed2deddSopenharmony_ci# Unless required by applicable law or agreed to in writing, software
74ed2deddSopenharmony_ci# distributed under the License is distributed on an "AS IS" BASIS,
84ed2deddSopenharmony_ci# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
94ed2deddSopenharmony_ci# See the License for the specific language governing permissions and
104ed2deddSopenharmony_ci# limitations under the License.
114ed2deddSopenharmony_ci
124ed2deddSopenharmony_ciimport("//build/lite/config/test.gni")
134ed2deddSopenharmony_ci
144ed2deddSopenharmony_cigroup("surface_lite_test") {
154ed2deddSopenharmony_ci  if (ohos_build_type == "debug") {
164ed2deddSopenharmony_ci    deps = [ ":surface_lite_unittest_door" ]
174ed2deddSopenharmony_ci  }
184ed2deddSopenharmony_ci}
194ed2deddSopenharmony_ci
204ed2deddSopenharmony_ciif (ohos_build_type == "debug") {
214ed2deddSopenharmony_ci  unittest("surface_lite_unittest_door") {
224ed2deddSopenharmony_ci    output_extension = "bin"
234ed2deddSopenharmony_ci    output_dir = "$root_out_dir/test/unittest/graphic"
244ed2deddSopenharmony_ci    sources = [ "unittest/graphic_surface_test.cpp" ]
254ed2deddSopenharmony_ci    deps = [
264ed2deddSopenharmony_ci      "//foundation/communication/ipc/interfaces/innerkits/c/ipc:ipc_single",
274ed2deddSopenharmony_ci      "//foundation/graphic/surface_lite:surface",
284ed2deddSopenharmony_ci    ]
294ed2deddSopenharmony_ci  }
304ed2deddSopenharmony_ci}
31