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
test_m2mobjectinstance.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_OBJECT_INSTANCE_H 00017 #define TEST_M2M_OBJECT_INSTANCE_H 00018 00019 #include "m2mobjectinstance.h" 00020 00021 class Handler; 00022 class Callback; 00023 00024 class Test_M2MObjectInstance 00025 { 00026 public: 00027 Test_M2MObjectInstance(); 00028 00029 void test_copy_constructor(); 00030 00031 virtual ~Test_M2MObjectInstance(); 00032 00033 void test_create_static_resource(); 00034 00035 void test_create_static_resource_instance(); 00036 00037 void test_create_dynamic_resource(); 00038 00039 void test_create_dynamic_resource_instance(); 00040 00041 void test_remove_resource(); 00042 00043 void test_remove_resource_instance(); 00044 00045 void test_resource(); 00046 00047 void test_resources(); 00048 00049 void test_resource_count(); 00050 00051 void test_total_resource_count(); 00052 00053 void test_base_type(); 00054 00055 void test_handle_get_request(); 00056 00057 void test_handle_put_request(); 00058 00059 void test_handle_post_request(); 00060 00061 void test_notification_update(); 00062 00063 M2MObjectInstance* object; 00064 00065 Handler* handler; 00066 00067 Callback* callback; 00068 }; 00069 00070 #endif // TEST_M2M_OBJECT_INSTANCE_H
Generated on Tue Jul 12 2022 12:28:54 by
