Commit fdfeacfa authored by Tobias Thierer's avatar Tobias Thierer
Browse files

Add missing test coverage for ByteBuffer.allocateDirect().

This method was called as a side-effect of some other tests, but
never as part of a dedicated / comprehensive test. For example,
the case of a negative argument was not covered by tests. This CL
adds such coverage.

This CL also tweaks a couple of assertContentEquals() helper
methods to be static.

Test: testAllocateDirect() passes.

Bug: 35910877

Change-Id: I6807383d0c47d3b8e6d3c8b15fc3ba0432a92b3d
parent 87fa0299
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment