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

« Back to documentation index

Show/hide line numbers test_m2minterfaceimpl.h Source File

test_m2minterfaceimpl.h

00001 /*
00002  * Copyright (c) 2015 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_INTERFACE_IMPL_H
00017 #define TEST_M2M_INTERFACE_IMPL_H
00018 
00019 #include "m2minterfaceimpl.h"
00020 
00021 class TestObserver;
00022 
00023 uint32_t test_random_callback(void);
00024 
00025 class Test_M2MInterfaceImpl
00026 {
00027 public:
00028     Test_M2MInterfaceImpl();
00029 
00030     virtual ~Test_M2MInterfaceImpl();
00031 
00032     void test_constructor();
00033 
00034     void test_bootstrap();
00035 
00036     void test_cancel_bootstrap();
00037 
00038     void test_register_object();
00039 
00040     void test_update_registration();
00041 
00042     void test_unregister_object();
00043 
00044     void test_set_queue_sleep_handler();
00045 
00046     void test_set_random_number_callback();
00047 
00048     void test_set_entropy_callback();
00049 
00050     void test_set_platform_network_handler();
00051 
00052     void test_coap_message_ready();
00053 
00054     void test_client_registered();
00055 
00056     void test_registration_updated();
00057 
00058     void test_registration_error();
00059 
00060     void test_client_unregistered();
00061 
00062     void test_bootstrap_done();
00063 
00064     void test_bootstrap_wait();
00065 
00066     void test_bootstrap_error();
00067 
00068     void test_coap_data_processed();
00069 
00070     void test_value_updated();
00071 
00072     void test_data_available();
00073 
00074     void test_socket_error();
00075 
00076     void test_address_ready();
00077 
00078     void test_data_sent();
00079 
00080     void test_timer_expired();
00081 
00082     void test_callback_handler();
00083 
00084     M2MInterfaceImpl*   impl;
00085     TestObserver        *observer;
00086     bool visited;
00087 };
00088 
00089 #endif // TEST_M2M_INTERFACE_IMPL_H