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_m2mresource.h Source File

test_m2mresource.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_RESOURCE_H
00017 #define TEST_M2M_RESOURCE_H
00018 
00019 #include "m2mresource.h"
00020 
00021 class Callback;
00022 class Handler;
00023 
00024 class Test_M2MResource
00025 {
00026 public:
00027 
00028     Test_M2MResource();
00029 
00030     void test_copy_constructor();
00031 
00032     virtual ~Test_M2MResource();
00033 
00034     void test_static_resource();
00035 
00036     void test_base_type();
00037 
00038     void test_muliptle_instances();
00039 
00040     void test_handle_observation_attribute();
00041 
00042     void test_add_resource_instance();
00043 
00044     void test_remove_resource_instance();
00045 
00046     void test_resource_instance();
00047 
00048     void test_resource_instances();
00049 
00050     void test_resource_instance_count();
00051 
00052     void test_add_observation_level();
00053 
00054     void test_remove_observation_level();
00055 
00056     void test_handle_get_request();
00057 
00058     void test_handle_put_request();
00059 
00060     void test_handle_post_request();
00061 
00062     void test_notification_update();
00063 
00064     void test_set_delayed_response();
00065 
00066     void test_send_delayed_post_response();
00067 
00068     void test_get_delayed_token();
00069 
00070     void test_delayed_response();
00071 
00072     void test_execute_params();
00073 
00074     M2MResource* resource;
00075     Callback *callback;
00076 
00077     Handler* handler;
00078 };
00079 
00080 #endif // TEST_M2M_RESOURCE_H