Izzat Bahadirov
add494945d
Unit tests for payload alignment. Also, typo correction.
2013-03-25 14:07:58 -04:00
Izzat Bahadirov
e7ab4b681b
Unit tests for offset modification in SparseSwitchPayload and PackedSwitchPayload.
2013-03-25 13:14:14 -04:00
Izzat Bahadirov
8309057de3
Minor refactoring of simple unit tests, using the same test implementation for all branch target instructions.
2013-03-25 12:28:43 -04:00
Izzat Bahadirov
e05e01eee0
Simple unit tests for const-string to const-string/jumbo conversions, as well as target offset modifications for goto and branch target instructions.
2013-03-25 11:41:38 -04:00
Ben Gruver
7dff6ada5e
Add tests for DexWriter (and fixes to DexWriter, to make said tests pass)
2012-12-28 16:37:41 -08:00
Ben Gruver
a8e05220c1
Refactor how method/field/string/type references are handled
2012-11-04 13:04:21 -08:00
Ben Gruver
d1662b67fe
Refactor dexbacked implementations
...
Made construction of a new dexbacked item as light weight as possible,
only the very mimimum in computed/stored. Some of the values that were
previously calculated/loaded in the constructor are now lazily loaded
upon first use.
In general, nothing is cached, unless the item can't be fully read by
the consumer without causing the value to be computed multiple times.
Otherwise, it is up to the consume to decide if/when/what they want to
cache.
2012-11-03 18:06:41 -07:00
Ben Gruver
9c60ef2a10
Add support in dexlib2 for debug info
2012-10-26 22:23:20 -07:00
Ben Gruver
ca21c1e890
Add a test for InstructionOffsetMap
2012-10-23 22:56:42 -07:00
Ben Gruver
90a1ffeda1
Add "optional" uint, that allows -1 as a value
...
This is used for "optional" indexes, that have a "not present"
value of -1
2012-10-21 21:40:18 -07:00
Ben Gruver
198c33bc26
Add BareDexBuffer for testing DexBuffer
2012-10-21 21:27:23 -07:00
Ben Gruver
39d2c38685
Add tests for the various "sized" types in DexReader
2012-10-21 14:29:19 -07:00
Ben Gruver
36e2ee2005
Rename DexFileBuffer and DexFileReader to DexBuffer and DexReader
2012-10-20 23:29:26 -07:00
Ben Gruver
06eb83505b
Add tests and related fixes for leb128 functionality in DexFileReader
2012-10-20 23:09:55 -07:00
Ben Gruver
e2db1542bb
Add tests and related fixes for DexFileBuffer
2012-10-20 22:58:07 -07:00