diff options
author | Calin Juravle <calin@google.com> | 2020-12-11 18:26:14 -0800 |
---|---|---|
committer | Calin Juravle <calin@google.com> | 2020-12-14 19:00:35 +0000 |
commit | 5ff2393e1fb6e61fc74f20c66f80f4b8656987d1 (patch) | |
tree | e94b8cfc92379678b4f2e6446aa6d28a6408222f /dexoptanalyzer | |
parent | 99459f3bdd8d569ec7054920cbc32e6915d1e125 (diff) |
Remove stripped-apk related logic from CLC
Stripped-apks are no longer supported by the runtime and
the current logic prevents bug fixes and code evolution.
Bug: 111442216
Test: test-art-host
Change-Id: I30d5825e4f6453981ca9165bebafe67557c28b93
Diffstat (limited to 'dexoptanalyzer')
-rw-r--r-- | dexoptanalyzer/dexoptanalyzer_test.cc | 37 |
1 files changed, 1 insertions, 36 deletions
diff --git a/dexoptanalyzer/dexoptanalyzer_test.cc b/dexoptanalyzer/dexoptanalyzer_test.cc index d8321d6c55..4fb0b9e391 100644 --- a/dexoptanalyzer/dexoptanalyzer_test.cc +++ b/dexoptanalyzer/dexoptanalyzer_test.cc @@ -228,47 +228,12 @@ TEST_F(DexoptAnalyzerTest, DexOdexNoOat) { Verify(dex_location, CompilerFilter::kEverything); } -// Case: We have a stripped DEX file and a PIC ODEX file, but no OAT file. -TEST_F(DexoptAnalyzerTest, StrippedDexOdexNoOat) { - std::string dex_location = GetScratchDir() + "/StrippedDexOdexNoOat.jar"; - std::string odex_location = GetOdexDir() + "/StrippedDexOdexNoOat.odex"; - - Copy(GetDexSrc1(), dex_location); - GenerateOdexForTest(dex_location, odex_location, CompilerFilter::kSpeed); - - // Strip the dex file - Copy(GetStrippedDexSrc1(), dex_location); - - Verify(dex_location, CompilerFilter::kSpeed); -} - -// Case: We have a stripped DEX file, a PIC ODEX file, and an out-of-date OAT file. -TEST_F(DexoptAnalyzerTest, StrippedDexOdexOat) { - std::string dex_location = GetScratchDir() + "/StrippedDexOdexOat.jar"; - std::string odex_location = GetOdexDir() + "/StrippedDexOdexOat.odex"; - - // Create the oat file from a different dex file so it looks out of date. - Copy(GetDexSrc2(), dex_location); - GenerateOatForTest(dex_location.c_str(), CompilerFilter::kSpeed); - - // Create the odex file - Copy(GetDexSrc1(), dex_location); - GenerateOdexForTest(dex_location, odex_location, CompilerFilter::kSpeed); - - // Strip the dex file. - Copy(GetStrippedDexSrc1(), dex_location); - - Verify(dex_location, CompilerFilter::kExtract); - Verify(dex_location, CompilerFilter::kSpeed); - Verify(dex_location, CompilerFilter::kEverything); -} - // Case: We have a stripped (or resource-only) DEX file, no ODEX file and no // OAT file. Expect: The status is kNoDexOptNeeded. TEST_F(DexoptAnalyzerTest, ResourceOnlyDex) { std::string dex_location = GetScratchDir() + "/ResourceOnlyDex.jar"; - Copy(GetStrippedDexSrc1(), dex_location); + Copy(GetResourceOnlySrc1(), dex_location); Verify(dex_location, CompilerFilter::kSpeed); Verify(dex_location, CompilerFilter::kExtract); |