1bae4d13cSopenharmony_ci# Copyright (c) 2023 Huawei Device Co., Ltd.
2bae4d13cSopenharmony_ci# Licensed under the Apache License, Version 2.0 (the "License");
3bae4d13cSopenharmony_ci# you may not use this file except in compliance with the License.
4bae4d13cSopenharmony_ci# You may obtain a copy of the License at
5bae4d13cSopenharmony_ci#
6bae4d13cSopenharmony_ci#     http://www.apache.org/licenses/LICENSE-2.0
7bae4d13cSopenharmony_ci#
8bae4d13cSopenharmony_ci# Unless required by applicable law or agreed to in writing, software
9bae4d13cSopenharmony_ci# distributed under the License is distributed on an "AS IS" BASIS,
10bae4d13cSopenharmony_ci# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11bae4d13cSopenharmony_ci# See the License for the specific language governing permissions and
12bae4d13cSopenharmony_ci# limitations under the License.
13bae4d13cSopenharmony_ci
14bae4d13cSopenharmony_ciimport("//build/test.gni")
15bae4d13cSopenharmony_ciimport("./../../../../sensor.gni")
16bae4d13cSopenharmony_ci
17bae4d13cSopenharmony_ciohos_unittest("SensorNativeTest") {
18bae4d13cSopenharmony_ci  module_out_path = "sensor/interfaces"
19bae4d13cSopenharmony_ci
20bae4d13cSopenharmony_ci  sources =
21bae4d13cSopenharmony_ci      [ "$SUBSYSTEM_DIR/test/unittest/interfaces/kits/sensor_native_test.cpp" ]
22bae4d13cSopenharmony_ci
23bae4d13cSopenharmony_ci  include_dirs = [
24bae4d13cSopenharmony_ci    "$SUBSYSTEM_DIR/utils/common/include",
25bae4d13cSopenharmony_ci    "$SUBSYSTEM_DIR/interfaces/kits/c",
26bae4d13cSopenharmony_ci    "$SUBSYSTEM_DIR/frameworks/native/include",
27bae4d13cSopenharmony_ci  ]
28bae4d13cSopenharmony_ci
29bae4d13cSopenharmony_ci  deps = [
30bae4d13cSopenharmony_ci    "$SUBSYSTEM_DIR/frameworks/native:ohsensor",
31bae4d13cSopenharmony_ci    "$SUBSYSTEM_DIR/utils/common:libsensor_utils",
32bae4d13cSopenharmony_ci  ]
33bae4d13cSopenharmony_ci
34bae4d13cSopenharmony_ci  external_deps = [
35bae4d13cSopenharmony_ci    "access_token:libaccesstoken_sdk",
36bae4d13cSopenharmony_ci    "access_token:libnativetoken_shared",
37bae4d13cSopenharmony_ci    "access_token:libtokensetproc_shared",
38bae4d13cSopenharmony_ci    "c_utils:utils",
39bae4d13cSopenharmony_ci    "googletest:gmock",
40bae4d13cSopenharmony_ci    "googletest:gtest_main",
41bae4d13cSopenharmony_ci    "hilog:libhilog",
42bae4d13cSopenharmony_ci    "ipc:ipc_single",
43bae4d13cSopenharmony_ci  ]
44bae4d13cSopenharmony_ci}
45bae4d13cSopenharmony_cigroup("unittest") {
46bae4d13cSopenharmony_ci  testonly = true
47bae4d13cSopenharmony_ci  deps = [ ":SensorNativeTest" ]
48bae4d13cSopenharmony_ci}
49