Jumpstarted the android.car.test.utils package.
This package will provide generic, test-related classes, such as
AbstractExtendMockitoTestCase, which can be user to make it easier
to mock static classes and final methods.
This CL also refactored all (?) classes that uses ExtendMockito to
inherit from that class instead.
Bug: 149099817
Test: atest \
ICarImplTest CarUserManagerHelperTest InitialUserSetterTest \
UserHelperTest CarPowerManagementServiceTest \
CarAudioSettingsUnitTest CarWatchdogServiceTest \
InstrumentClusterServiceTest VendorServiceControllerTest \
CarUserManagerUnitTest CarUserNoticeServiceTest CarUserServiceTest
Change-Id: I9b179f3dd20484ad55aed925d7a4a219efffae95
diff --git a/car-test-lib/Android.bp b/car-test-lib/Android.bp
index 7113348..e3dbfad 100644
--- a/car-test-lib/Android.bp
+++ b/car-test-lib/Android.bp
@@ -15,7 +15,7 @@
java_library {
name: "android.car.testapi",
srcs: [
- "src/**/*.java",
+ "src/android/car/testapi/*.java",
],
product_variables: {
pdk: {
@@ -34,3 +34,13 @@
targets: ["dist_files"],
}
}
+
+java_library {
+ name: "android.car.test.utils",
+ srcs: [
+ "src/android/car/test/**/*.java",
+ ],
+ libs: [
+ "mockito-target-extended",
+ ],
+}