History log of /external/dexmaker/dexmaker-mockito-inline/src/main/jni/dexmakerjvmtiagent/agent.cc
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
d4a20568bcbaa34526676e4758e011ea32784825 13-Mar-2018 Philip P. Moltmann <moltmann@google.com> Update dexmaker to almost 2.16

Test: atest CtsMockingTestCases CtsInlineMockingTestCases
Bug: 74344734
Change-Id: Ib79431a454b3ae9715906da61fc9267d54ae7f07
/external/dexmaker/dexmaker-mockito-inline/src/main/jni/dexmakerjvmtiagent/agent.cc
9484bbe2ce359b072dd89853b72b490b0cd4ea74 17-Jan-2018 Philip P. Moltmann <moltmann@google.com> Register transformation hook only when needed

This prevents us from attempting to transform classes when not needed.
Every transformation is expensive, hence we want to avoid them if we
can.

If another agent triggers transformations of mocked classes the objects
of the classes will become unmocked without knowledge of mockito breaking
many assuptions.

Having another agent registered is very rare, i.e. currently the only
other usage is profiling using Android Studio. Still, we want to support
this, hence we might want to revert this change later.

Wifi-tests runtime 590s -> 417s

Test: frameworks/opt/net/wifi/tests/wifitests/runtests.sh
atest CtsInlineMockingTestCases CtsMockingTestCase
Bug: 72052158

Change-Id: I2556e749806bed4f80697d5cba38a8d8a2f7ce6a
/external/dexmaker/dexmaker-mockito-inline/src/main/jni/dexmakerjvmtiagent/agent.cc
171f097997993b84053f643dc275ce66364315ca 20-Nov-2017 Philip P. Moltmann <moltmann@google.com> Update dexmaker to latest (master) state

This adds dexmaker-mockito-inline support and dexmaker-mockito-*-tests.
Inline mocking will allow mocking of final methods/classes.

Bug: 63538681
Test: cts-tradefed run cts-dev -m CtsMockingTestCases
Change-Id: Id8b88639abe0a84642273eae43322df09068a782
/external/dexmaker/dexmaker-mockito-inline/src/main/jni/dexmakerjvmtiagent/agent.cc