diff options
| author | mikaelpeltier <mikaelpeltier@google.com> | 2014-07-11 17:49:12 +0200 |
|---|---|---|
| committer | mikaelpeltier <mikaelpeltier@google.com> | 2014-07-15 17:57:04 +0200 |
| commit | b06a7dad8ea24fce8d2bc360d6d0ba1305643b35 (patch) | |
| tree | edb4356e7b7701e706824076a1ce101caf69400a /dexcomparator/testing/com/android/jack | |
| parent | c86f3351521d0268629836c18fb37831f9e773ba (diff) | |
| download | toolchain_jack-b06a7dad8ea24fce8d2bc360d6d0ba1305643b35.tar.gz toolchain_jack-b06a7dad8ea24fce8d2bc360d6d0ba1305643b35.tar.bz2 toolchain_jack-b06a7dad8ea24fce8d2bc360d6d0ba1305643b35.zip | |
Modify how annotation comparator get files
- Files to compare are passed as method parameters rather than as constructor
parameters. It will be homogeneous with dex comparator.
Change-Id: I6823da467c5f6fed26caf3e40c3a36d0b205d8b2
Diffstat (limited to 'dexcomparator/testing/com/android/jack')
| -rw-r--r-- | dexcomparator/testing/com/android/jack/dexcomparator/test/AnnotationComparisonTest.java | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/dexcomparator/testing/com/android/jack/dexcomparator/test/AnnotationComparisonTest.java b/dexcomparator/testing/com/android/jack/dexcomparator/test/AnnotationComparisonTest.java index 131220a1..9060077d 100644 --- a/dexcomparator/testing/com/android/jack/dexcomparator/test/AnnotationComparisonTest.java +++ b/dexcomparator/testing/com/android/jack/dexcomparator/test/AnnotationComparisonTest.java @@ -48,7 +48,7 @@ public class AnnotationComparisonTest { File dex2 = File.createTempFile("dex2", ".dex"); dex2.deleteOnExit(); TestTools.compileToDexWithJack(a2, dex2); - new DexAnnotationsComparator(dex1, dex2).compare(); + new DexAnnotationsComparator().compare(dex1, dex2); } @Test @@ -63,7 +63,7 @@ public class AnnotationComparisonTest { File dex2 = File.createTempFile("dex2", ".dex"); dex2.deleteOnExit(); TestTools.compileToDexWithJack(a2, dex2); - new DexAnnotationsComparator(dex1, dex2).compare(); + new DexAnnotationsComparator().compare(dex1, dex2); } @Test @@ -83,7 +83,7 @@ public class AnnotationComparisonTest { sourceList2.add(new File(testSource2, sourcePath2)); TestTools.compileToDexWithJack(sourceList2, dex2); try { - new DexAnnotationsComparator(dex1, dex2).compare(); + new DexAnnotationsComparator().compare(dex1, dex2); Assert.fail(); } catch (DifferenceFoundException e) { } @@ -100,7 +100,7 @@ public class AnnotationComparisonTest { sourceList1.add(new File(testSource1, sourcePath1)); sourceList1.add(new File(testSource1, sourcePath2)); TestTools.compileToDexWithJack(sourceList1, dex1); - new DexAnnotationsComparator(dex1, dex1).compare(); + new DexAnnotationsComparator().compare(dex1, dex1); } } |
