• 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
15package {
16    // See: http://go/android-license-faq
17    // A large-scale-change added 'default_applicable_licenses' to import
18    // all of the 'license_kinds' from "frameworks_base_license"
19    // to get the below license kinds:
20    //   SPDX-license-identifier-Apache-2.0
21    default_applicable_licenses: ["frameworks_base_license"],
22    default_team: "trendy_team_multitasking_windowing",
23}
24
25android_test {
26    name: "WMShellUnitTests",
27    defaults: [
28        // For ExtendedMockito dependencies.
29        "modules-utils-testable-device-config-defaults",
30    ],
31    srcs: [
32        "**/*.java",
33        "**/*.kt",
34    ],
35    resource_dirs: [
36        "res",
37    ],
38
39    static_libs: [
40        "TestParameterInjector",
41        "WindowManager-Shell",
42        "junit",
43        "flag-junit",
44        "androidx.test.runner",
45        "androidx.test.rules",
46        "androidx.test.ext.junit",
47        "androidx.datastore_datastore",
48        "androidx.core_core-animation-testing",
49        "kotlinx_coroutines_test",
50        "androidx.dynamicanimation_dynamicanimation",
51        "dagger2",
52        "frameworks-base-testutils",
53        "kotlin-test",
54        "kotlinx-coroutines-android",
55        "kotlinx-coroutines-core",
56        "mockito-kotlin2",
57        "mockito-target-extended-minus-junit4",
58        "truth",
59        "testables",
60        "platform-test-annotations",
61        "servicestests-utils",
62        "com_android_wm_shell_flags_lib",
63        "guava-android-testlib",
64        "com.android.window.flags.window-aconfig-java",
65        "platform-test-annotations",
66        "flag-junit",
67        "platform-parametric-runner-lib",
68        "platform-compat-test-rules",
69    ],
70
71    libs: [
72        "android.test.mock.stubs.system",
73        "android.test.base.stubs.system",
74        "android.test.runner.stubs.system",
75    ],
76
77    jni_libs: [
78        "libdexmakerjvmtiagent",
79        "libstaticjvmtiagent",
80    ],
81
82    kotlincflags: ["-Xjvm-default=all"],
83
84    plugins: ["dagger2-compiler"],
85
86    optimize: {
87        enabled: false,
88    },
89
90    test_suites: ["device-tests"],
91
92    platform_apis: true,
93    certificate: "platform",
94
95    aaptflags: [
96        "--extra-packages",
97        "com.android.wm.shell.tests",
98    ],
99}
100
101test_module_config {
102    name: "WMShellUnitTests_shell_back",
103    base: "WMShellUnitTests",
104    test_suites: ["device-tests"],
105    include_filters: ["com.android.wm.shell.back"],
106}
107