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

test_m2mdevice.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_DEVICE_H
00017 #define TEST_M2M_DEVICE_H
00018 
00019 
00020 #include <m2mdevice.h>
00021 
00022 class Callback;
00023 
00024 class Test_M2MDevice
00025 {
00026 public:
00027     Test_M2MDevice();
00028     virtual ~Test_M2MDevice();
00029 
00030     void test_create_resource_instance();
00031 
00032     void test_create_resource_string();
00033 
00034     void test_create_resource_int();
00035 
00036     void test_create_resource_no_param();
00037 
00038     void test_delete_resource();
00039 
00040     void test_delete_resource_instance();
00041 
00042     void test_set_resource_value_int();
00043 
00044     void test_set_resource_value_string();
00045 
00046     void test_resource_value_int();
00047 
00048     void test_resource_value_string();
00049 
00050     void test_is_resource_present();
00051 
00052     void test_per_resource_count();
00053 
00054     void test_total_resource_count();
00055 
00056     M2MDevice* device;
00057     Callback *callback;
00058 };
00059 
00060 #endif // TEST_M2M_DEVICE_H