Convert healthd_test to Soong
This makefile is not included before, so it was never built. Also do
the following changes to make sure it works:
- Remove non-existing libhealthd_internal dep
- Add necessary libhealthd_charger dep because it tests AnimationParser
- Since it tests AnimationParser, change its name to
libhealthd_charger_test
Test: run it
Change-Id: If7f91de4b910024f27d09a25ca801e67b98221db
diff --git a/healthd/Android.bp b/healthd/Android.bp
index 14d46b3..3a7ab75 100644
--- a/healthd/Android.bp
+++ b/healthd/Android.bp
@@ -240,3 +240,16 @@
defaults: ["charger_defaults"],
srcs: ["charger_test.cpp"],
}
+
+cc_test {
+ name: "libhealthd_charger_test",
+ srcs: ["AnimationParser_test.cpp"],
+ shared_libs: [
+ "liblog",
+ "libbase",
+ "libcutils",
+ ],
+ static_libs: [
+ "libhealthd_charger",
+ ],
+}