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 m2mdevicetest.cpp Source File

m2mdevicetest.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_m2mdevice.h"
00019 
00020 TEST_GROUP(M2MDevice)
00021 {
00022   Test_M2MDevice* m2m_device;
00023 
00024   void setup()
00025   {
00026     m2m_device = new Test_M2MDevice();
00027   }
00028   void teardown()
00029   {
00030     delete m2m_device;
00031   }
00032 };
00033 
00034 TEST(M2MDevice, Create)
00035 {
00036     CHECK(m2m_device != NULL);
00037 }
00038 
00039 TEST(M2MDevice, create_resource_instance)
00040 {
00041     m2m_device->test_create_resource_instance();
00042 }
00043 
00044 TEST(M2MDevice, create_resource_string)
00045 {
00046     m2m_device->test_create_resource_string();
00047 }
00048 
00049 TEST(M2MDevice, create_resource_int)
00050 {
00051     m2m_device->test_create_resource_int();
00052 }
00053 
00054 TEST(M2MDevice, create_resource_no_param)
00055 {
00056     m2m_device->test_create_resource_no_param();
00057 }
00058 
00059 TEST(M2MDevice, delete_resource)
00060 {
00061     m2m_device->test_delete_resource();
00062 }
00063 
00064 TEST(M2MDevice, delete_resource_instance)
00065 {
00066     m2m_device->test_delete_resource_instance();
00067 }
00068 
00069 TEST(M2MDevice, set_resource_value_int)
00070 {
00071     m2m_device->test_set_resource_value_int();
00072 }
00073 
00074 TEST(M2MDevice, set_resource_value_string)
00075 {
00076     m2m_device->test_set_resource_value_string();
00077 }
00078 
00079 TEST(M2MDevice, resource_value_int)
00080 {
00081     m2m_device->test_resource_value_int();
00082 }
00083 
00084 TEST(M2MDevice, resource_value_string)
00085 {
00086     m2m_device->test_resource_value_string();
00087 }
00088 
00089 TEST(M2MDevice, is_resource_present)
00090 {
00091     m2m_device->test_is_resource_present();
00092 }
00093 
00094 TEST(M2MDevice, per_resource_count)
00095 {
00096     m2m_device->test_per_resource_count();
00097 }
00098 
00099 TEST(M2MDevice, total_resource_count)
00100 {
00101     m2m_device->test_total_resource_count();
00102 }