• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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
14if (defined(ohos_lite)) {
15  import("//build/lite/config/test.gni")
16} else {
17  import("//build/config/sanitizers/sanitizers.gni")
18  import("//build/test.gni")
19  import("//drivers/hdf_core/adapter/uhdf2/uhdf.gni")
20}
21
22if (defined(ohos_lite)) {
23  unittest("hdf_usb_device_sdk_io_test") {
24    output_extension = "bin"
25    output_dir = "$root_out_dir/test/unittest/hdf"
26    include_dirs = [
27      "//third_party/googletest/googletest/include",
28      "//third_party/bounds_checking_function/include",
29      "//drivers/hdf_core/framework/include/platform",
30      "//drivers/hdf_core/framework/include/core",
31      "//drivers/hdf_core/framework/include/osal",
32      "//drivers/hdf_core/adapter/uhdf/posix/include",
33      "//drivers/hdf_core/framework/include/utils",
34      "//drivers/hdf_core/framework/include",
35      "//drivers/hdf_core/framework/test/unittest/include",
36      "//base/hiviewdfx/hilog_lite/interfaces/native/innerkits",
37      "//drivers/peripheral/usb/test/unittest/common",
38    ]
39
40    sources = [ "//drivers/peripheral/usb/test/performance/common/usb_device_liteos_sdk_io_test.cpp" ]
41    deps = [
42      "//base/hiviewdfx/hilog_lite/frameworks/featured:hilog_shared",
43      "//drivers/hdf_core/adapter/uhdf/manager:hdf_core",
44      "//drivers/hdf_core/adapter/uhdf/platform:hdf_platform",
45      "//drivers/hdf_core/adapter/uhdf/posix:hdf_posix_osal",
46      "//drivers/hdf_core/adapter/uhdf/test/unittest/common:hdf_test_common",
47    ]
48    public_deps = [ "//third_party/bounds_checking_function:libsec_shared" ]
49    cflags = [
50      "-Wall",
51      "-Wextra",
52      "-Werror",
53      "-fsigned-char",
54      "-fno-common",
55      "-fno-strict-aliasing",
56    ]
57  }
58}
59