1// Copyright (C) 2018 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.
14
15android_test {
16    name: "FrameworksIkeTests",
17
18    srcs: ["src/java/**/*.java"],
19
20    platform_apis: true,
21    certificate: "platform",
22    test_suites: ["device-tests", "mts"],
23
24    compile_multilib: "both",
25
26    libs: ["android.test.runner"],
27
28    static_libs: [
29        // TODO (b/149494912): Do not statically link ike and test against <uses-library>
30        "ike_test", // Runs against a test version of the IKE library, not on the system's copy.
31        "androidx.test.rules",
32        "frameworks-base-testutils",
33        "mockito-target-inline-minus-junit4",
34        "services.core",
35    ],
36
37    jni_libs: [
38        "libdexmakerjvmtiagent",
39        "libstaticjvmtiagent",
40        "libmultiplejvmtiagentsinterferenceagent",
41    ],
42}
43
44    filegroup {
45        name: "ike-test-utils",
46        srcs: ["src/java/**/CertUtils.java"],
47    }