1//
2// Copyright (C) 2020 The Android Open Source Project
3//
4// Licensed under the Apache License, Version 2.0 (the "License");
5// you may not use this file except in compliance with the License.
6// You may obtain a copy of the License at
7//
8//      http://www.apache.org/licenses/LICENSE-2.0
9//
10// Unless required by applicable law or agreed to in writing, software
11// distributed under the License is distributed on an "AS IS" BASIS,
12// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13// See the License for the specific language governing permissions and
14// limitations under the License.
15//
16
17package {
18    default_applicable_licenses: ["Android-Apache-2.0"],
19}
20
21cc_test {
22    name: "vts_kernel_encryption_test",
23    srcs: [
24        "adiantum.cpp",
25        "aes_256_xts.cpp",
26        "file_based_encryption_tests.cpp",
27        "Keymaster.cpp",
28        "metadata_encryption_tests.cpp",
29        "utils.cpp",
30    ],
31    cflags: [
32        "-D_FILE_OFFSET_BITS=64",
33        "-Wall",
34        "-Werror",
35    ],
36    shared_libs: [
37        "libbase",
38        "libbinder_ndk",
39        "libcrypto",
40        "liblog",
41        "libutils",
42    ],
43    defaults: [
44        "keymint_use_latest_hal_aidl_ndk_static",
45        "keystore2_use_latest_aidl_ndk_static",
46    ],
47    static_libs: [
48        "libdm",
49        "libext4_utils",
50        "libfs_mgr",
51        "libkeymint_support",
52        "liblz4",
53        "liblzma",
54    ],
55    test_suites: [
56        "general-tests",
57        "vts",
58    ],
59    require_root: true,
60    auto_gen_config: true,
61}
62