diff options
author | 2023-10-13 14:52:55 +0000 | |
---|---|---|
committer | 2023-10-13 16:17:40 +0000 | |
commit | 26b99c916496abf14a2fd87290720742328462fa (patch) | |
tree | bc4192e6e63861bcf86037c025416addb4c94d2b /runtime/class_linker_test.cc | |
parent | c79c1912043294f088ec838c12d6d3f2d5b64aa0 (diff) |
Revert "Remove size argument from DexFile constructors."
This reverts commit e49ab4d6d4f8226db09803458250f2b9f41abf43.
Bug: 305203031
Reason for revert: b/305203031
Change-Id: I7109fcd07b691141f5a67a096688def3b2d6e57e
Diffstat (limited to 'runtime/class_linker_test.cc')
-rw-r--r-- | runtime/class_linker_test.cc | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/runtime/class_linker_test.cc b/runtime/class_linker_test.cc index 605b1c4ef6..cc43888505 100644 --- a/runtime/class_linker_test.cc +++ b/runtime/class_linker_test.cc @@ -1546,8 +1546,12 @@ TEST_F(ClassLinkerTest, RegisterDexFileName) { auto container = std::make_shared<MemoryDexFileContainer>(old_dex_file->Begin(), old_dex_file->Size()); - std::unique_ptr<DexFile> dex_file(new StandardDexFile( - old_dex_file->Begin(), location->ToModifiedUtf8(), 0u, nullptr, std::move(container))); + std::unique_ptr<DexFile> dex_file(new StandardDexFile(old_dex_file->Begin(), + old_dex_file->Size(), + location->ToModifiedUtf8(), + 0u, + nullptr, + std::move(container))); // Make a copy of the dex cache with changed name. dex_cache.Assign(class_linker->AllocAndInitializeDexCache(Thread::Current(), *dex_file, |