diff options
author | Andreas Gampe <agampe@google.com> | 2017-01-19 21:13:46 -0800 |
---|---|---|
committer | Andreas Gampe <agampe@google.com> | 2017-01-20 15:33:25 -0800 |
commit | 53ae7803b20650b7f36c0564dbcdc3115f399cba (patch) | |
tree | 6a163440ef06130506a0fcf21ac82d935a09dd1e /test/008-exceptions/src-multidex/MultiDexBadInitWrapper2.java | |
parent | d713d29507fb98bea3eee9277f05422a9b641ca1 (diff) |
ART: Refactor TI tests
Add a helper to explicitly bind native methods in a given class,
using dlsym to look up C functions in the local environment.
Add a callback helper that hooks VmInit and calls the above function
on the Main class. Use the callback helper before calling the test-
defined or shared minimal OnLoad function.
Add a binder helper that immediately binds the Main functions. Use
the helper before calling the test-defined OnAttach function.
Remove System.loadLibrary from tests. Instead rely on the explicit
binding.
In preparation for making the tests functional on device.
Test: m test-art-host
Change-Id: I12e68f070e8c6331e51d3a1fa4b9ebd8f28dfce6
Diffstat (limited to 'test/008-exceptions/src-multidex/MultiDexBadInitWrapper2.java')
0 files changed, 0 insertions, 0 deletions