Color Oled(SSD1331) connect to STMicroelectronics Nucleo-F466

Dependencies:   ssd1331

Revision:
0:8fdf9a60065b
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed-os/TESTS/netsocket/tcp/tcp_tests.h	Wed Oct 10 00:33:53 2018 +0000
@@ -0,0 +1,61 @@
+/*
+ * Copyright (c) 2018, ARM Limited, All Rights Reserved
+ * SPDX-License-Identifier: Apache-2.0
+ *
+ * Licensed 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.
+ */
+
+#ifndef TCP_TESTS_H
+#define TCP_TESTS_H
+
+NetworkInterface *get_interface();
+void drop_bad_packets(TCPSocket &sock, int orig_timeout);
+void fill_tx_buffer_ascii(char *buff, size_t len);
+nsapi_error_t tcpsocket_connect_to_echo_srv(TCPSocket &sock);
+nsapi_error_t tcpsocket_connect_to_discard_srv(TCPSocket &sock);
+
+/**
+ * Single testcase might take only half of the remaining execution time
+ */
+int split2half_rmng_tcp_test_time(); // [s]
+
+namespace tcp_global {
+static const int TESTS_TIMEOUT = 960;
+static const int TCP_OS_STACK_SIZE = 2048;
+
+static const int RX_BUFF_SIZE = 1220;
+static const int TX_BUFF_SIZE = 1220;
+
+extern char rx_buffer[RX_BUFF_SIZE];
+extern char tx_buffer[TX_BUFF_SIZE];
+}
+
+/*
+ * Test cases
+ */
+void TCPSOCKET_CONNECT_INVALID();
+void TCPSOCKET_ECHOTEST();
+void TCPSOCKET_ECHOTEST_NONBLOCK();
+void TCPSOCKET_ECHOTEST_BURST();
+void TCPSOCKET_ECHOTEST_BURST_NONBLOCK();
+void TCPSOCKET_ENDPOINT_CLOSE();
+void TCPSOCKET_OPEN_CLOSE_REPEAT();
+void TCPSOCKET_OPEN_LIMIT();
+void TCPSOCKET_RECV_100K();
+void TCPSOCKET_RECV_100K_NONBLOCK();
+void TCPSOCKET_RECV_TIMEOUT();
+void TCPSOCKET_SEND_REPEAT();
+void TCPSOCKET_SEND_TIMEOUT();
+void TCPSOCKET_THREAD_PER_SOCKET_SAFETY();
+
+#endif //TCP_TESTS_H