1android_test { 2 name: "CarWMShellUnitTests", 3 defaults: [ 4 // For ExtendedMockito dependencies. 5 "modules-utils-testable-device-config-defaults", 6 ], 7 srcs: [ 8 "**/*.java", 9 "**/*.kt", 10 ], 11 resource_dirs: [ 12 "res", 13 ], 14 15 static_libs: [ 16 "WindowManager-Shell", 17 "Car-WindowManager-Shell", 18 "junit", 19 "flag-junit", 20 "androidx.test.runner", 21 "androidx.test.rules", 22 "androidx.test.ext.junit", 23 "androidx.datastore_datastore", 24 "kotlinx_coroutines_test", 25 "androidx.dynamicanimation_dynamicanimation", 26 "dagger2", 27 "frameworks-base-testutils", 28 "kotlin-test", 29 "kotlinx-coroutines-android", 30 "kotlinx-coroutines-core", 31 "mockito-kotlin2", 32 "mockito-target-extended-minus-junit4", 33 "truth", 34 "testables", 35 "platform-test-annotations", 36 "servicestests-utils", 37 "com_android_wm_shell_flags_lib", 38 "com.android.window.flags.window-aconfig-java", 39 "platform-test-annotations", 40 "flag-junit", 41 "platform-parametric-runner-lib", 42 ], 43 44 libs: [ 45 "android.car", 46 "android.test.mock.stubs.system", 47 "android.test.base.stubs.system", 48 "android.test.runner.stubs.system", 49 ], 50 51 jni_libs: [ 52 "libdexmakerjvmtiagent", 53 "libstaticjvmtiagent", 54 ], 55 56 kotlincflags: ["-Xjvm-default=all"], 57 58 plugins: ["dagger2-compiler"], 59 60 optimize: { 61 enabled: false, 62 }, 63 64 test_suites: [ 65 "device-tests", 66 "automotive-tests", 67 ], 68 69 platform_apis: true, 70 certificate: "platform", 71 72 aaptflags: [ 73 "--extra-packages", 74 "com.android.wm.shell.automotive.tests", 75 ], 76} 77