Home
last modified time | relevance | path

Searched refs:channel1 (Results 1 – 3 of 3) sorted by relevance

/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/channels/
DDatagramChannelTest.java66 private DatagramChannel channel1; field in DatagramChannelTest
75 channel1 = DatagramChannel.open(); in setUp()
78 channel1.socket().bind(new InetSocketAddress(Inet6Address.LOOPBACK, 0)); in setUp()
81 channel1Address = (InetSocketAddress) channel1.socket().getLocalSocketAddress(); in setUp()
92 IoUtils.closeQuietly(channel1); in tearDown()
112 int val = this.channel1.validOps(); in testValidOps()
127 assertEquals(this.channel1.provider(), testMock.provider()); in testOpen()
142 this.channel1.read(readBuf); in testReadByteBufferArray()
157 readres = this.channel1.read(readBuf); in testReadByteBufferArray()
178 this.channel1.read(readBuf); in testReadByteBufferArray_BufNull()
[all …]
/libcore/luni/src/test/java/libcore/java/nio/channels/
DOldSocketChannelTest.java47 private SocketChannel channel1; field in OldSocketChannelTest
57 this.channel1 = SocketChannel.open(); in setUp()
65 if (null != this.channel1) { in tearDown()
67 this.channel1.close(); in tearDown()
106 assertEquals(13, this.channel1.validOps()); in testValidOps()
122 assertEquals(this.channel1.provider(), testMSChannelnotnull.provider()); in testOpen()
124 this.channel1.write(buf); in testOpen()
132 assertTrue(this.channel1.isOpen()); in testIsOpen()
133 this.channel1.close(); in testIsOpen()
134 assertFalse(this.channel1.isOpen()); in testIsOpen()
[all …]
DSocketChannelTest.java350 try (SocketChannel channel1 = SocketChannel.open(); in test_shutdownInput() argument
362 channel1.connect(localAddr1); in test_shutdownInput()
370 channel1.configureBlocking(false); in test_shutdownInput()
372 channel1.shutdownInput(); in test_shutdownInput()
373 assertEquals(-1, channel1.read(readContent)); in test_shutdownInput()
378 try (SocketChannel channel1 = SocketChannel.open(); in test_shutdownOutput() argument
391 channel1.shutdownOutput(); in test_shutdownOutput()
397 channel1.connect(localAddr1); in test_shutdownOutput()
398 channel1.shutdownOutput(); in test_shutdownOutput()
401 channel1.write(writeContent); in test_shutdownOutput()
[all …]