History log of /libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/DirectByteBufferTest.java
Revision Date Author Comments
0f153ca202c986addbb6f481a6f922aa5158c797 23-Dec-2015 Shubham Ajmera <shubhamajmera@google.com> Fix alignment test for DirectByteBuffer

Only the original DirectByteBuffer needs to be aligned according to the
Use Case. When SliceDirectByteBuffer is generated, the address gets
shifted by the offset, as a result, it will not be aligned always.

Bug: 26301669
Change-Id: I49d3bda5850bf64667c1e9df62267b00cc9a61ec
7c00153cbe952a4e7552cdd815c95a90f31ead9b 11-Dec-2015 Shubham Ajmera <shubhamajmera@google.com> Fix isAccessible and alignment test

The test was trying to modify the content of the array after setting the
isaccessible flag to true, however it wasn't handling isReadOnly flag at
the same time.

alignment test is now added in harmony-tests. This will enable the test
to run on the other types of DirectByteBuffers.

Bug: 26140694
Change-Id: Ie4b98a13d9249a3f802ce17f268f188cac22af74
f4145724170d5e3e52b3bf683d527fa5698cb12d 25-Nov-2015 Shubham Ajmera <shubhamajmera@google.com> isAccessible flag fixes

Made the default value as true, and corrected the if accessible
condition. Also added a unit test for it.

Bug: 25880216
Change-Id: I6152a524670fa32b26afab33b6873ae31aae9515
9006e31bc25f3f3282d6d39f09e5dda5bd1be1ce 22-Jun-2015 Narayan Kamath <narayan@google.com> Add CTS test for unaligned reads / writes with swaps.

bug: 21491780

(cherry picked from commit 11b2b3f7d8ef8538bdda11db197eb68aa662678e)

Change-Id: I22a7307694dbd554566d8992e187f504665d5506
11b2b3f7d8ef8538bdda11db197eb68aa662678e 22-Jun-2015 Narayan Kamath <narayan@google.com> Add CTS test for unaligned reads / writes with swaps.

bug: 21491780

Change-Id: Icf3f1c267e3e86077d25f23e537c46bb05e8480f
e5fea3d504609d22337a5311d3ce0e72314bceee 15-Nov-2013 Narayan Kamath <narayan@google.com> Use a consistent package path for harmony tests.

Harmony was never consistent about where they put their
tests. There's no reason we have to be the same.

Also, there's no need to have separate subtrees for nio,
nio_char etc. etc.

This change makes all existing apache harmony tests
subpackages of "org.apache.harmony.tests" and put them under
libcore/harmony-tests.

We somehow managed to end up with two vastly different
copies of CharsetDecoderTest & CharsetEncoderTest. I've
renamed the copies CharsetDecoder2Test & CharsetEncoder2Test
to avoid having to go in and resolve the complicated
diffs or speculate about the reasons for their
divergence.

Change-Id: Ic34e69c2faab8893edd54e05eccd7091f4a09abd