• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (C) 2022 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.
13import("//build/test.gni")
14
15module_output_path = "storage_service/crypto"
16
17config("module_private_config") {
18  visibility = [ ":*" ]
19}
20
21ohos_moduletest("CryptoSubTest") {
22  module_out_path = module_output_path
23
24  defines = [
25    "STORAGE_LOG_TAG = \"StorageDaemon\"",
26    "LOG_DOMAIN = 0xD004301",
27  ]
28
29  include_dirs = [
30    "../../include",
31    "../../include/crypto",
32    "//commonlibrary/c_utils/base/include",
33  ]
34
35  sources = [ "crypto_key_test.cpp" ]
36
37  public_deps = [ "//commonlibrary/c_utils/base:utils" ]
38
39  configs = [ ":module_private_config" ]
40
41  deps = [ "//third_party/googletest:gtest_main" ]
42  deps += [
43    "../../crypto:libsdcrypto",
44    "//foundation/filemanagement/storage_service/services/storage_daemon/libfscrypt:libfscryptutils",
45  ]
46}
47
48group("crypto_test") {
49  testonly = true
50  deps = [ ":CryptoSubTest" ]
51}
52