• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1// 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
15android_test_helper_app {
16    name: "RollbackTestAppAv1",
17    manifest: "TestApp/Av1.xml",
18    sdk_version: "current",
19    srcs: ["TestApp/src/**/*.java"],
20    resource_dirs: ["TestApp/res_v1"],
21}
22
23android_test_helper_app {
24    name: "RollbackTestAppAv2",
25    manifest: "TestApp/Av2.xml",
26    sdk_version: "current",
27    srcs: ["TestApp/src/**/*.java"],
28    resource_dirs: ["TestApp/res_v2"],
29}
30
31android_test_helper_app {
32    name: "RollbackTestAppAv3",
33    manifest: "TestApp/Av3.xml",
34    sdk_version: "current",
35    srcs: ["TestApp/src/**/*.java"],
36    resource_dirs: ["TestApp/res_v3"],
37}
38
39android_test_helper_app {
40    name: "RollbackTestAppACrashingV2",
41    manifest: "TestApp/ACrashingV2.xml",
42    sdk_version: "current",
43    srcs: ["TestApp/src/**/*.java"],
44    resource_dirs: ["TestApp/res_v2"],
45}
46
47android_test_helper_app {
48    name: "RollbackTestAppBv1",
49    manifest: "TestApp/Bv1.xml",
50    sdk_version: "current",
51    srcs: ["TestApp/src/**/*.java"],
52    resource_dirs: ["TestApp/res_v1"],
53}
54
55android_test_helper_app {
56    name: "RollbackTestAppBv2",
57    manifest: "TestApp/Bv2.xml",
58    sdk_version: "current",
59    srcs: ["TestApp/src/**/*.java"],
60    resource_dirs: ["TestApp/res_v2"],
61}
62
63android_test_helper_app {
64    name: "RollbackTestAppASplitV1",
65    manifest: "TestApp/Av1.xml",
66    sdk_version: "current",
67    srcs: ["TestApp/src/**/*.java"],
68    resource_dirs: ["TestApp/res_v1"],
69    package_splits: ["anydpi"],
70}
71
72android_test_helper_app {
73    name: "RollbackTestAppASplitV2",
74    manifest: "TestApp/Av2.xml",
75    sdk_version: "current",
76    srcs: ["TestApp/src/**/*.java"],
77    resource_dirs: ["TestApp/res_v2"],
78    package_splits: ["anydpi"],
79}
80
81android_test {
82    name: "RollbackTest",
83    manifest: "RollbackTest/AndroidManifest.xml",
84    srcs: ["RollbackTest/src/**/*.java"],
85    static_libs: ["androidx.test.rules"],
86    test_suites: ["general-tests"],
87    java_resources: [
88        ":RollbackTestAppAv1",
89        ":RollbackTestAppAv2",
90        ":RollbackTestAppAv3",
91        ":RollbackTestAppACrashingV2",
92        ":RollbackTestAppBv1",
93        ":RollbackTestAppBv2",
94        ":RollbackTestAppASplitV1",
95        ":RollbackTestAppASplitV2",
96    ],
97    test_config: "RollbackTest.xml",
98    // TODO: sdk_version: "test_current" when Intent#resolveSystemservice is TestApi
99}
100
101java_test_host {
102    name: "StagedRollbackTest",
103    srcs: ["StagedRollbackTest/src/**/*.java"],
104    libs: ["tradefed"],
105    test_suites: ["general-tests"],
106    test_config: "StagedRollbackTest.xml",
107}
108