• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1// Copyright (C) 2023 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
15filegroup {
16    name: "service-configinfrastructure-unitttests-bootstrap-files",
17    srcs: [
18        "data/*",
19    ],
20}
21
22android_test {
23    name: "ConfigInfrastructureServiceUnitTests",
24    min_sdk_version: "34",
25    sdk_version: "module_current",
26    manifest: "AndroidManifest.xml",
27    test_config: "AndroidTest.xml",
28    data: [
29        ":service-configinfrastructure-unitttests-bootstrap-files",
30    ],
31    srcs: [
32        "src/**/*.java",
33    ],
34    test_suites: [
35        "mts-configinfrastructure",
36        "general-tests",
37    ],
38    static_libs: [
39        "androidx.test.rules",
40        "androidx.test.runner",
41        "androidx.annotation_annotation",
42        "modules-utils-build",
43        "service-configinfrastructure.impl",
44        "frameworks-base-testutils",
45        "mockito-target-minus-junit4",
46        "truth",
47        "flag-junit",
48    ],
49    libs: [
50        "android.test.base",
51        "android.test.mock",
52        "android.test.runner",
53        "framework-connectivity.stubs.module_lib",
54        "framework-configinfrastructure",
55        "DeviceConfigServiceResources",
56    ],
57    // Test coverage system runs on different devices. Need to
58    // compile for all architecture.
59    compile_multilib: "both",
60}
61