Kenji Arai / mbed-os_TYBLE16

Dependents:   TYBLE16_simple_data_logger TYBLE16_MP3_Air

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers coap_connection_handlertest.cpp Source File

coap_connection_handlertest.cpp

00001 /*
00002  * Copyright (c) 2015-2017, Arm Limited and affiliates.
00003  * SPDX-License-Identifier: Apache-2.0
00004  *
00005  * Licensed under the Apache License, Version 2.0 (the "License");
00006  * you may not use this file except in compliance with the License.
00007  * You may obtain a copy of the License at
00008  *
00009  *     http://www.apache.org/licenses/LICENSE-2.0
00010  *
00011  * Unless required by applicable law or agreed to in writing, software
00012  * distributed under the License is distributed on an "AS IS" BASIS,
00013  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
00014  * See the License for the specific language governing permissions and
00015  * limitations under the License.
00016  */
00017 #include "CppUTest/TestHarness.h"
00018 #include "test_coap_connection_handler.h"
00019 
00020 TEST_GROUP(coap_connection_handler)
00021 {
00022     void setup() {
00023     }
00024 
00025     void teardown() {
00026     }
00027 };
00028 
00029 TEST(coap_connection_handler, test_connection_handler_create)
00030 {
00031     CHECK(test_connection_handler_create());
00032 }
00033 
00034 TEST(coap_connection_handler, test_connection_handler_destroy)
00035 {
00036     CHECK(test_connection_handler_destroy());
00037 }
00038 
00039 TEST(coap_connection_handler, test_coap_connection_handler_open_connection)
00040 {
00041     CHECK(test_coap_connection_handler_open_connection());
00042 }
00043 
00044 TEST(coap_connection_handler, test_coap_connection_handler_send_data)
00045 {
00046     CHECK(test_coap_connection_handler_send_data());
00047 }
00048 
00049 TEST(coap_connection_handler, test_coap_connection_handler_virtual_recv)
00050 {
00051     CHECK(test_coap_connection_handler_virtual_recv());
00052 }
00053 
00054 TEST(coap_connection_handler, test_coap_connection_handler_socket_belongs_to)
00055 {
00056     CHECK(test_coap_connection_handler_socket_belongs_to());
00057 }
00058 
00059 TEST(coap_connection_handler, test_timer_callbacks)
00060 {
00061     CHECK(test_timer_callbacks());
00062 }
00063 
00064 TEST(coap_connection_handler, test_socket_api_callbacks)
00065 {
00066     CHECK(test_socket_api_callbacks());
00067 }
00068 
00069 TEST(coap_connection_handler, test_security_callbacks)
00070 {
00071     CHECK(test_security_callbacks());
00072 }
00073 
00074 TEST(coap_connection_handler, test_coap_connection_handler_msg_prevalidate_cb_read_and_set)
00075 {
00076     CHECK(test_coap_connection_handler_msg_prevalidate_cb_read_and_set());
00077 }
00078 
00079 TEST(coap_connection_handler, test_coap_connection_handler_find_by_socket_port)
00080 {
00081     CHECK(test_coap_connection_handler_find_by_socket_port());
00082 }
00083