diff options
author | 2021-10-11 19:09:00 -0700 | |
---|---|---|
committer | 2021-10-26 17:36:32 +0000 | |
commit | 9c924e89e5f52da9faadd1e4e60c73eaed6bc9d1 (patch) | |
tree | 8ffdc7f0c144cb392b50144a9ae9cb4ac4d3cca7 /runtime/common_runtime_test.h | |
parent | d690f8ae8f8e2675bc52089a83ac18c749f8e6d2 (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/common_runtime_test.h')
-rw-r--r-- | runtime/common_runtime_test.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/runtime/common_runtime_test.h b/runtime/common_runtime_test.h index d3995f0195..7c11fd8fc5 100644 --- a/runtime/common_runtime_test.h +++ b/runtime/common_runtime_test.h @@ -154,16 +154,19 @@ class CommonRuntimeTestImpl : public CommonArtTestImpl { jobject LoadDexInPathClassLoader(const std::string& dex_name, jobject parent_loader, - jobject shared_libraries = nullptr); + jobject shared_libraries = nullptr, + jobject shared_libraries_after = nullptr); jobject LoadDexInPathClassLoader(const std::vector<std::string>& dex_names, jobject parent_loader, - jobject shared_libraries = nullptr); + jobject shared_libraries = nullptr, + jobject shared_libraries_after = nullptr); jobject LoadDexInDelegateLastClassLoader(const std::string& dex_name, jobject parent_loader); jobject LoadDexInInMemoryDexClassLoader(const std::string& dex_name, jobject parent_loader); jobject LoadDexInWellKnownClassLoader(const std::vector<std::string>& dex_names, jclass loader_class, jobject parent_loader, - jobject shared_libraries = nullptr); + jobject shared_libraries = nullptr, + jobject shared_libraries_after = nullptr); void VisitDexes(ArrayRef<const std::string> dexes, const std::function<void(MethodReference)>& method_visitor, |