blob: e40525c4cc35c8b2ead4366429ae2d8544f255b4 [file] [log] [blame]
David Drysdalec8625a82023-09-11 13:10:48 +01001//
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 {
Yihan Dong8c111de2024-10-12 08:58:30 +000018 default_team: "trendy_team_android_hardware_backed_security",
David Drysdalec8625a82023-09-11 13:10:48 +010019 // 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}
David Drysdalefe418252023-11-07 09:27:56 +000050
51rust_test {
52 name: "VtsAidlAuthGraphRoleTest",
53 srcs: ["role_test.rs"],
David Drysdale087ead12023-11-21 10:18:08 +000054 require_root: true,
David Drysdalefe418252023-11-07 09:27:56 +000055 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}