LocalSocketTest.testAccessors: fix the *SendBufferSize* test
If one sets a *SendBufferSize* value which is less than (2048 + SKB_DATA_ALIGN(sizeof(struct sk_buff))) then the value retrieved will be (2 * (2048 + SKB_DATA_ALIGN(sizeof(struct sk_buff)))). Otherwise, the value will be doubled. Modify the test to use a larger value. Bug: 16442451 Change-Id: I2d89393b1ad441783c8a082b072a806b8901830c Signed-off-by: Constantin Musca <constantin.musca@intel.com>
This commit is contained in:
committed by
Elliott Hughes
parent
a52d69f62e
commit
39f61377a5
@@ -126,8 +126,8 @@ public class LocalSocketTest extends AndroidTestCase{
|
||||
socket.setReceiveBufferSize(1999);
|
||||
assertEquals(1999 << 1, socket.getReceiveBufferSize());
|
||||
|
||||
socket.setSendBufferSize(1998);
|
||||
assertEquals(1998 << 1, socket.getSendBufferSize());
|
||||
socket.setSendBufferSize(3998);
|
||||
assertEquals(3998 << 1, socket.getSendBufferSize());
|
||||
|
||||
// Timeout is not support at present, so set is ignored
|
||||
socket.setSoTimeout(1996);
|
||||
|
||||
Reference in New Issue
Block a user