diff options
author | Jean-Marie Hénaff <jmhenaff@google.com> | 2015-03-06 16:34:11 +0000 |
---|---|---|
committer | Jean-Marie Hénaff <jmhenaff@google.com> | 2015-03-06 16:34:11 +0000 |
commit | b43732ee3d9f9ffcd7595ab657e4c683a1751b3a (patch) | |
tree | 6f61704ce9553abc48924becc947ff099a52951e /jack-tests/tests/com/android/jack/shrob | |
parent | d235ed6f21b7b21aefb4b066b0c64acfa2bbb229 (diff) | |
download | toolchain_jack-b43732ee3d9f9ffcd7595ab657e4c683a1751b3a.tar.gz toolchain_jack-b43732ee3d9f9ffcd7595ab657e4c683a1751b3a.tar.bz2 toolchain_jack-b43732ee3d9f9ffcd7595ab657e4c683a1751b3a.zip |
Revert "Start using jack-api for jack API based test toolchains"
This reverts commit d235ed6f21b7b21aefb4b066b0c64acfa2bbb229.
Change-Id: Idceeda07056275eb887d42a5aa75b624024554e0
Diffstat (limited to 'jack-tests/tests/com/android/jack/shrob')
6 files changed, 21 insertions, 26 deletions
diff --git a/jack-tests/tests/com/android/jack/shrob/FlattenPackageTests.java b/jack-tests/tests/com/android/jack/shrob/FlattenPackageTests.java index 3cb631d5..c59e2d73 100644 --- a/jack-tests/tests/com/android/jack/shrob/FlattenPackageTests.java +++ b/jack-tests/tests/com/android/jack/shrob/FlattenPackageTests.java @@ -17,15 +17,15 @@ package com.android.jack.shrob; import com.android.jack.Options; +import com.android.jack.test.category.SlowTests; import com.android.jack.shrob.obfuscation.NameProviderFactory; import com.android.jack.shrob.proguard.GrammarActions; import com.android.jack.shrob.spec.Flags; -import com.android.jack.test.category.SlowTests; import com.android.jack.test.comparator.ComparatorMapping; import com.android.jack.test.helper.SourceToDexComparisonTestHelper; import com.android.jack.test.toolchain.AbstractTestTools; import com.android.jack.test.toolchain.DummyToolchain; -import com.android.jack.test.toolchain.JackApiToolchainBase; +import com.android.jack.test.toolchain.JackApiToolchain; import org.junit.experimental.categories.Category; @@ -43,8 +43,7 @@ public class FlattenPackageTests extends AbstractTest { @Nonnull String mappingNumber) throws Exception { File testFolder = AbstractTestTools.getTestRootDir("com.android.jack.shrob.test" + testNumber); - JackApiToolchainBase toolchain = - AbstractTestTools.getCandidateToolchain(JackApiToolchainBase.class); + JackApiToolchain toolchain = AbstractTestTools.getCandidateToolchain(JackApiToolchain.class); Flags flags = new Flags(); toolchain.setShrobFlags(flags); GrammarActions.parse("proguard.flags" + flagNumber, testFolder.getAbsolutePath(), flags); diff --git a/jack-tests/tests/com/android/jack/shrob/ObfuscationWithMappingTests.java b/jack-tests/tests/com/android/jack/shrob/ObfuscationWithMappingTests.java index 7b35e501..fb09d898 100644 --- a/jack-tests/tests/com/android/jack/shrob/ObfuscationWithMappingTests.java +++ b/jack-tests/tests/com/android/jack/shrob/ObfuscationWithMappingTests.java @@ -22,7 +22,7 @@ import com.android.jack.test.comparator.ComparatorMapping; import com.android.jack.test.helper.SourceToDexComparisonTestHelper; import com.android.jack.test.toolchain.AbstractTestTools; import com.android.jack.test.toolchain.DummyToolchain; -import com.android.jack.test.toolchain.JackApiToolchainBase; +import com.android.jack.test.toolchain.JackApiToolchain; import org.junit.Test; @@ -40,8 +40,7 @@ public class ObfuscationWithMappingTests extends AbstractTest { throws Exception { File testFolder = AbstractTestTools.getTestRootDir("com.android.jack.shrob.test" + testNumber); - JackApiToolchainBase toolchain = - AbstractTestTools.getCandidateToolchain(JackApiToolchainBase.class); + JackApiToolchain toolchain = AbstractTestTools.getCandidateToolchain(JackApiToolchain.class); Flags flags = new Flags(); toolchain.setShrobFlags(flags); GrammarActions.parse("proguard.flags" + flagNumber, testFolder.getAbsolutePath(), flags); diff --git a/jack-tests/tests/com/android/jack/shrob/ObfuscationWithoutMappingTests.java b/jack-tests/tests/com/android/jack/shrob/ObfuscationWithoutMappingTests.java index 546b5a56..bd7030f4 100644 --- a/jack-tests/tests/com/android/jack/shrob/ObfuscationWithoutMappingTests.java +++ b/jack-tests/tests/com/android/jack/shrob/ObfuscationWithoutMappingTests.java @@ -25,7 +25,7 @@ import com.android.jack.test.comparator.ComparatorMapping; import com.android.jack.test.helper.SourceToDexComparisonTestHelper; import com.android.jack.test.toolchain.AbstractTestTools; import com.android.jack.test.toolchain.DummyToolchain; -import com.android.jack.test.toolchain.JackApiToolchainBase; +import com.android.jack.test.toolchain.JackApiToolchain; import org.junit.Test; import org.junit.experimental.categories.Category; @@ -48,8 +48,7 @@ public class ObfuscationWithoutMappingTests extends AbstractTest { String testPackageName = "com.android.jack.shrob.test" + testNumber; File testFolder = AbstractTestTools.getTestRootDir(testPackageName); - JackApiToolchainBase toolchain = - AbstractTestTools.getCandidateToolchain(JackApiToolchainBase.class); + JackApiToolchain toolchain = AbstractTestTools.getCandidateToolchain(JackApiToolchain.class); Flags flags = new Flags(); toolchain.setShrobFlags(flags); GrammarActions.parse("proguard.flags" + flagNumber, testFolder.getAbsolutePath(), flags); diff --git a/jack-tests/tests/com/android/jack/shrob/RepackagingTest.java b/jack-tests/tests/com/android/jack/shrob/RepackagingTest.java index 042a5a42..805d2c51 100644 --- a/jack-tests/tests/com/android/jack/shrob/RepackagingTest.java +++ b/jack-tests/tests/com/android/jack/shrob/RepackagingTest.java @@ -24,7 +24,7 @@ import com.android.jack.test.comparator.ComparatorMapping; import com.android.jack.test.helper.SourceToDexComparisonTestHelper; import com.android.jack.test.toolchain.AbstractTestTools; import com.android.jack.test.toolchain.DummyToolchain; -import com.android.jack.test.toolchain.JackApiToolchainBase; +import com.android.jack.test.toolchain.JackApiToolchain; import java.io.File; @@ -49,8 +49,7 @@ public class RepackagingTest extends AbstractTest { flags.setOutputMapping(candidateOutputMapping); flags.setPrintMapping(true); - JackApiToolchainBase toolchain = - AbstractTestTools.getCandidateToolchain(JackApiToolchainBase.class); + JackApiToolchain toolchain = AbstractTestTools.getCandidateToolchain(JackApiToolchain.class); toolchain.setShrobFlags(flags); toolchain.addProperty(NameProviderFactory.NAMEPROVIDER.getName(), "rot13"); toolchain.addProperty(Options.METHOD_FILTER.getName(), "supported-methods"); diff --git a/jack-tests/tests/com/android/jack/shrob/SeedTests.java b/jack-tests/tests/com/android/jack/shrob/SeedTests.java index dbc4c173..938f57d6 100644 --- a/jack-tests/tests/com/android/jack/shrob/SeedTests.java +++ b/jack-tests/tests/com/android/jack/shrob/SeedTests.java @@ -16,14 +16,14 @@ package com.android.jack.shrob; +import com.android.jack.test.category.SlowTests; import com.android.jack.shrob.proguard.GrammarActions; import com.android.jack.shrob.spec.Flags; -import com.android.jack.test.category.SlowTests; import com.android.jack.test.comparator.ComparatorSeeds; import com.android.jack.test.helper.SourceToDexComparisonTestHelper; import com.android.jack.test.toolchain.AbstractTestTools; import com.android.jack.test.toolchain.DummyToolchain; -import com.android.jack.test.toolchain.JackApiToolchainBase; +import com.android.jack.test.toolchain.JackApiToolchain; import org.junit.Test; import org.junit.experimental.categories.Category; @@ -53,8 +53,7 @@ public class SeedTests extends AbstractTest { flags.setSeedsFile(candidateOutputSeeds); flags.setPrintSeeds(true); - JackApiToolchainBase toolchain = - AbstractTestTools.getCandidateToolchain(JackApiToolchainBase.class); + JackApiToolchain toolchain = AbstractTestTools.getCandidateToolchain(JackApiToolchain.class); toolchain.setShrobFlags(flags); SourceToDexComparisonTestHelper env = diff --git a/jack-tests/tests/com/android/jack/shrob/ShrinkTests.java b/jack-tests/tests/com/android/jack/shrob/ShrinkTests.java index 241a6f4a..81f6ba76 100644 --- a/jack-tests/tests/com/android/jack/shrob/ShrinkTests.java +++ b/jack-tests/tests/com/android/jack/shrob/ShrinkTests.java @@ -24,7 +24,7 @@ import com.android.jack.test.comparator.ComparatorMapping; import com.android.jack.test.helper.SourceToDexComparisonTestHelper; import com.android.jack.test.toolchain.AbstractTestTools; import com.android.jack.test.toolchain.DummyToolchain; -import com.android.jack.test.toolchain.JackApiToolchainBase; +import com.android.jack.test.toolchain.JackApiToolchain; import com.android.jack.test.toolchain.JackBasedToolchain; import com.android.jack.util.TextUtils; @@ -93,15 +93,15 @@ public class ShrinkTests extends AbstractTest { File shrinkOut = null; try { - JackApiToolchainBase toolchain = - AbstractTestTools.getCandidateToolchain(JackApiToolchainBase.class); + JackApiToolchain toolchain = + AbstractTestTools.getCandidateToolchain(JackApiToolchain.class); toolchain.addToClasspath(toolchain.getDefaultBootClasspath()) .srcToLib( libOut, /* zipFiles = */ false, new File(shrobTestsDir, "test020/lib")); - toolchain = AbstractTestTools.getCandidateToolchain(JackApiToolchainBase.class); + toolchain = AbstractTestTools.getCandidateToolchain(JackApiToolchain.class); testOut = AbstractTestTools.createTempDir(); toolchain.addToClasspath(toolchain.getDefaultBootClasspath()) .addToClasspath(libOut) @@ -110,7 +110,7 @@ public class ShrinkTests extends AbstractTest { new File(shrobTestsDir, "test020/jack")); shrinkOut = AbstractTestTools.createTempDir(); - toolchain = AbstractTestTools.getCandidateToolchain(JackApiToolchainBase.class); + toolchain = AbstractTestTools.getCandidateToolchain(JackApiToolchain.class); toolchain.addProguardFlags( dontObfuscateFlagFile, new ProguardFlags(new File(shrobTestsDir, "test020"),"proguard.flags")); @@ -141,15 +141,15 @@ public class ShrinkTests extends AbstractTest { File dexOut = null; try { - JackApiToolchainBase toolchain = - AbstractTestTools.getCandidateToolchain(JackApiToolchainBase.class); + JackApiToolchain toolchain = + AbstractTestTools.getCandidateToolchain(JackApiToolchain.class); toolchain.addToClasspath(toolchain.getDefaultBootClasspath()) .srcToLib( jackOut, /* zipFiles = */ false, new File(shrobTestsDir, "test021/jack")); - toolchain = AbstractTestTools.getCandidateToolchain(JackApiToolchainBase.class); + toolchain = AbstractTestTools.getCandidateToolchain(JackApiToolchain.class); toolchain.addProguardFlags( dontObfuscateFlagFile, new ProguardFlags(new File( shrobTestsDir, "test021"),"proguard.flags001")); @@ -157,7 +157,7 @@ public class ShrinkTests extends AbstractTest { toolchain.libToLib(jackOut, shrinkOut, /* zipFiles = */ false); dexOut = AbstractTestTools.createTempDir(); - toolchain = AbstractTestTools.getCandidateToolchain(JackApiToolchainBase.class); + toolchain = AbstractTestTools.getCandidateToolchain(JackApiToolchain.class); toolchain.libToExe(shrinkOut, dexOut, /* zipFile = */ false); } catch (Exception e) { |