blob: 1a83655ed8d303edb7e79353c49178d22243262c [file] [log] [blame]
Sasha Smundak89414e12019-03-10 19:48:23 -07001//
2// Copyright (C) 2018 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: "FlickerTests",
Nataniel Borgesc0254c82020-06-03 16:08:42 +020019 srcs: ["src/**/*.java", "src/**/*.kt"],
Nataniel Borges2fd569d2020-04-20 14:16:15 +020020 manifest: "AndroidManifest.xml",
Nataniel Borges2b707c52020-08-24 20:54:35 +020021 test_config: "AndroidTestPhysicalDevices.xml",
Sasha Smundak89414e12019-03-10 19:48:23 -070022 platform_apis: true,
23 certificate: "platform",
24 test_suites: ["device-tests"],
25 libs: ["android.test.runner"],
26 static_libs: [
Nataniel Borgesb8b5eb02020-07-13 16:33:01 +020027 "androidx.test.ext.junit",
Sasha Smundak89414e12019-03-10 19:48:23 -070028 "flickertestapplib",
29 "flickerlib",
30 "truth-prebuilt",
Nataniel Borgesf4cf0fb2020-07-17 16:18:28 +020031 "launcher-helper-lib",
Yuncheol Heoc24dfb62020-09-09 17:09:10 -070032 "launcher-aosp-tapl",
33 "platform-test-annotations",
Sasha Smundak89414e12019-03-10 19:48:23 -070034 ],
35}
Nataniel Borges2b707c52020-08-24 20:54:35 +020036
37
38android_test {
39 name: "FlickerTestsVirtual",
40 srcs: ["src/**/*.java", "src/**/*.kt"],
41 manifest: "AndroidManifest.xml",
42 test_config: "AndroidTestVirtualDevices.xml",
43 platform_apis: true,
44 certificate: "platform",
45 test_suites: ["device-tests"],
46 libs: ["android.test.runner"],
47 static_libs: [
48 "androidx.test.ext.junit",
49 "flickertestapplib",
50 "flickerlib",
51 "truth-prebuilt",
52 "app-helpers-core",
53 "launcher-helper-lib",
Yuncheol Heoc24dfb62020-09-09 17:09:10 -070054 "launcher-aosp-tapl",
55 "platform-test-annotations",
Nataniel Borges2b707c52020-08-24 20:54:35 +020056 ],
Nataniel Borges57e7fe042020-09-30 16:41:35 +020057}
58
59java_library {
60 name: "wm-flicker-common-assertions",
61 platform_apis: true,
Antonella Dellanzo941c3b82020-10-28 18:43:28 +010062 srcs: [
63 "src/**/*Assertions.java",
64 "src/**/*Assertions.kt",
65 ],
Nataniel Borges57e7fe042020-09-30 16:41:35 +020066 exclude_srcs: [
67 "**/helpers/*",
68 ],
69 static_libs: [
70 "flickerlib",
71 "truth-prebuilt",
72 "app-helpers-core"
73 ],
Antonella Dellanzo941c3b82020-10-28 18:43:28 +010074}
75
76java_library {
77 name: "wm-flicker-common-app-helpers",
78 platform_apis: true,
79 srcs: [
80 "**/helpers/*"
81 ],
82 static_libs: [
83 "flickerlib",
84 "truth-prebuilt",
85 "app-helpers-core"
86 ],
Nataniel Borges2b707c52020-08-24 20:54:35 +020087}