blob: 35564066266bbb46e34b8e1fb7914c45991ccf54 [file] [log] [blame]
Bob Badoure539dba2021-02-12 17:07:05 -08001package {
2 // See: http://go/android-license-faq
3 // A large-scale-change added 'default_applicable_licenses' to import
4 // all of the 'license_kinds' from "frameworks_base_license"
5 // to get the below license kinds:
6 // SPDX-license-identifier-Apache-2.0
7 default_applicable_licenses: ["frameworks_base_license"],
8}
9
Sasha Smundak89414e12019-03-10 19:48:23 -070010android_test {
11 name: "InternalTests",
12 proto: {
13 type: "nano",
14 },
15 // Include some source files directly to be able to access package members
16 srcs: ["src/**/*.java"],
Jihoon Kange07d73c2024-08-30 00:29:12 +000017 libs: ["android.test.runner.stubs.system"],
Sasha Smundak89414e12019-03-10 19:48:23 -070018 static_libs: [
19 "junit",
20 "androidx.test.rules",
21 "mockito-target-minus-junit4",
Krzysztof KosiƄski60b70872023-10-06 20:11:39 +000022 "truth",
Hongwei Wang6014caf2020-07-20 18:04:35 -070023 "platform-test-annotations",
Pablo Gamito5fe2c802024-02-12 12:48:48 +000024 "flickerlib-parsers",
25 "perfetto_trace_java_protos",
26 "flickerlib-trace_processor_shell",
John Wu06d0f7c2024-08-07 21:43:19 +000027 "ravenwood-junit",
Sasha Smundak89414e12019-03-10 19:48:23 -070028 ],
29 java_resource_dirs: ["res"],
30 certificate: "platform",
31 platform_apis: true,
32 test_suites: ["device-tests"],
33}
Jeff Sharkey6e7dd792023-11-30 11:17:30 -070034
Shai Barack369b0572024-09-24 23:39:07 +000035// Run just ApplicationSharedMemoryTest with ABI override for 32 bits.
36// This is to test that on systems that support multi-ABI,
37// ApplicationSharedMemory works in app processes launched with a different ABI
38// than that of the system processes.
39android_test {
40 name: "ApplicationSharedMemoryTest32",
41 team: "trendy_team_system_performance",
42 srcs: ["src/com/android/internal/os/ApplicationSharedMemoryTest.java"],
43 libs: ["android.test.runner.stubs.system"],
44 static_libs: [
45 "junit",
46 "androidx.test.rules",
47 "platform-test-annotations",
Jared Dukeb47d0562025-02-07 01:11:46 +000048 "truth",
Shai Barack369b0572024-09-24 23:39:07 +000049 ],
50 manifest: "ApplicationSharedMemoryTest32/AndroidManifest.xml",
51 test_config: "ApplicationSharedMemoryTest32/AndroidTest.xml",
52 certificate: "platform",
53 platform_apis: true,
54 test_suites: ["device-tests"],
55}
56
Jeff Sharkey6e7dd792023-11-30 11:17:30 -070057android_ravenwood_test {
58 name: "InternalTestsRavenwood",
59 static_libs: [
60 "androidx.annotation_annotation",
61 "androidx.test.rules",
62 "platform-test-annotations",
63 ],
64 srcs: [
John Wu06d0f7c2024-08-07 21:43:19 +000065 "src/com/android/internal/graphics/ColorUtilsTest.java",
Jeff Sharkey6e7dd792023-11-30 11:17:30 -070066 "src/com/android/internal/util/ParcellingTests.java",
67 ],
68 auto_gen_config: true,
John Wu361957a2024-12-19 15:16:36 -080069 team: "trendy_team_ravenwood",
Jeff Sharkey6e7dd792023-11-30 11:17:30 -070070}
Shai Barack369b0572024-09-24 23:39:07 +000071
72java_test_helper_library {
73 name: "ApplicationSharedMemoryTestRule",
74 srcs: ["src/com/android/internal/os/ApplicationSharedMemoryTestRule.java"],
75 static_libs: ["junit"],
76}