diff --git a/transport-native-io_uring/src/test/java/io/netty/channel/uring/IOUringSocketShutdownOutputByPeerTest.java b/transport-native-io_uring/src/test/java/io/netty/channel/uring/IOUringSocketShutdownOutputByPeerTest.java new file mode 100644 index 0000000000..9119f2f1a3 --- /dev/null +++ b/transport-native-io_uring/src/test/java/io/netty/channel/uring/IOUringSocketShutdownOutputByPeerTest.java @@ -0,0 +1,29 @@ +/* + * Copyright 2020 The Netty Project + * + * The Netty Project licenses this file to you under the Apache License, + * version 2.0 (the "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at: + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the + * License for the specific language governing permissions and limitations + * under the License. + */ +package io.netty.channel.uring; + +import io.netty.bootstrap.ServerBootstrap; +import io.netty.testsuite.transport.TestsuitePermutation; +import io.netty.testsuite.transport.socket.SocketShutdownOutputByPeerTest; + +import java.util.List; + +public class IOUringSocketShutdownOutputByPeerTest extends SocketShutdownOutputByPeerTest { + @Override + protected List> newFactories() { + return IOUringSocketTestPermutation.INSTANCE.serverSocket(); + } +} diff --git a/transport-native-io_uring/src/test/java/io/netty/channel/uring/IOUringSocketShutdownOutputBySelfTest.java b/transport-native-io_uring/src/test/java/io/netty/channel/uring/IOUringSocketShutdownOutputBySelfTest.java new file mode 100644 index 0000000000..038b23cad6 --- /dev/null +++ b/transport-native-io_uring/src/test/java/io/netty/channel/uring/IOUringSocketShutdownOutputBySelfTest.java @@ -0,0 +1,30 @@ +/* + * Copyright 2020 The Netty Project + * + * The Netty Project licenses this file to you under the Apache License, + * version 2.0 (the "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at: + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the + * License for the specific language governing permissions and limitations + * under the License. + */ +package io.netty.channel.uring; + +import io.netty.bootstrap.Bootstrap; +import io.netty.testsuite.transport.TestsuitePermutation; +import io.netty.testsuite.transport.socket.SocketShutdownOutputBySelfTest; + +import java.util.List; + +public class IOUringSocketShutdownOutputBySelfTest extends SocketShutdownOutputBySelfTest { + + @Override + protected List> newFactories() { + return IOUringSocketTestPermutation.INSTANCE.clientSocket(); + } +} diff --git a/transport-native-io_uring/src/test/java/io/netty/channel/uring/IOUringSocketSslClientRenegotiateTest.java b/transport-native-io_uring/src/test/java/io/netty/channel/uring/IOUringSocketSslClientRenegotiateTest.java new file mode 100644 index 0000000000..4302cf4d90 --- /dev/null +++ b/transport-native-io_uring/src/test/java/io/netty/channel/uring/IOUringSocketSslClientRenegotiateTest.java @@ -0,0 +1,36 @@ +/* + * Copyright 2020 The Netty Project + * + * The Netty Project licenses this file to you under the Apache License, + * version 2.0 (the "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at: + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the + * License for the specific language governing permissions and limitations + * under the License. + */ +package io.netty.channel.uring; + +import io.netty.bootstrap.Bootstrap; +import io.netty.bootstrap.ServerBootstrap; +import io.netty.handler.ssl.SslContext; +import io.netty.testsuite.transport.TestsuitePermutation; +import io.netty.testsuite.transport.socket.SocketSslClientRenegotiateTest; + +import java.util.List; + +public class IOUringSocketSslClientRenegotiateTest extends SocketSslClientRenegotiateTest { + + public IOUringSocketSslClientRenegotiateTest(SslContext serverCtx, SslContext clientCtx, boolean delegate) { + super(serverCtx, clientCtx, delegate); + } + + @Override + protected List> newFactories() { + return IOUringSocketTestPermutation.INSTANCE.socket(); + } +} diff --git a/transport-native-io_uring/src/test/java/io/netty/channel/uring/IOUringSocketSslEchoTest.java b/transport-native-io_uring/src/test/java/io/netty/channel/uring/IOUringSocketSslEchoTest.java new file mode 100644 index 0000000000..ee2ff6730c --- /dev/null +++ b/transport-native-io_uring/src/test/java/io/netty/channel/uring/IOUringSocketSslEchoTest.java @@ -0,0 +1,41 @@ +/* + * Copyright 2020 The Netty Project + * + * The Netty Project licenses this file to you under the Apache License, + * version 2.0 (the "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at: + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the + * License for the specific language governing permissions and limitations + * under the License. + */ +package io.netty.channel.uring; + +import io.netty.bootstrap.Bootstrap; +import io.netty.bootstrap.ServerBootstrap; +import io.netty.handler.ssl.SslContext; +import io.netty.testsuite.transport.TestsuitePermutation; +import io.netty.testsuite.transport.socket.SocketSslEchoTest; + +import java.util.List; + +public class IOUringSocketSslEchoTest extends SocketSslEchoTest { + public IOUringSocketSslEchoTest( + SslContext serverCtx, SslContext clientCtx, Renegotiation renegotiation, + boolean serverUsesDelegatedTaskExecutor, boolean clientUsesDelegatedTaskExecutor, + boolean autoRead, boolean useChunkedWriteHandler, boolean useCompositeByteBuf) { + + super(serverCtx, clientCtx, renegotiation, + serverUsesDelegatedTaskExecutor, clientUsesDelegatedTaskExecutor, + autoRead, useChunkedWriteHandler, useCompositeByteBuf); + } + + @Override + protected List> newFactories() { + return IOUringSocketTestPermutation.INSTANCE.socket(); + } +} diff --git a/transport-native-io_uring/src/test/java/io/netty/channel/uring/IOUringSocketSslGreetingTest.java b/transport-native-io_uring/src/test/java/io/netty/channel/uring/IOUringSocketSslGreetingTest.java new file mode 100644 index 0000000000..5d4d145aca --- /dev/null +++ b/transport-native-io_uring/src/test/java/io/netty/channel/uring/IOUringSocketSslGreetingTest.java @@ -0,0 +1,36 @@ +/* + * Copyright 2020 The Netty Project + * + * The Netty Project licenses this file to you under the Apache License, + * version 2.0 (the "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at: + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the + * License for the specific language governing permissions and limitations + * under the License. + */ +package io.netty.channel.uring; + +import io.netty.bootstrap.Bootstrap; +import io.netty.bootstrap.ServerBootstrap; +import io.netty.handler.ssl.SslContext; +import io.netty.testsuite.transport.TestsuitePermutation; +import io.netty.testsuite.transport.socket.SocketSslGreetingTest; + +import java.util.List; + +public class IOUringSocketSslGreetingTest extends SocketSslGreetingTest { + + public IOUringSocketSslGreetingTest(SslContext serverCtx, SslContext clientCtx, boolean delegate) { + super(serverCtx, clientCtx, delegate); + } + + @Override + protected List> newFactories() { + return IOUringSocketTestPermutation.INSTANCE.socket(); + } +} diff --git a/transport-native-io_uring/src/test/java/io/netty/channel/uring/IOUringSocketSslSessionReuseTest.java b/transport-native-io_uring/src/test/java/io/netty/channel/uring/IOUringSocketSslSessionReuseTest.java new file mode 100644 index 0000000000..eb9183c19a --- /dev/null +++ b/transport-native-io_uring/src/test/java/io/netty/channel/uring/IOUringSocketSslSessionReuseTest.java @@ -0,0 +1,36 @@ +/* + * Copyright 2020 The Netty Project + * + * The Netty Project licenses this file to you under the Apache License, + * version 2.0 (the "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at: + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the + * License for the specific language governing permissions and limitations + * under the License. + */ +package io.netty.channel.uring; + +import io.netty.bootstrap.Bootstrap; +import io.netty.bootstrap.ServerBootstrap; +import io.netty.handler.ssl.SslContext; +import io.netty.testsuite.transport.TestsuitePermutation; +import io.netty.testsuite.transport.socket.SocketSslSessionReuseTest; + +import java.util.List; + +public class IOUringSocketSslSessionReuseTest extends SocketSslSessionReuseTest { + + public IOUringSocketSslSessionReuseTest(SslContext serverCtx, SslContext clientCtx) { + super(serverCtx, clientCtx); + } + + @Override + protected List> newFactories() { + return IOUringSocketTestPermutation.INSTANCE.socket(); + } +} diff --git a/transport-native-io_uring/src/test/java/io/netty/channel/uring/IOUringSocketStartTlsTest.java b/transport-native-io_uring/src/test/java/io/netty/channel/uring/IOUringSocketStartTlsTest.java new file mode 100644 index 0000000000..86581ae796 --- /dev/null +++ b/transport-native-io_uring/src/test/java/io/netty/channel/uring/IOUringSocketStartTlsTest.java @@ -0,0 +1,36 @@ +/* + * Copyright 2020 The Netty Project + * + * The Netty Project licenses this file to you under the Apache License, + * version 2.0 (the "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at: + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the + * License for the specific language governing permissions and limitations + * under the License. + */ +package io.netty.channel.uring; + +import io.netty.bootstrap.Bootstrap; +import io.netty.bootstrap.ServerBootstrap; +import io.netty.handler.ssl.SslContext; +import io.netty.testsuite.transport.TestsuitePermutation; +import io.netty.testsuite.transport.socket.SocketStartTlsTest; + +import java.util.List; + +public class IOUringSocketStartTlsTest extends SocketStartTlsTest { + + public IOUringSocketStartTlsTest(SslContext serverCtx, SslContext clientCtx) { + super(serverCtx, clientCtx); + } + + @Override + protected List> newFactories() { + return IOUringSocketTestPermutation.INSTANCE.socket(); + } +} diff --git a/transport-native-io_uring/src/test/java/io/netty/channel/uring/IOUringWriteBeforeRegisteredTest.java b/transport-native-io_uring/src/test/java/io/netty/channel/uring/IOUringWriteBeforeRegisteredTest.java new file mode 100644 index 0000000000..9bb92f5bce --- /dev/null +++ b/transport-native-io_uring/src/test/java/io/netty/channel/uring/IOUringWriteBeforeRegisteredTest.java @@ -0,0 +1,30 @@ +/* + * Copyright 2020 The Netty Project + * + * The Netty Project licenses this file to you under the Apache License, + * version 2.0 (the "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at: + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the + * License for the specific language governing permissions and limitations + * under the License. + */ +package io.netty.channel.uring; + +import io.netty.bootstrap.Bootstrap; +import io.netty.testsuite.transport.TestsuitePermutation; +import io.netty.testsuite.transport.socket.WriteBeforeRegisteredTest; + +import java.util.List; + +public class IOUringWriteBeforeRegisteredTest extends WriteBeforeRegisteredTest { + + @Override + protected List> newFactories() { + return IOUringSocketTestPermutation.INSTANCE.clientSocket(); + } +}