Ram Gandikota / Mbed OS ABCD
Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers test_m2mconnectionhandlerpimpl_classic.h Source File

test_m2mconnectionhandlerpimpl_classic.h

00001 /*
00002  * Copyright (c) 2016 ARM Limited. All rights reserved.
00003  * SPDX-License-Identifier: Apache-2.0
00004  * Licensed under the Apache License, Version 2.0 (the License); you may
00005  * not use this file except in compliance with the License.
00006  * You may obtain a copy of the License at
00007  *
00008  * http://www.apache.org/licenses/LICENSE-2.0
00009  *
00010  * Unless required by applicable law or agreed to in writing, software
00011  * distributed under the License is distributed on an AS IS BASIS, WITHOUT
00012  * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
00013  * See the License for the specific language governing permissions and
00014  * limitations under the License.
00015  */
00016 #ifndef TEST_M2M_CONNECTION_HANDLER_PIMPL_CLASSIC_H
00017 #define TEST_M2M_CONNECTION_HANDLER_PIMPL_CLASSIC_H
00018 
00019 #include "mbed-client-classic/m2mconnectionhandlerpimpl.h"
00020 
00021 class M2MConnection_TestObserver;
00022 
00023 class Test_M2MConnectionHandlerPimpl_classic
00024 {
00025 public:
00026     Test_M2MConnectionHandlerPimpl_classic();
00027 
00028     virtual ~Test_M2MConnectionHandlerPimpl_classic();
00029 
00030     void test_bind_connection();
00031 
00032     void test_resolve_server_address();
00033   
00034     void test_dns_handler();
00035 
00036     void test_send_data();
00037 
00038     void test_send_socket_data();
00039 
00040     void test_start_listening_for_data();
00041 
00042     void test_data_receive();
00043 
00044     void test_receive_from_socket();
00045 
00046     void test_stop_listening();
00047 
00048     void test_send_to_socket();
00049 
00050     void test_receive_handler();
00051 
00052     void test_handle_connection_error();
00053 
00054     void test_connection_event_handler();
00055 
00056     void test_set_platform_network_handler();
00057 
00058     void test_receive_handshake_handler();
00059 
00060     void test_claim_mutex();
00061 
00062     void test_release_mutex();
00063 
00064     M2MConnectionHandlerPimpl* handler;
00065     M2MConnection_TestObserver *observer;
00066 
00067     M2MConnectionHandlerPimpl *udp4_unsec;
00068     M2MConnectionHandlerPimpl *udp4_sec;
00069     M2MConnectionHandlerPimpl *tcp4_unsec;
00070     M2MConnectionHandlerPimpl *tcp4_sec;
00071     M2MConnectionHandlerPimpl *udp6_unsec;
00072     M2MConnectionHandlerPimpl *udp6_sec;
00073     M2MConnectionHandlerPimpl *tcp6_unsec;
00074     M2MConnectionHandlerPimpl *tcp6_sec;
00075     M2MSecurity* sec;
00076 
00077 };
00078 
00079 #endif // TEST_M2M_CONNECTION_HANDLER_PIMPL_CLASSIC_H