Bob Badour | e539dba | 2021-02-12 17:07:05 -0800 | [diff] [blame] | 1 | package { |
| 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 Smundak | 89414e1 | 2019-03-10 19:48:23 -0700 | [diff] [blame] | 10 | android_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 Kang | e07d73c | 2024-08-30 00:29:12 +0000 | [diff] [blame] | 17 | libs: ["android.test.runner.stubs.system"], |
Sasha Smundak | 89414e1 | 2019-03-10 19:48:23 -0700 | [diff] [blame] | 18 | static_libs: [ |
| 19 | "junit", |
| 20 | "androidx.test.rules", |
| 21 | "mockito-target-minus-junit4", |
Krzysztof KosiĆski | 60b7087 | 2023-10-06 20:11:39 +0000 | [diff] [blame] | 22 | "truth", |
Hongwei Wang | 6014caf | 2020-07-20 18:04:35 -0700 | [diff] [blame] | 23 | "platform-test-annotations", |
Pablo Gamito | 5fe2c80 | 2024-02-12 12:48:48 +0000 | [diff] [blame] | 24 | "flickerlib-parsers", |
| 25 | "perfetto_trace_java_protos", |
| 26 | "flickerlib-trace_processor_shell", |
John Wu | 06d0f7c | 2024-08-07 21:43:19 +0000 | [diff] [blame] | 27 | "ravenwood-junit", |
Sasha Smundak | 89414e1 | 2019-03-10 19:48:23 -0700 | [diff] [blame] | 28 | ], |
| 29 | java_resource_dirs: ["res"], |
| 30 | certificate: "platform", |
| 31 | platform_apis: true, |
| 32 | test_suites: ["device-tests"], |
| 33 | } |
Jeff Sharkey | 6e7dd79 | 2023-11-30 11:17:30 -0700 | [diff] [blame] | 34 | |
Shai Barack | 369b057 | 2024-09-24 23:39:07 +0000 | [diff] [blame] | 35 | // 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. |
| 39 | android_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", |
| 48 | ], |
| 49 | manifest: "ApplicationSharedMemoryTest32/AndroidManifest.xml", |
| 50 | test_config: "ApplicationSharedMemoryTest32/AndroidTest.xml", |
| 51 | certificate: "platform", |
| 52 | platform_apis: true, |
| 53 | test_suites: ["device-tests"], |
| 54 | } |
| 55 | |
Jeff Sharkey | 6e7dd79 | 2023-11-30 11:17:30 -0700 | [diff] [blame] | 56 | android_ravenwood_test { |
| 57 | name: "InternalTestsRavenwood", |
| 58 | static_libs: [ |
| 59 | "androidx.annotation_annotation", |
| 60 | "androidx.test.rules", |
| 61 | "platform-test-annotations", |
| 62 | ], |
| 63 | srcs: [ |
John Wu | 06d0f7c | 2024-08-07 21:43:19 +0000 | [diff] [blame] | 64 | "src/com/android/internal/graphics/ColorUtilsTest.java", |
Jeff Sharkey | 6e7dd79 | 2023-11-30 11:17:30 -0700 | [diff] [blame] | 65 | "src/com/android/internal/util/ParcellingTests.java", |
| 66 | ], |
| 67 | auto_gen_config: true, |
| 68 | } |
Shai Barack | 369b057 | 2024-09-24 23:39:07 +0000 | [diff] [blame] | 69 | |
| 70 | java_test_helper_library { |
| 71 | name: "ApplicationSharedMemoryTestRule", |
| 72 | srcs: ["src/com/android/internal/os/ApplicationSharedMemoryTestRule.java"], |
| 73 | static_libs: ["junit"], |
| 74 | } |