joey shelton / LED_Demo

Dependencies:   MAX44000 PWM_Tone_Library nexpaq_mdk

Fork of LED_Demo by Maxim nexpaq

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers test_m2mnsdlinterface.h Source File

test_m2mnsdlinterface.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_NSDL_INTERFACE_H
00017 #define TEST_M2M_NSDL_INTERFACE_H
00018 
00019 #include "m2mnsdlinterface.h"
00020 #include "common_stub.h"
00021 
00022 class TestObserver;
00023 
00024 class Test_M2MNsdlInterface
00025 {
00026 public:
00027     Test_M2MNsdlInterface();
00028 
00029     virtual ~Test_M2MNsdlInterface();
00030 
00031     void test_create_endpoint();
00032 
00033     void test_delete_endpoint();
00034 
00035     void test_create_nsdl_list_structure();
00036 
00037     void test_delete_nsdl_resource();
00038 
00039     void test_create_bootstrap_resource();
00040 
00041     void test_send_register_message();
00042 
00043     void test_send_update_registration();
00044 
00045     void test_send_unregister_message();
00046 
00047     void test_memory_alloc();
00048 
00049     void test_memory_free();
00050 
00051     void test_send_to_server_callback();
00052 
00053     void test_received_from_server_callback();
00054 
00055     void test_resource_callback();
00056 
00057     void test_resource_callback_get();
00058 
00059     void test_resource_callback_put();
00060 
00061     void test_resource_callback_post();
00062 
00063     void test_resource_callback_delete();
00064 
00065     void test_resource_callback_reset();
00066 
00067     void test_bootstrap_done_callback();
00068 
00069     void test_process_received_data();
00070 
00071     void test_stop_timers();
00072 
00073     void test_timer_expired();
00074 
00075     void test_observation_to_be_sent();
00076 
00077     void test_resource_to_be_deleted();
00078 
00079     void test_value_updated();
00080 
00081     void test_find_resource();
00082 
00083     void test_remove_object();
00084 
00085     void test_add_object_to_list(); //Special: Would be too difficult to test in normal ways
00086 
00087     void test_send_delayed_response();
00088 
00089     void test_get_nsdl_handle();
00090 
00091     void test_endpoint_name();
00092 
00093     M2MNsdlInterface* nsdl;
00094 
00095     TestObserver *observer;
00096 };
00097 
00098 #endif // TEST_M2M_NSDL_INTERFACE_H