blob: c945aeac0b33d159595de33e5094189678b09bf7 [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",
Nataniel Borges2b707c52020-08-24 20:54:35 +020052 "launcher-helper-lib",
Yuncheol Heoc24dfb62020-09-09 17:09:10 -070053 "launcher-aosp-tapl",
54 "platform-test-annotations",
Nataniel Borges2b707c52020-08-24 20:54:35 +020055 ],
Nataniel Borges57e7fe042020-09-30 16:41:35 +020056}
57
58java_library {
59 name: "wm-flicker-common-assertions",
60 platform_apis: true,
Antonella Dellanzo941c3b82020-10-28 18:43:28 +010061 srcs: [
62 "src/**/*Assertions.java",
63 "src/**/*Assertions.kt",
64 ],
Nataniel Borges57e7fe042020-09-30 16:41:35 +020065 exclude_srcs: [
66 "**/helpers/*",
67 ],
68 static_libs: [
69 "flickerlib",
70 "truth-prebuilt",
71 "app-helpers-core"
72 ],
Antonella Dellanzo941c3b82020-10-28 18:43:28 +010073}
74
75java_library {
76 name: "wm-flicker-common-app-helpers",
77 platform_apis: true,
78 srcs: [
79 "**/helpers/*"
80 ],
81 static_libs: [
82 "flickerlib",
Nataniel Borges143d5842020-12-15 14:36:03 +010083 "flickertestapplib",
Antonella Dellanzo941c3b82020-10-28 18:43:28 +010084 "truth-prebuilt",
85 "app-helpers-core"
86 ],
Nataniel Borges2b707c52020-08-24 20:54:35 +020087}