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    static_libs: [
44        "android.hardware.security.keymint-V1-ndk_platform",
45        "android.system.keystore2-V1-ndk_platform",
46        "libdm",
47        "libext4_utils",
48        "libfs_mgr",
49        "libkeymint_support",
50        "liblzma",
51    ],
52    test_suites: [
53        "general-tests",
54        "vts",
55    ],
56    require_root: true,
57    auto_gen_config: true,
58}
59