aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/test/java/com/google
diff options
context:
space:
mode:
authorGravatar Googler <noreply@google.com>2017-06-26 22:20:30 +0200
committerGravatar Marcel Hlopko <hlopko@google.com>2017-06-27 10:06:58 +0200
commite2b1a0ceaffae93f5ec8b9b3204588ec591fc182 (patch)
treed215fae013fa9f88cd70e0d5e7a2b6611e94a23a /src/test/java/com/google
parente73f881b66e5540051f92f8ffab5570b6856fea8 (diff)
Add idl_preprocessed field to android_library.
RELNOTES: Add idl_preprocessed attribute to android_library, so that preprocessed aidl files can be passed to android_library for compiling PiperOrigin-RevId: 160185474
Diffstat (limited to 'src/test/java/com/google')
-rw-r--r--src/test/java/com/google/devtools/build/lib/rules/android/AndroidLibraryTest.java10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/test/java/com/google/devtools/build/lib/rules/android/AndroidLibraryTest.java b/src/test/java/com/google/devtools/build/lib/rules/android/AndroidLibraryTest.java
index 3f92a65f4b..7ba05dafc2 100644
--- a/src/test/java/com/google/devtools/build/lib/rules/android/AndroidLibraryTest.java
+++ b/src/test/java/com/google/devtools/build/lib/rules/android/AndroidLibraryTest.java
@@ -147,6 +147,16 @@ public class AndroidLibraryTest extends AndroidBuildViewTestCase {
}
@Test
+ public void testAndroidLibraryWithIdlPreprocessed() throws Exception {
+ scratchConfiguredTarget(
+ "java/com/google/android",
+ "lib",
+ "android_library(name = 'lib',",
+ " idl_srcs = ['src/android/Dummy.aidl'],",
+ " idl_preprocessed = ['src/android/DummyParcelable.aidl'])");
+ }
+
+ @Test
public void testCommandLineContainsTargetLabelAndRuleKind() throws Exception {
scratch.file("java/android/BUILD",
"android_library(name = 'a', srcs = ['A.java'])");