Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: MAX44000 PWM_Tone_Library nexpaq_mdk
Fork of LED_Demo by
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 00020 TEST_GROUP(M2MInterfaceImpl) 00021 { 00022 Test_M2MInterfaceImpl* m2m_interface_impl; 00023 00024 void setup() 00025 { 00026 m2m_interface_impl = new Test_M2MInterfaceImpl(); 00027 } 00028 void teardown() 00029 { 00030 delete m2m_interface_impl; 00031 } 00032 }; 00033 00034 TEST(M2MInterfaceImpl, create) 00035 { 00036 CHECK(m2m_interface_impl->impl != NULL); 00037 } 00038 00039 TEST(M2MInterfaceImpl, test_constructor) 00040 { 00041 m2m_interface_impl->test_constructor(); 00042 } 00043 00044 TEST(M2MInterfaceImpl, bootstrap) 00045 { 00046 m2m_interface_impl->test_bootstrap(); 00047 } 00048 00049 TEST(M2MInterfaceImpl, cancel_bootstrap) 00050 { 00051 m2m_interface_impl->test_cancel_bootstrap(); 00052 } 00053 00054 TEST(M2MInterfaceImpl, register_object) 00055 { 00056 m2m_interface_impl->test_register_object(); 00057 } 00058 00059 TEST(M2MInterfaceImpl, update_registration) 00060 { 00061 m2m_interface_impl->test_update_registration(); 00062 } 00063 00064 TEST(M2MInterfaceImpl, unregister_object) 00065 { 00066 m2m_interface_impl->test_unregister_object(); 00067 } 00068 00069 TEST(M2MInterfaceImpl, set_queue_sleep_handler) 00070 { 00071 m2m_interface_impl->test_set_queue_sleep_handler(); 00072 } 00073 00074 TEST(M2MInterfaceImpl, test_set_random_number_callback) 00075 { 00076 m2m_interface_impl->test_set_random_number_callback(); 00077 } 00078 00079 TEST(M2MInterfaceImpl, test_set_entropy_callback) 00080 { 00081 m2m_interface_impl->test_set_entropy_callback(); 00082 } 00083 00084 TEST(M2MInterfaceImpl, test_set_platform_network_handler) 00085 { 00086 m2m_interface_impl->test_set_platform_network_handler(); 00087 } 00088 00089 TEST(M2MInterfaceImpl, coap_message_ready) 00090 { 00091 m2m_interface_impl->test_coap_message_ready(); 00092 } 00093 00094 TEST(M2MInterfaceImpl, client_registered) 00095 { 00096 m2m_interface_impl->test_client_registered(); 00097 } 00098 00099 TEST(M2MInterfaceImpl, test_registration_updated) 00100 { 00101 m2m_interface_impl->test_registration_updated(); 00102 } 00103 00104 TEST(M2MInterfaceImpl, registration_error) 00105 { 00106 m2m_interface_impl->test_registration_error(); 00107 } 00108 00109 TEST(M2MInterfaceImpl, client_unregistered) 00110 { 00111 m2m_interface_impl->test_client_unregistered(); 00112 } 00113 00114 TEST(M2MInterfaceImpl, bootstrap_done) 00115 { 00116 m2m_interface_impl->test_bootstrap_done(); 00117 } 00118 00119 TEST(M2MInterfaceImpl, bootstrap_error) 00120 { 00121 m2m_interface_impl->test_bootstrap_error(); 00122 } 00123 00124 TEST(M2MInterfaceImpl, coap_data_processed) 00125 { 00126 m2m_interface_impl->test_coap_data_processed(); 00127 } 00128 00129 TEST(M2MInterfaceImpl, test_value_updated) 00130 { 00131 m2m_interface_impl->test_value_updated(); 00132 } 00133 00134 TEST(M2MInterfaceImpl, data_available) 00135 { 00136 m2m_interface_impl->test_data_available(); 00137 } 00138 00139 TEST(M2MInterfaceImpl, socket_error) 00140 { 00141 m2m_interface_impl->test_socket_error(); 00142 } 00143 00144 TEST(M2MInterfaceImpl, address_ready) 00145 { 00146 m2m_interface_impl->test_address_ready(); 00147 } 00148 00149 TEST(M2MInterfaceImpl, data_sent) 00150 { 00151 m2m_interface_impl->test_data_sent(); 00152 } 00153 00154 TEST(M2MInterfaceImpl, timer_expired) 00155 { 00156 m2m_interface_impl->test_timer_expired(); 00157 }
Generated on Tue Jul 12 2022 12:28:37 by
