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    test_config: "FrameworksIkeTests.xml",
29
30    static_libs: [
31        // TODO (b/149494912): Do not statically link ike and test against <uses-library>
32        "ike_test", // Runs against a test version of the IKE library, not on the system's copy.
33        "androidx.test.rules",
34        "frameworks-base-testutils",
35        "mockito-target-inline-minus-junit4",
36        "services.core",
37    ],
38
39    jni_libs: [
40        "libdexmakerjvmtiagent",
41        "libstaticjvmtiagent",
42        "libmultiplejvmtiagentsinterferenceagent",
43    ],
44}
45
46    filegroup {
47        name: "ike-test-utils",
48        srcs: ["src/java/**/CertUtils.java"],
49    }
50