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

« Back to documentation index

Show/hide line numbers m2minterfaceimpltest.cpp Source File

m2minterfaceimpltest.cpp

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 //CppUTest includes should be after your and system includes
00017 #include "CppUTest/TestHarness.h"
00018 #include "test_m2minterfaceimpl.h"
00019 #include "m2mnsdlinterface_stub.h"
00020 
00021 TEST_GROUP(M2MInterfaceImpl)
00022 {
00023     Test_M2MInterfaceImpl* m2m_interface_impl;
00024 
00025     void setup()
00026     {
00027         m2mnsdlinterface_stub::string_value = new String();
00028         m2m_interface_impl = new Test_M2MInterfaceImpl();
00029     }
00030     void teardown()
00031     {
00032         delete m2mnsdlinterface_stub::string_value;
00033         delete m2m_interface_impl;
00034     }
00035 };
00036 
00037 TEST(M2MInterfaceImpl, create)
00038 {
00039     CHECK(m2m_interface_impl->impl != NULL);
00040 }
00041 
00042 TEST(M2MInterfaceImpl, test_constructor)
00043 {
00044     m2m_interface_impl->test_constructor();
00045 }
00046 
00047 TEST(M2MInterfaceImpl, bootstrap)
00048 {
00049     m2m_interface_impl->test_bootstrap();
00050 }
00051 
00052 TEST(M2MInterfaceImpl, cancel_bootstrap)
00053 {
00054     m2m_interface_impl->test_cancel_bootstrap();
00055 }
00056 
00057 TEST(M2MInterfaceImpl, register_object)
00058 {
00059     m2m_interface_impl->test_register_object();
00060 }
00061 
00062 TEST(M2MInterfaceImpl, update_registration)
00063 {
00064     m2m_interface_impl->test_update_registration();
00065 }
00066 
00067 TEST(M2MInterfaceImpl, unregister_object)
00068 {
00069     m2m_interface_impl->test_unregister_object();
00070 }
00071 
00072 TEST(M2MInterfaceImpl, set_queue_sleep_handler)
00073 {
00074     m2m_interface_impl->test_set_queue_sleep_handler();
00075 }
00076 
00077 TEST(M2MInterfaceImpl, test_set_random_number_callback)
00078 {
00079     m2m_interface_impl->test_set_random_number_callback();
00080 }
00081 
00082 TEST(M2MInterfaceImpl, test_set_entropy_callback)
00083 {
00084     m2m_interface_impl->test_set_entropy_callback();
00085 }
00086 
00087 TEST(M2MInterfaceImpl, test_set_platform_network_handler)
00088 {
00089     m2m_interface_impl->test_set_platform_network_handler();
00090 }
00091 
00092 TEST(M2MInterfaceImpl, coap_message_ready)
00093 {
00094     m2m_interface_impl->test_coap_message_ready();
00095 }
00096 
00097 TEST(M2MInterfaceImpl, client_registered)
00098 {
00099     m2m_interface_impl->test_client_registered();
00100 }
00101 
00102 TEST(M2MInterfaceImpl, test_registration_updated)
00103 {
00104     m2m_interface_impl->test_registration_updated();
00105 }
00106 
00107 TEST(M2MInterfaceImpl, registration_error)
00108 {
00109     m2m_interface_impl->test_registration_error();
00110 }
00111 
00112 TEST(M2MInterfaceImpl, client_unregistered)
00113 {
00114     m2m_interface_impl->test_client_unregistered();
00115 }
00116 
00117 TEST(M2MInterfaceImpl, bootstrap_wait)
00118 {
00119     m2m_interface_impl->test_bootstrap_wait();
00120 }
00121 
00122 TEST(M2MInterfaceImpl, bootstrap_done)
00123 {
00124     m2m_interface_impl->test_bootstrap_done();
00125 }
00126 
00127 TEST(M2MInterfaceImpl, bootstrap_error)
00128 {
00129     m2m_interface_impl->test_bootstrap_error();
00130 }
00131 
00132 TEST(M2MInterfaceImpl, coap_data_processed)
00133 {
00134     m2m_interface_impl->test_coap_data_processed();
00135 }
00136 
00137 TEST(M2MInterfaceImpl, test_value_updated)
00138 {
00139     m2m_interface_impl->test_value_updated();
00140 }
00141 
00142 TEST(M2MInterfaceImpl, data_available)
00143 {
00144     m2m_interface_impl->test_data_available();
00145 }
00146 
00147 TEST(M2MInterfaceImpl, socket_error)
00148 {
00149     m2m_interface_impl->test_socket_error();
00150 }
00151 
00152 TEST(M2MInterfaceImpl, address_ready)
00153 {
00154     m2m_interface_impl->test_address_ready();
00155 }
00156 
00157 TEST(M2MInterfaceImpl, data_sent)
00158 {
00159     m2m_interface_impl->test_data_sent();
00160 }
00161 
00162 TEST(M2MInterfaceImpl, timer_expired)
00163 {
00164     m2m_interface_impl->test_timer_expired();
00165 }
00166