diff options
Diffstat (limited to 'runtime/class_linker_test.cc')
-rw-r--r-- | runtime/class_linker_test.cc | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/runtime/class_linker_test.cc b/runtime/class_linker_test.cc index e40f1dbcdf..2a2aff1002 100644 --- a/runtime/class_linker_test.cc +++ b/runtime/class_linker_test.cc @@ -1521,12 +1521,12 @@ TEST_F(ClassLinkerTest, RegisterDexFileName) { dex_cache->SetLocation(location.Get()); const DexFile* old_dex_file = dex_cache->GetDexFile(); - std::unique_ptr<DexFile> dex_file(new StandardDexFile(old_dex_file->Begin(), - old_dex_file->Size(), - location->ToModifiedUtf8(), - 0u, - nullptr, - nullptr)); + std::unique_ptr<DexFile> dex_file( + new StandardDexFile(std::make_unique<NonOwningDexFileContainer>(old_dex_file->Begin(), + old_dex_file->Size()), + location->ToModifiedUtf8(), + 0u, + nullptr)); { WriterMutexLock mu(soa.Self(), *Locks::dex_lock_); // Check that inserting with a UTF16 name works. |