Add a host-only build module for guava-testlib

Guava testlib is a set of Java classes for more convenient unit testing.
Many of the utilities in this library eliminate the need for writing
trivial tests such as null pointer, equality, and class sanity tests.

Note that this change only adds a module for use in host-side tests to
avoid maintaining a device target.

Test: m guava-testlib
Test: Used library and ran unit tests
Bug: 148404241
Exempt-From-Owner-Approval: cp of change in aosp, needed for rebase
Change-Id: Ifa3e5a7818abab25a5f1b5aca845daf8caddb600
Merged-In: Ifa3e5a7818abab25a5f1b5aca845daf8caddb600
diff --git a/Android.bp b/Android.bp
index 52ae704..71dbc4b 100644
--- a/Android.bp
+++ b/Android.bp
@@ -55,6 +55,19 @@
     java_version: "1.8",
 }
 
+java_library_host {
+    name: "guava-testlib",
+    srcs: ["guava-testlib/src/**/*.java"],
+    libs: [
+         "error_prone_annotations",
+         "guava",
+         "guava-android-annotation-stubs",
+         "jsr305",
+         "junit",
+    ],
+    java_version: "1.8",
+}
+
 // Guava for Android can't compile against an Android bootclasspath, compile
 // it for the host and then use it on the device.  It uses reflection to
 // prevent calling into methods that don't exist on Android.