blob: b1b7b1b414643a755005a5ab51034ed3598897ea [file] [log] [blame]
Joshua Mccloskey4dc4e1c2023-10-18 15:38:23 +00001//
2// Copyright (C) 2023 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
16android_app {
17 name: "ScreenshotTestStub",
18 defaults: [
19 "SettingsLibDefaults",
20 ],
21 platform_apis: true,
22 certificate: "platform",
23 privileged: true,
24 use_resource_processor: true,
25
26 static_libs: [
27 "Settings-core",
28 "androidx.fragment_fragment-testing",
29 "androidx.fragment_fragment",
30 ],
31
32 aaptflags: ["--extra-packages com.android.settings"],
33}
34
35android_test {
36 name: "SettingsScreenshotTests",
37 platform_apis: true,
38 certificate: "platform",
39 test_suites: ["device-tests"],
40 srcs: [
41 "src/**/*.kt",
42 ],
43 static_libs: [
44 "androidx.fragment_fragment-testing",
45 "androidx.fragment_fragment",
46 "androidx.test.rules",
47 "androidx.test.ext.junit",
48 "platform-screenshot-diff-core",
49 "Settings-testutils2",
50 "androidx.test.core",
51 "androidx.test.espresso.core",
52 "kotlinx-coroutines-android",
53 "androidx.lifecycle_lifecycle-runtime-testing",
54 "kotlinx_coroutines_test",
55 "Settings-core",
56 "androidx.test.runner",
57 ],
58 compile_multilib: "both",
59 manifest: "AndroidManifest.xml",
60 test_config: "AndroidTest.xml",
61 use_embedded_native_libs: false,
62 asset_dirs: ["assets"],
63 instrumentation_for: "ScreenshotTestStub",
64}