android_test { name: "CarWMShellUnitTests", defaults: [ // For ExtendedMockito dependencies. "modules-utils-testable-device-config-defaults", ], srcs: [ "**/*.java", "**/*.kt", ], resource_dirs: [ "res", ], static_libs: [ "WindowManager-Shell", "Car-WindowManager-Shell", "junit", "flag-junit", "androidx.test.runner", "androidx.test.rules", "androidx.test.ext.junit", "androidx.datastore_datastore", "kotlinx_coroutines_test", "androidx.dynamicanimation_dynamicanimation", "dagger2", "frameworks-base-testutils", "kotlin-test", "kotlinx-coroutines-android", "kotlinx-coroutines-core", "mockito-kotlin2", "mockito-target-extended-minus-junit4", "truth", "testables", "platform-test-annotations", "servicestests-utils", "com_android_wm_shell_flags_lib", "com.android.window.flags.window-aconfig-java", "platform-test-annotations", "flag-junit", "platform-parametric-runner-lib", ], libs: [ "android.car", "android.test.mock.stubs.system", "android.test.base.stubs.system", "android.test.runner.stubs.system", ], jni_libs: [ "libdexmakerjvmtiagent", "libstaticjvmtiagent", ], kotlincflags: ["-Xjvm-default=all"], plugins: ["dagger2-compiler"], optimize: { enabled: false, }, test_suites: [ "device-tests", "automotive-tests", ], platform_apis: true, certificate: "platform", aaptflags: [ "--extra-packages", "com.android.wm.shell.automotive.tests", ], }