xref: /aosp_15_r20/hardware/interfaces/security/authgraph/aidl/vts/functional/Android.bp (revision 4d7e907c777eeecc4c5bd7cf640a754fac206ff7)
1//
2// Copyright (C) 2023 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_team: "trendy_team_android_hardware_backed_security",
19    // See: http://go/android-license-faq
20    // A large-scale-change added 'default_applicable_licenses' to import
21    // all of the 'license_kinds' from "hardware_interfaces_license"
22    // to get the below license kinds:
23    //   SPDX-license-identifier-Apache-2.0
24    default_applicable_licenses: ["hardware_interfaces_license"],
25}
26
27cc_test {
28    name: "VtsAidlAuthGraphSessionTest",
29    defaults: [
30        "VtsHalTargetTestDefaults",
31        "authgraph_use_latest_hal_aidl_ndk_static",
32        "use_libaidlvintf_gtest_helper_static",
33    ],
34    cflags: [
35        "-Wall",
36        "-Wextra",
37    ],
38    srcs: [
39        "AuthGraphSessionTest.cpp",
40    ],
41    shared_libs: [
42        "libbinder_ndk",
43        "libcrypto",
44    ],
45    test_suites: [
46        "general-tests",
47        "vts",
48    ],
49}
50
51rust_test {
52    name: "VtsAidlAuthGraphRoleTest",
53    srcs: ["role_test.rs"],
54    require_root: true,
55    test_suites: [
56        "general-tests",
57        "vts",
58    ],
59    defaults: [
60        "authgraph_use_latest_hal_aidl_rust",
61    ],
62    rustlibs: [
63        "libauthgraph_vts_test",
64        "libbinder_rs",
65    ],
66}
67
68rust_library {
69    name: "libauthgraph_vts_test",
70    crate_name: "authgraph_vts_test",
71    srcs: ["lib.rs"],
72    defaults: [
73        "authgraph_use_latest_hal_aidl_rust",
74    ],
75    rustlibs: [
76        "libauthgraph_boringssl",
77        "libauthgraph_core",
78        "libauthgraph_hal",
79        "libauthgraph_nonsecure",
80        "libbinder_rs",
81        "libcoset",
82    ],
83}
84