• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1//
2// Copyright (C) 2020 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
17android_test {
18    name: "PermissionControllerMockingTests",
19
20    resource_dirs: [
21        "main_res",
22    ],
23
24    srcs: [
25        ":permissioncontroller-sources",
26
27        "src/**/*.kt",
28    ],
29
30    libs: [
31        "android.car-stubs",
32
33        "android.test.base",
34        "android.test.runner",
35    ],
36
37    static_libs: [
38        "iconloader",
39        "com.google.android.material_material",
40        "androidx.transition_transition",
41        "androidx-constraintlayout_constraintlayout",
42        "androidx.core_core",
43        "androidx.media_media",
44        "androidx.legacy_legacy-support-core-utils",
45        "androidx.legacy_legacy-support-core-ui",
46        "androidx.fragment_fragment",
47        "androidx.appcompat_appcompat",
48        "androidx.preference_preference",
49        "androidx.recyclerview_recyclerview",
50        "androidx.legacy_legacy-preference-v14",
51        "androidx.leanback_leanback",
52        "androidx.leanback_leanback-preference",
53        "androidx.lifecycle_lifecycle-extensions",
54        "androidx.lifecycle_lifecycle-common-java8",
55        "kotlin-stdlib",
56        "kotlinx-coroutines-android",
57        "androidx.navigation_navigation-common-ktx",
58        "androidx.navigation_navigation-fragment-ktx",
59        "androidx.navigation_navigation-runtime-ktx",
60        "androidx.navigation_navigation-ui-ktx",
61        "SettingsLibHelpUtils",
62        "SettingsLibRestrictedLockUtils",
63        "SettingsLibAppPreference",
64        "SettingsLibSearchWidget",
65        "SettingsLibLayoutPreference",
66        "SettingsLibBarChartPreference",
67        "SettingsLibActionBarShadow",
68        "SettingsLibProgressBar",
69        "androidx.annotation_annotation",
70        "permissioncontroller-statsd",
71        "car-ui-lib",
72        "libprotobuf-java-lite",
73	"SettingsLibUtils",
74
75        "androidx.test.rules",
76        "androidx.test.ext.truth",
77        "androidx.test.ext.junit",
78        "mockito-target-extended-minus-junit4",
79    ],
80
81    jni_libs: [
82        "libdexmakerjvmtiagent",
83        "libstaticjvmtiagent",
84    ],
85
86    aaptflags: ["--custom-package com.android.permissioncontroller"],
87
88    test_suites: ["device-tests"]
89}
90