summaryrefslogtreecommitdiff
path: root/runtime/hidden_api_test.cc
diff options
context:
space:
mode:
author Brad Stenning <stenning@google.com> 2021-10-11 19:09:00 -0700
committer Treehugger Robot <treehugger-gerrit@google.com> 2021-10-26 17:36:32 +0000
commit9c924e89e5f52da9faadd1e4e60c73eaed6bc9d1 (patch)
tree8ffdc7f0c144cb392b50144a9ae9cb4ac4d3cca7 /runtime/hidden_api_test.cc
parentd690f8ae8f8e2675bc52089a83ac18c749f8e6d2 (diff)
Add support to place shared libraries after the dex path
This allows for a shared library to overriden by content in the dex path Bug: 179429740 Test: m test-art-host-gtest-art_runtime_tests32 Change-Id: I5f69c7bf32b7bd389eff8bdbb21616ba89ed9e87
Diffstat (limited to 'runtime/hidden_api_test.cc')
-rw-r--r--runtime/hidden_api_test.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/runtime/hidden_api_test.cc b/runtime/hidden_api_test.cc
index 7cec10c173..f5cd15ef4f 100644
--- a/runtime/hidden_api_test.cc
+++ b/runtime/hidden_api_test.cc
@@ -82,7 +82,8 @@ static bool LoadDexFiles(const std::string& path,
MakeNonOwningPointerVector(*dex_files),
h_class,
/* parent_loader= */ ScopedNullHandle<mirror::ClassLoader>(),
- /* shared_libraries= */ ScopedNullHandle<mirror::ObjectArray<mirror::ClassLoader>>()));
+ /* shared_libraries= */ ScopedNullHandle<mirror::ObjectArray<mirror::ClassLoader>>(),
+ /* shared_libraries_after= */ ScopedNullHandle<mirror::ObjectArray<mirror::ClassLoader>>()));
for (const auto& dex_file : *dex_files) {
linker->RegisterDexFile(*dex_file.get(), h_loader.Get());
}