blob: 92c578d64265703eddaffd5568816148b526e1c6 [file] [log] [blame]
felkachang864699a2019-01-11 16:28:17 +08001// Copyright (C) 2019 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
felkachangacf1bd42018-10-08 15:42:19 +080015filegroup {
16 name: "DocumentsUIPerfTests-files",
17 srcs: [
18 "common/com/android/documentsui/**/*.java",
19 "functional/com/android/documentsui/ActivityTest.java",
20 ],
21}
22
Bill Line77ec522019-02-12 19:35:12 +080023filegroup {
24 name: "DocumentsUITests-srcs",
25 srcs: [
26 "common/**/*.java",
27 "functional/**/*.java",
28 "unit/**/*.java",
29 ],
30}
31
32android_library {
33 name: "DocumentsUITests-res-lib",
34
35 manifest: "AndroidManifest.xml",
36
37 asset_dirs: [
38 "assets",
39 ],
40
41 resource_dirs: [
42 "res",
43 ],
44
45 aaptflags: [
46 // pack some raw file locate in assets folder
47 "-0 .zip",
48 "--auto-add-overlay",
49 ],
50}
51
felkachangacf1bd42018-10-08 15:42:19 +080052android_test {
53 name: "DocumentsUITests",
54
55 manifest: "AndroidManifest.xml",
56
57 srcs: [
58 "common/**/*.java",
59 "functional/**/*.java",
60 "unit/**/*.java",
61 ],
62
63 resource_dirs: [
64 "res",
65 ],
66
67 aaptflags: [
68 "-0 .zip",
69 ],
70
71 libs: [
72 "android.test.base",
73 "android.test.mock",
74 "android.test.runner",
75 ],
76
77 static_libs: [
Brett Chabot2027ca02018-12-13 19:06:31 -080078 "androidx.test.rules",
79 "androidx.test.espresso.core",
felkachang864699a2019-01-11 16:28:17 +080080 "androidx.test.ext.truth",
felkachangacf1bd42018-10-08 15:42:19 +080081 "guava",
82 "mockito-target",
felkachangacf1bd42018-10-08 15:42:19 +080083 "ub-uiautomator",
84 ],
85
86 jarjar_rules: "jarjar-rules.txt",
87
88 test_suites: [
89 "device-tests",
90 ],
91
92 platform_apis: true,
93
94 certificate: "platform",
95
96 instrumentation_for: "DocumentsUI",
97}