diff options
| author | 2017-10-10 11:54:29 -0700 | |
|---|---|---|
| committer | 2017-10-11 14:47:06 -0700 | |
| commit | 79c87da9d4698ec58ece65af0065eebd55a1cfe0 (patch) | |
| tree | 399797f37712da9d20829d5b5059b6c84943cb02 /compiler/utils | |
| parent | 656e97f949df4081fba908113406b32915174502 (diff) | |
Add DexFileLoader class
Added DexFileLoader class, moved functionality from DexFile there:
- Multidex loading logic
- DexFile opening logic for Zip and etc
- Some other helpers
Bug: 63756964
Test: test-art-host
Change-Id: Ic3dfa458947d4b69912dea5cdd836e7e8f55061c
Diffstat (limited to 'compiler/utils')
| -rw-r--r-- | compiler/utils/test_dex_file_builder.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/compiler/utils/test_dex_file_builder.h b/compiler/utils/test_dex_file_builder.h index 8ef98829df..e6501e0b83 100644 --- a/compiler/utils/test_dex_file_builder.h +++ b/compiler/utils/test_dex_file_builder.h @@ -26,6 +26,7 @@ #include "base/bit_utils.h" #include "base/logging.h" +#include "dex_file_loader.h" #include "native_dex_file.h" namespace art { @@ -231,7 +232,7 @@ class TestDexFileBuilder { static constexpr bool kVerify = false; static constexpr bool kVerifyChecksum = false; std::string error_msg; - std::unique_ptr<const DexFile> dex_file(DexFile::Open( + std::unique_ptr<const DexFile> dex_file(DexFileLoader::Open( &dex_file_data_[0], dex_file_data_.size(), dex_location, |