1// Copyright (C) 2022 The Android Open Source Project
2//
3// Licensed under the Apache License, Version 2.0 (the "License");
4// you may not use this file except in compliance with the License.
5// You may obtain a copy of the License at
6//
7//      http://www.apache.org/licenses/LICENSE-2.0
8//
9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14package {
15    default_applicable_licenses: ["Android-Apache-2.0"],
16}
17
18android_test {
19    name: "RkpdAppUnitTests",
20    srcs: ["src/**/*.java"],
21    static_libs: [
22        "Nene",
23        "RkpdAppTestUtil",
24        "androidx.test.ext.junit",
25        "androidx.test.core",
26        "androidx.test.rules",
27        "androidx.work_work-runtime",
28        "androidx.work_work-testing",
29        "cbor-java",
30        "libnanohttpd",
31        "mockito-target-extended-minus-junit4",
32        "platform-test-annotations",
33        "truth",
34        "rkpdapp-tink-prebuilt-test-only",
35        "bouncycastle-unbundled",
36    ],
37    platform_apis: true,
38    test_suites: [
39        "general-tests",
40        "device-tests",
41        "mts-rkpd",
42    ],
43    min_sdk_version: "33",
44    instrumentation_for: "rkpdapp",
45}
46
47// There's no Ed25519 support yet, in conscrypt, so we pull in a Tink
48// prebuild jar to supply that functionality.
49// Ed25519/X25519 support in conscrypt is tracked by b/214203951
50java_import {
51    name: "rkpdapp-tink-prebuilt-test-only",
52    jars: ["tink-android-1.5.0.jar"],
53    sdk_version: "module_current",
54    visibility: [
55        ":__subpackages__",
56        "//vendor:__subpackages__",
57    ],
58}
59