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
m2mbasetest.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_m2mbase.h" 00019 00020 00021 TEST_GROUP(M2MBase) 00022 { 00023 Test_M2MBase* m2m_base; 00024 00025 void setup() 00026 { 00027 m2m_base = new Test_M2MBase(); 00028 } 00029 void teardown() 00030 { 00031 delete m2m_base; 00032 } 00033 }; 00034 00035 TEST(M2MBase, Create) 00036 { 00037 CHECK(m2m_base != NULL); 00038 } 00039 00040 TEST(M2MBase, copy_constructor) 00041 { 00042 m2m_base->test_copy_constructor(); 00043 } 00044 00045 TEST(M2MBase, test_assignment_operator) 00046 { 00047 m2m_base->test_assignment_operator(); 00048 } 00049 00050 TEST(M2MBase, set_operation) 00051 { 00052 m2m_base->test_set_operation(); 00053 } 00054 00055 TEST(M2MBase, test_set_base_type) 00056 { 00057 m2m_base->test_set_base_type(); 00058 } 00059 00060 TEST(M2MBase, set_interface_description) 00061 { 00062 m2m_base->test_set_interface_description(); 00063 } 00064 00065 TEST(M2MBase, set_uri_path) 00066 { 00067 m2m_base->test_set_uri_path(); 00068 } 00069 00070 TEST(M2MBase, uri_path) 00071 { 00072 m2m_base->test_uri_path(); 00073 } 00074 00075 TEST(M2MBase, set_resource_type) 00076 { 00077 m2m_base->test_set_resource_type(); 00078 } 00079 00080 TEST(M2MBase, set_coap_content_type) 00081 { 00082 m2m_base->test_set_coap_content_type(); 00083 } 00084 00085 TEST(M2MBase, set_instance_id) 00086 { 00087 m2m_base->test_set_instance_id(); 00088 } 00089 00090 TEST(M2MBase, observation_number) 00091 { 00092 m2m_base->test_observation_number(); 00093 } 00094 00095 TEST(M2MBase, mode) 00096 { 00097 m2m_base->test_mode(); 00098 } 00099 00100 TEST(M2MBase, observation_token) 00101 { 00102 m2m_base->test_get_observation_token(); 00103 } 00104 00105 TEST(M2MBase, is_observable) 00106 { 00107 m2m_base->test_is_observable(); 00108 } 00109 00110 TEST(M2MBase, observation_level) 00111 { 00112 m2m_base->test_observation_level(); 00113 } 00114 00115 TEST(M2MBase, set_observation_token) 00116 { 00117 m2m_base->test_set_observation_token(); 00118 } 00119 00120 TEST(M2MBase, set_under_observation) 00121 { 00122 m2m_base->test_set_under_observation(); 00123 } 00124 00125 TEST(M2MBase, set_observable) 00126 { 00127 m2m_base->test_set_observable(); 00128 } 00129 00130 TEST(M2MBase, add_observation_level) 00131 { 00132 m2m_base->test_add_observation_level(); 00133 } 00134 00135 TEST(M2MBase, remove_observation_level) 00136 { 00137 m2m_base->test_remove_observation_level(); 00138 } 00139 00140 TEST(M2MBase, operation) 00141 { 00142 m2m_base->test_operation(); 00143 } 00144 00145 TEST(M2MBase, name) 00146 { 00147 m2m_base->test_name(); 00148 } 00149 00150 TEST(M2MBase, name_id) 00151 { 00152 m2m_base->test_name_id(); 00153 } 00154 00155 TEST(M2MBase, instance_id) 00156 { 00157 m2m_base->test_instance_id(); 00158 } 00159 00160 TEST(M2MBase, interface_description) 00161 { 00162 m2m_base->test_interface_description(); 00163 } 00164 00165 TEST(M2MBase, resource_type) 00166 { 00167 m2m_base->test_resource_type(); 00168 } 00169 00170 TEST(M2MBase, coap_content_type) 00171 { 00172 m2m_base->test_coap_content_type(); 00173 } 00174 00175 TEST(M2MBase, test_base_type) 00176 { 00177 m2m_base->test_base_type(); 00178 } 00179 00180 TEST(M2MBase, test_handle_observation_attribute) 00181 { 00182 m2m_base->test_handle_observation_attribute(); 00183 } 00184 00185 TEST(M2MBase, test_observation_to_be_sent) 00186 { 00187 m2m_base->test_observation_to_be_sent(); 00188 } 00189 00190 TEST(M2MBase, test_remove_resource_from_coap) 00191 { 00192 m2m_base->test_remove_resource_from_coap(); 00193 } 00194 00195 TEST(M2MBase, test_remove_object_from_coap) 00196 { 00197 m2m_base->test_remove_object_from_coap(); 00198 } 00199 00200 TEST(M2MBase, test_handle_get_request) 00201 { 00202 m2m_base->test_handle_get_request(); 00203 } 00204 00205 TEST(M2MBase, test_handle_put_request) 00206 { 00207 m2m_base->test_handle_put_request(); 00208 } 00209 00210 TEST(M2MBase, test_handle_post_request) 00211 { 00212 m2m_base->test_handle_post_request(); 00213 } 00214 00215 TEST(M2MBase, test_memory_alloc) 00216 { 00217 m2m_base->test_memory_alloc(); 00218 } 00219 00220 TEST(M2MBase, test_memory_free) 00221 { 00222 m2m_base->test_memory_free(); 00223 } 00224 00225 TEST(M2MBase, test_report_handler) 00226 { 00227 m2m_base->test_report_handler(); 00228 } 00229 00230 TEST(M2MBase, test_observation_handler) 00231 { 00232 m2m_base->test_observation_handler(); 00233 } 00234 00235 TEST(M2MBase, test_id_number) 00236 { 00237 m2m_base->test_id_number(); 00238 } 00239 00240 TEST(M2MBase, test_set_register_uri) 00241 { 00242 m2m_base->test_set_register_uri(); 00243 } 00244 00245 TEST(M2MBase, test_register_uri) 00246 { 00247 m2m_base->test_register_uri(); 00248 } 00249 TEST(M2MBase, test_set_observation_number) 00250 { 00251 m2m_base->test_set_observation_number(); 00252 } 00253 00254 TEST(M2MBase, test_set_max_age) 00255 { 00256 m2m_base->test_set_max_age(); 00257 } 00258 00259 TEST(M2MBase, test_max_age) 00260 { 00261 m2m_base->test_max_age(); 00262 } 00263 00264 TEST(M2MBase, test_is_under_observation) 00265 { 00266 m2m_base->test_is_under_observation(); 00267 } 00268 00269 TEST(M2MBase, test_value_updated_function) 00270 { 00271 m2m_base->test_value_updated_function(); 00272 }
Generated on Tue Jul 12 2022 12:28:36 by
1.7.2
