1// Copyright (C) 2022 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
15package {
16    default_applicable_licenses: ["Android-Apache-2.0"],
17    default_team: "trendy_team_android_profile_experiences",
18}
19
20java_test_host {
21    name: "CtsAppCloningHostTest",
22    team: "trendy_team_android_profile_experiences",
23    srcs: [
24        "hostside/src/com/android/cts/appcloning/BaseHostTestCase.java",
25        "hostside/src/com/android/cts/appcloning/AppCloningBaseHostTest.java",
26        "hostside/src/com/android/cts/appcloning/media/*.java",
27        "hostside/src/com/android/cts/appcloning/media/**/*.java",
28        "hostside/src/com/android/cts/appcloning/media/AppCloningHostTest.java",
29    ],
30    libs: [
31        "cts-tradefed",
32        "tradefed",
33        "testng",
34        "compatibility-host-util",
35    ],
36    static_libs: ["modules-utils-build-testing"],
37    // tag this module as a cts test artifact
38    test_suites: [
39        "general-tests",
40        "mts-mediaprovider",
41        "mcts-mediaprovider",
42        "cts",
43    ],
44    test_config: "AndroidTestAppCloning.xml",
45    data: [
46        ":CtsAppCloningTestApp",
47        ":CtsAppCloningIntentRedirectionCloneProfileApp",
48        ":CtsAppCloningIntentRedirectionOwnerProfileApp",
49        ":CtsIntentRedirectionTestApp",
50        ":CtsAppCloningStorageStatsApp",
51    ],
52}
53
54java_test_host {
55    name: "CtsAppCloningContactsSharingTest",
56    srcs: [
57        "hostside/src/com/android/cts/appcloning/BaseHostTestCase.java",
58        "hostside/src/com/android/cts/appcloning/AppCloningBaseHostTest.java",
59        "hostside/src/com/android/cts/appcloning/contacts/*.java",
60    ],
61    libs: [
62        "cts-tradefed",
63        "tradefed",
64        "testng",
65        "compatibility-host-util",
66
67    ],
68    static_libs: ["modules-utils-build-testing"],
69    // tag this module as a cts test artifact
70    test_suites: [
71        "general-tests",
72        "cts",
73    ],
74    test_config: "ContactsSharingAppCloningTest.xml",
75    data: [
76        ":CtsAppCloningNotLaunchableCloneProfileApp",
77        ":CtsAppCloningLaunchableCloneProfileApp",
78        ":CtsManagedProfileOwnerApp",
79    ],
80}
81
82java_test_host {
83    name: "CtsAppCloningIntentRedirectionTest",
84    srcs: [
85        "hostside/src/com/android/cts/appcloning/BaseHostTestCase.java",
86        "hostside/src/com/android/cts/appcloning/AppCloningBaseHostTest.java",
87        "hostside/src/com/android/cts/appcloning/intent/*.java",
88    ],
89    libs: [
90        "cts-tradefed",
91        "tradefed",
92        "testng",
93        "compatibility-host-util",
94    ],
95    static_libs: ["modules-utils-build-testing"],
96    // tag this module as a cts test artifact
97    test_suites: [
98        "general-tests",
99        "cts",
100    ],
101    test_config: "IntentRedirectionAppCloningTest.xml",
102    data: [
103        ":CtsAppCloningIntentRedirectionCloneProfileApp",
104        ":CtsAppCloningIntentRedirectionOwnerProfileApp",
105        ":CtsIntentRedirectionTestApp",
106    ],
107}
108