diff options
author | kmb <kmb@google.com> | 2018-03-01 12:56:13 -0800 |
---|---|---|
committer | Ivan Gavrilovic <gavra@google.com> | 2018-05-04 10:39:21 +0100 |
commit | 6cd318887515e0e7ed0473ef0f8a7c89ee7aaa58 (patch) | |
tree | f98cd150680f06e9f618ec3ac5416c460888cce7 /test | |
parent | e665bea7c471f64425df2e39db3314f2abe345d3 (diff) | |
download | desugar-6cd318887515e0e7ed0473ef0f8a7c89ee7aaa58.tar.gz |
send invocations to emulated interfaces through dispatch helper.
fix logic for implementing emulated interfaces.
RELNOTES: None.
PiperOrigin-RevId: 187520298
GitOrigin-RevId: 4b6c0ec4b54e258763ce22e1a7f529d293aff026
Change-Id: If35dfebaa31dc5ea170c945f0ae7b26edf260ba2
Diffstat (limited to 'test')
-rw-r--r-- | test/java/com/google/devtools/build/android/desugar/CoreLibrarySupportTest.java | 12 | ||||
-rw-r--r-- | test/java/com/google/devtools/build/android/desugar/CorePackageRenamerTest.java | 1 |
2 files changed, 13 insertions, 0 deletions
diff --git a/test/java/com/google/devtools/build/android/desugar/CoreLibrarySupportTest.java b/test/java/com/google/devtools/build/android/desugar/CoreLibrarySupportTest.java index cc17748..90350ce 100644 --- a/test/java/com/google/devtools/build/android/desugar/CoreLibrarySupportTest.java +++ b/test/java/com/google/devtools/build/android/desugar/CoreLibrarySupportTest.java @@ -34,6 +34,7 @@ public class CoreLibrarySupportTest { new CoreLibrarySupport( new CoreLibraryRewriter(""), null, + null, ImmutableList.of("java/time/"), ImmutableList.of(), ImmutableList.of()); @@ -51,6 +52,7 @@ public class CoreLibrarySupportTest { new CoreLibrarySupport( new CoreLibraryRewriter("__/"), null, + null, ImmutableList.of("java/time/"), ImmutableList.of(), ImmutableList.of()); @@ -67,6 +69,7 @@ public class CoreLibrarySupportTest { new CoreLibrarySupport( new CoreLibraryRewriter(""), null, + null, ImmutableList.of(), ImmutableList.of(), ImmutableList.of()); @@ -80,6 +83,7 @@ public class CoreLibrarySupportTest { new CoreLibrarySupport( new CoreLibraryRewriter("__/"), null, + null, ImmutableList.of(), ImmutableList.of(), ImmutableList.of()); @@ -93,6 +97,7 @@ public class CoreLibrarySupportTest { new CoreLibrarySupport( new CoreLibraryRewriter("__/"), null, + null, ImmutableList.of("java/util/Helper"), ImmutableList.of(), ImmutableList.of("java/util/Existing#match -> java/util/Helper")); @@ -108,6 +113,7 @@ public class CoreLibrarySupportTest { new CoreLibrarySupport( new CoreLibraryRewriter(""), Thread.currentThread().getContextClassLoader(), + null, ImmutableList.of("java/util/concurrent/"), ImmutableList.of("java/util/Map"), ImmutableList.of()); @@ -126,6 +132,7 @@ public class CoreLibrarySupportTest { new CoreLibrarySupport( new CoreLibraryRewriter(""), Thread.currentThread().getContextClassLoader(), + null, ImmutableList.of(), ImmutableList.of("java/util/Collection"), ImmutableList.of()); @@ -161,6 +168,7 @@ public class CoreLibrarySupportTest { new CoreLibrarySupport( new CoreLibraryRewriter(""), Thread.currentThread().getContextClassLoader(), + null, ImmutableList.of(), ImmutableList.of("java/util/Collection"), ImmutableList.of()); @@ -188,6 +196,7 @@ public class CoreLibrarySupportTest { new CoreLibrarySupport( new CoreLibraryRewriter(""), Thread.currentThread().getContextClassLoader(), + null, ImmutableList.of(), ImmutableList.of("java/util/Map"), ImmutableList.of()); @@ -223,6 +232,7 @@ public class CoreLibrarySupportTest { new CoreLibrarySupport( new CoreLibraryRewriter(""), Thread.currentThread().getContextClassLoader(), + null, ImmutableList.of(), ImmutableList.of("java/util/Comparator"), ImmutableList.of()); @@ -246,6 +256,7 @@ public class CoreLibrarySupportTest { new CoreLibrarySupport( new CoreLibraryRewriter(""), Thread.currentThread().getContextClassLoader(), + null, ImmutableList.of("java/util/"), ImmutableList.of(), ImmutableList.of()); @@ -314,6 +325,7 @@ public class CoreLibrarySupportTest { new CoreLibrarySupport( new CoreLibraryRewriter(""), Thread.currentThread().getContextClassLoader(), + null, ImmutableList.of("java/util/concurrent/"), // should return null for these ImmutableList.of("java/util/Map"), ImmutableList.of()); diff --git a/test/java/com/google/devtools/build/android/desugar/CorePackageRenamerTest.java b/test/java/com/google/devtools/build/android/desugar/CorePackageRenamerTest.java index 0ff0f25..d998aa2 100644 --- a/test/java/com/google/devtools/build/android/desugar/CorePackageRenamerTest.java +++ b/test/java/com/google/devtools/build/android/desugar/CorePackageRenamerTest.java @@ -35,6 +35,7 @@ public class CorePackageRenamerTest { new CoreLibrarySupport( new CoreLibraryRewriter(""), null, + null, ImmutableList.of("java/time/"), ImmutableList.of(), ImmutableList.of("java/util/A#m->java/time/B"))); |