remove(ERR_LOG);
}
+ g_bCionNotSupported = CheckLightMemoryFeatureSupported();
+
return;
}
return false;
}
+/**
+* @function CheckLightMemoryFeatureSupported
+* @description Check the supported feature for the lite memory value
+* @return true if supported else false
+*/
+bool CheckLightMemoryFeatureSupported() {
+ bool is_supported = false;
+ int ret = system_info_get_custom_bool("com.samsung/featureconf/product.lite_memory.support", &is_supported);
+
+ if (ret == SYSTEM_INFO_ERROR_NONE && is_supported) {
+ return true;
+ }
+
+ return false;
+}
+
/** @} */
#include <app_manager.h>
#include <app_control.h>
#include <app.h>
+#include <system_info.h>
#define API_NAMESPACE "CION_ITC"
#define TIMEOUT_CB 60000
*/
#define START_TEST {\
FPRINTF("[Line : %d][%s] Starting test : %s\\n", __LINE__, API_NAMESPACE, __FUNCTION__);\
+ if(g_bCionNotSupported)\
+ {\
+ FPRINTF("[Line : %d][%s] Feature =%s not supported :success ", __LINE__, API_NAMESPACE, API_NAMESPACE);\
+ return 0;\
+ }\
}
#define START_TEST_PAYLOAD {\
FPRINTF("[Line : %d][%s] Starting test : %s\\n", __LINE__, API_NAMESPACE, __FUNCTION__);\
+ if(g_bCionNotSupported)\
+ {\
+ FPRINTF("[Line : %d][%s] Feature =%s not supported :success ", __LINE__, API_NAMESPACE, API_NAMESPACE);\
+ return 0;\
+ }\
if ( !g_bCionPayloadCreation )\
-{\
- FPRINTF("[Line : %d][%s] Precondition of cion failed so leaving test\\n", __LINE__, API_NAMESPACE);\
- return 1;\
-}\
+ {\
+ FPRINTF("[Line : %d][%s] Precondition of cion failed so leaving test\\n", __LINE__, API_NAMESPACE);\
+ return 1;\
+ }\
}
#define RUN_POLLING_LOOP {\
bool g_bCallbackCalled;
gboolean Timeout(gpointer data);
char *CionGetError(int nResult);
+bool g_bCionNotSupported;
+bool CheckLightMemoryFeatureSupported();
+
/** @} */
#endif //_ITS_CION_COMMON_H_
remove(ERR_LOG);
}
+ g_bCionNotSupported = CheckLightMemoryFeatureSupported();
+
return;
}
{
remove(ERR_LOG);
}
+
+ g_bCionNotSupported = CheckLightMemoryFeatureSupported();
+ if (g_bCionNotSupported)
+ return;
+
int nRetVal = -1;
if (connected)
return;
{
remove(ERR_LOG);
}
+
+ g_bCionNotSupported = CheckLightMemoryFeatureSupported();
+ if (g_bCionNotSupported)
+ return;
+
int nRetVal = -1;
nRetVal = cion_payload_create(&g_hPayload, CION_PAYLOAD_TYPE_DATA);
if (nRetVal != CION_ERROR_NONE)
{
remove(ERR_LOG);
}
+
+ g_bCionNotSupported = CheckLightMemoryFeatureSupported();
+ if (g_bCionNotSupported) {
+ return;
+ }
+
int nRetVal = -1;
nRetVal = cion_server_create(&g_hServer, "ITs_cion_peer_info_startup","ITs_cion_peer_info_startup", NULL);
if (nRetVal != CION_ERROR_NONE)
}
/** @} */
-/** @} */
\ No newline at end of file
+/** @} */
remove(ERR_LOG);
}
+ g_bCionNotSupported = CheckLightMemoryFeatureSupported();
+ if (g_bCionNotSupported)
+ return;
+
return;
}
nRetVal = cion_security_destroy(hSecurity);
PRINT_RESULT_NORETURN(CION_ERROR_NONE, nRetVal, "cion_security_destroy", CionGetError(nRetVal));
return 1;
- }
+ }
FREE_MEMORY(pszGetPath);
nRetVal = cion_security_destroy(hSecurity);
PRINT_RESULT_NORETURN(CION_ERROR_NONE, nRetVal, "cion_security_destroy", CionGetError(nRetVal));
nRetVal = cion_security_destroy(hSecurity);
PRINT_RESULT_NORETURN(CION_ERROR_NONE, nRetVal, "cion_security_destroy", CionGetError(nRetVal));
return 1;
- }
+ }
FREE_MEMORY(pszGetPath);
nRetVal = cion_security_destroy(hSecurity);
PRINT_RESULT_NORETURN(CION_ERROR_NONE, nRetVal, "cion_security_destroy", CionGetError(nRetVal));
remove(ERR_LOG);
}
+ g_bCionNotSupported = CheckLightMemoryFeatureSupported();
+ if (g_bCionNotSupported)
+ return;
+
return;
}
utc-cion-payload.c
utc-cion-payload_async_result.c
utc-cion-peer_info.c
+ utc-cion-common.c
)
PKG_CHECK_MODULES(${CAPI_LIB} REQUIRED
//
#include "assert.h"
#include "assert_common.h"
+#include "utc-cion-common.h"
#include <cion.h>
#include <dlog.h>
void utc_cion_client_startup(void)
{
+ g_bCionNotSupported = CheckLightMemoryFeatureSupported();
}
void utc_cion_client_cleanup(void)
*/
int utc_cion_client_create_p(void)
{
+ START_TEST;
int ret;
cion_client_h client;
*/
int utc_cion_client_create_n(void)
{
+ START_TEST;
int ret;
cion_client_h client = NULL;
*/
int utc_cion_client_destroy_p(void)
{
+ START_TEST;
int ret;
cion_client_h client;
*/
int utc_cion_client_destroy_n(void)
{
+ START_TEST;
int ret;
ret = cion_client_destroy(NULL);
*/
int utc_cion_client_try_discovery_p(void)
{
+ START_TEST;
int ret;
cion_client_h client;
*/
int utc_cion_client_try_discovery_n(void)
{
+ START_TEST;
int ret;
cion_client_h client = (cion_client_h)1;
*/
int utc_cion_client_stop_discovery_p(void)
{
+ START_TEST;
int ret;
cion_client_h client;
*/
int utc_cion_client_stop_discovery_n(void)
{
+ START_TEST;
int ret;
cion_client_h client = (cion_client_h)1;
*/
int utc_cion_client_connect_p(void)
{
+ START_TEST;
int ret;
cion_client_h client;
cion_server_h server;
*/
int utc_cion_client_connect_n(void)
{
+ START_TEST;
int ret;
cion_client_h client = (cion_client_h)1;
cion_peer_info_h peer = (cion_peer_info_h)1;
*/
int utc_cion_client_disconnect_p(void)
{
+ START_TEST;
int ret;
cion_server_h server;
struct cbdata cbdata = { 0 };
*/
int utc_cion_client_disconnect_n(void)
{
+ START_TEST;
int ret;
ret = cion_client_disconnect(NULL);
*/
int utc_cion_client_send_data_p(void)
{
+ START_TEST;
int ret;
cion_client_h client;
cion_server_h server;
*/
int utc_cion_client_send_data_n(void)
{
+ START_TEST;
int ret;
cion_client_h client = (cion_client_h)1;
unsigned char data[] = { 0 };
*/
int utc_cion_client_send_payload_async_p(void)
{
+ START_TEST;
int ret;
cion_client_h client;
cion_server_h server;
*/
int utc_cion_client_send_payload_async_n(void)
{
+ START_TEST;
int ret;
cion_client_h client = (cion_client_h)1;
cion_payload_h payload = (cion_payload_h)1;
*/
int utc_cion_client_add_connection_result_cb_p(void)
{
+ START_TEST;
int ret;
cion_client_h client;
*/
int utc_cion_client_add_connection_result_cb_n(void)
{
+ START_TEST;
int ret;
cion_client_h client = (cion_client_h)1;
*/
int utc_cion_client_remove_connection_result_cb_p(void)
{
+ START_TEST;
int ret;
cion_client_h client;
*/
int utc_cion_client_remove_connection_result_cb_n(void)
{
+ START_TEST;
int ret;
cion_client_h client = (cion_client_h)1;
*/
int utc_cion_client_add_payload_received_cb_p(void)
{
+ START_TEST;
int ret;
cion_client_h client;
*/
int utc_cion_client_add_payload_received_cb_n(void)
{
+ START_TEST;
int ret;
cion_client_h client = (cion_client_h)1;
*/
int utc_cion_client_remove_payload_received_cb_p(void)
{
+ START_TEST;
int ret;
cion_client_h client;
*/
int utc_cion_client_remove_payload_received_cb_n(void)
{
+ START_TEST;
int ret;
cion_client_h client = (cion_client_h)1;
*/
int utc_cion_client_add_disconnected_cb_p(void)
{
+ START_TEST;
int ret;
cion_client_h client;
*/
int utc_cion_client_add_disconnected_cb_n(void)
{
+ START_TEST;
int ret;
cion_client_h client = (cion_client_h)1;
*/
int utc_cion_client_remove_disconnected_cb_p(void)
{
+ START_TEST;
int ret;
cion_client_h client;
*/
int utc_cion_client_remove_disconnected_cb_n(void)
{
+ START_TEST;
int ret;
cion_client_h client = (cion_client_h)1;
--- /dev/null
+//
+// Copyright (c) 2024 Samsung Electronics Co., Ltd.
+//
+// Licensed under the Apache License, Version 2.0 (the License);
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+//
+#include "utc-cion-common.h"
+
+/**
+* @function CheckLightMemoryFeatureSupported
+* @description Check the supported feature for the lite memory value
+* @return true if supported else false
+*/
+bool CheckLightMemoryFeatureSupported() {
+ bool is_supported = false;
+ int ret = system_info_get_custom_bool("com.samsung/featureconf/product.lite_memory.support", &is_supported);
+
+ if (ret == SYSTEM_INFO_ERROR_NONE && is_supported) {
+ return true;
+ }
+
+ return false;
+}
--- /dev/null
+//
+// Copyright (c) 2024 Samsung Electronics Co., Ltd.
+//
+// Licensed under the Apache License, Version 2.0 (the License);
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+//
+#ifndef _UTC_CION_COMMON_H_
+#define _UTC_CION_COMMON_H_
+
+//Add test package related includes here
+#include "tct_common.h"
+#include <cion.h>
+#include <system_info.h>
+
+#define API_NAMESPACE "CION_UTC"
+
+#define START_TEST {\
+ FPRINTF("[Line : %d][%s] Starting test : %s\\n", __LINE__, API_NAMESPACE, __FUNCTION__);\
+ if(g_bCionNotSupported)\
+ {\
+ FPRINTF("[Line : %d][%s] Feature =%s not supported :success ", __LINE__, API_NAMESPACE, API_NAMESPACE);\
+ return 0;\
+ }\
+}
+
+bool g_bCionNotSupported;
+bool CheckLightMemoryFeatureSupported();
+
+
+#endif //_UTC_CION_COMMON_H_
//
#include "assert.h"
#include "assert_common.h"
+#include "utc-cion-common.h"
#include <cion.h>
#include <dlog.h>
void utc_cion_connection_result_startup(void)
{
+ g_bCionNotSupported = CheckLightMemoryFeatureSupported();
+ if (g_bCionNotSupported)
+ return;
+
int ret;
if (connected)
*/
int utc_cion_connection_result_get_status_p(void)
{
+ START_TEST;
int ret;
assert_eq(get_status_test_result, CION_ERROR_NONE);
*/
int utc_cion_connection_result_get_status_n(void)
{
+ START_TEST;
int ret;
cion_connection_result_h result = (cion_connection_result_h)1;
cion_connection_status_e status;
*/
int utc_cion_connection_result_get_reason_p(void)
{
+ START_TEST;
int ret;
assert_eq(get_reason_test_result, CION_ERROR_NONE);
*/
int utc_cion_connection_result_get_reason_n(void)
{
+ START_TEST;
int ret;
cion_connection_result_h result = (cion_connection_result_h)1;
char *reason = NULL;
//
#include "assert.h"
#include "assert_common.h"
+#include "utc-cion-common.h"
#include <cion.h>
void utc_cion_group_startup(void)
{
+ g_bCionNotSupported = CheckLightMemoryFeatureSupported();
}
void utc_cion_group_cleanup(void)
*/
int utc_cion_group_create_p(void)
{
+ START_TEST;
int ret;
cion_group_h group;
*/
int utc_cion_group_create_n(void)
{
+ START_TEST;
int ret;
cion_group_h group = NULL;
*/
int utc_cion_group_destroy_p(void)
{
+ START_TEST;
int ret;
cion_group_h group;
*/
int utc_cion_group_destroy_n(void)
{
+ START_TEST;
int ret;
ret = cion_group_destroy(NULL);
*/
int utc_cion_group_subscribe_p(void)
{
+ START_TEST;
int ret;
cion_group_h group;
*/
int utc_cion_group_subscribe_n(void)
{
+ START_TEST;
int ret;
ret = cion_group_subscribe(NULL);
*/
int utc_cion_group_unsubscribe_p(void)
{
+ START_TEST;
int ret;
cion_group_h group;
*/
int utc_cion_group_unsubscribe_n(void)
{
+ START_TEST;
int ret;
cion_group_h group = (cion_group_h)1;
*/
int utc_cion_group_publish_p(void)
{
+ START_TEST;
int ret;
cion_group_h group;
cion_payload_h payload;
*/
int utc_cion_group_publish_n(void)
{
+ START_TEST;
int ret;
cion_group_h group = (cion_group_h)1;
cion_payload_h payload = (cion_payload_h)1;
//
#include "assert.h"
#include "assert_common.h"
+#include "utc-cion-common.h"
#include <app_common.h>
#include <cion.h>
void utc_cion_payload_startup(void)
{
+ g_bCionNotSupported = CheckLightMemoryFeatureSupported();
+ if (g_bCionNotSupported)
+ return;
+
int ret;
ret = cion_payload_create(&payload, CION_PAYLOAD_TYPE_DATA);
void utc_cion_payload_cleanup(void)
{
- cion_payload_destroy(payload);
- payload = NULL;
+ if (payload) {
+ cion_payload_destroy(payload);
+ payload = NULL;
+ }
}
/**
*/
int utc_cion_payload_create_p(void)
{
+ START_TEST;
int ret;
cion_payload_h datapayload = NULL;
*/
int utc_cion_payload_create_n(void)
{
+ START_TEST;
int ret;
ret = cion_payload_create(NULL, CION_PAYLOAD_TYPE_DATA);
*/
int utc_cion_payload_destroy_p(void)
{
+ START_TEST;
int ret;
cion_payload_h datapayload = NULL;
*/
int utc_cion_payload_destroy_n(void)
{
+ START_TEST;
int ret;
ret = cion_payload_destroy(NULL);
*/
int utc_cion_payload_get_type_p(void)
{
+ START_TEST;
int ret;
cion_payload_type_e type;
*/
int utc_cion_payload_get_type_n(void)
{
+ START_TEST;
int ret;
cion_payload_type_e type;
*/
int utc_cion_payload_get_data_p(void)
{
+ START_TEST;
int ret;
unsigned char data[] = "utc_cion_payload_get_data_p";
unsigned char *get_data = NULL;
*/
int utc_cion_payload_get_data_n(void)
{
+ START_TEST;
int ret;
unsigned char *data;
unsigned int data_size;
*/
int utc_cion_payload_set_data_p(void)
{
+ START_TEST;
int ret;
unsigned char data[] = "utc_cion_payload_set_data_p";
*/
int utc_cion_payload_set_data_n(void)
{
+ START_TEST;
int ret;
unsigned char data[] = "utc_cion_payload_set_data_n";
*/
int utc_cion_payload_save_as_file_p(void)
{
+ START_TEST;
int ret;
cion_client_h client;
cion_server_h server;
*/
int utc_cion_payload_save_as_file_n(void)
{
+ START_TEST;
int ret;
ret = cion_payload_save_as_file(NULL, "path");
*/
int utc_cion_payload_get_received_file_name_p(void)
{
+ START_TEST;
int ret;
cion_client_h client;
cion_server_h server;
*/
int utc_cion_payload_get_received_file_name_n(void)
{
+ START_TEST;
int ret;
char *file_name;
*/
int utc_cion_payload_get_received_bytes_p(void)
{
+ START_TEST;
int ret;
cion_client_h client;
cion_server_h server;
*/
int utc_cion_payload_get_received_bytes_n(void)
{
+ START_TEST;
int ret;
uint64_t bytes;
*/
int utc_cion_payload_get_total_bytes_p(void)
{
+ START_TEST;
int ret;
cion_client_h client;
cion_server_h server;
*/
int utc_cion_payload_get_total_bytes_n(void)
{
+ START_TEST;
int ret;
uint64_t bytes;
*/
int utc_cion_payload_set_file_path_p(void)
{
+ START_TEST;
int ret;
cion_payload_h file_payload;
char *res_path;
*/
int utc_cion_payload_set_file_path_n(void)
{
+ START_TEST;
int ret;
ret = cion_payload_set_file_path(NULL, "path");
*/
int utc_cion_payload_get_payload_id_p(void)
{
+ START_TEST;
int ret;
char *payload_id = NULL;
*/
int utc_cion_payload_get_payload_id_n(void)
{
+ START_TEST;
int ret;
char *payload_id;
//
#include "assert.h"
#include "assert_common.h"
+#include "utc-cion-common.h"
#include <cion.h>
#include <dlog.h>
{
int ret;
+ g_bCionNotSupported = CheckLightMemoryFeatureSupported();
+ if (g_bCionNotSupported)
+ return;
+
if (connected)
return;
*/
int utc_cion_payload_async_result_clone_p(void)
{
+ START_TEST;
int ret;
cion_payload_h payload;
cion_payload_async_result_h result = NULL;
*/
int utc_cion_payload_async_result_clone_n(void)
{
+ START_TEST;
int ret;
cion_payload_async_result_h result = (cion_payload_async_result_h)1;
cion_payload_async_result_h clone;
*/
int utc_cion_payload_async_result_destroy_p(void)
{
+ START_TEST;
int ret;
cion_payload_h payload;
cion_payload_async_result_h result = NULL;
*/
int utc_cion_payload_async_result_destroy_n(void)
{
+ START_TEST;
int ret;
ret = cion_payload_async_result_destroy(NULL);
*/
int utc_cion_payload_async_result_get_peer_info_p(void)
{
+ START_TEST;
int ret;
cion_payload_h payload;
cion_payload_async_result_h result = NULL;
*/
int utc_cion_payload_async_result_get_peer_info_n(void)
{
+ START_TEST;
int ret;
cion_payload_async_result_h result = (cion_payload_async_result_h)1;
cion_peer_info_h peer;
*/
int utc_cion_payload_async_result_get_payload_id_p(void)
{
+ START_TEST;
int ret;
cion_payload_h payload;
cion_payload_async_result_h result = NULL;
*/
int utc_cion_payload_async_result_get_payload_id_n(void)
{
+ START_TEST;
int ret;
cion_payload_async_result_h result = (cion_payload_async_result_h)1;
char *payload_id = NULL;
//
#include "assert.h"
#include "assert_common.h"
+#include "utc-cion-common.h"
#include <cion.h>
#include <dlog.h>
void utc_cion_peer_info_startup(void)
{
+ g_bCionNotSupported = CheckLightMemoryFeatureSupported();
+ if (g_bCionNotSupported)
+ return;
+
int ret;
if (discovered)
*/
int utc_cion_peer_info_clone_p(void)
{
+ START_TEST;
int ret;
cion_peer_info_h clone;
*/
int utc_cion_peer_info_clone_n(void)
{
+ START_TEST;
int ret;
cion_peer_info_h clone;
*/
int utc_cion_peer_info_destroy_p(void)
{
+ START_TEST;
int ret;
if (!discovered)
*/
int utc_cion_peer_info_destroy_n(void)
{
+ START_TEST;
int ret;
ret = cion_peer_info_destroy(NULL);
*/
int utc_cion_peer_info_get_device_id_p(void)
{
+ START_TEST;
int ret;
char *device_id = NULL;
*/
int utc_cion_peer_info_get_device_id_n(void)
{
+ START_TEST;
int ret;
char *device_id;
*/
int utc_cion_peer_info_get_device_name_p(void)
{
+ START_TEST;
int ret;
char *device_name = NULL;
*/
int utc_cion_peer_info_get_device_name_n(void)
{
+ START_TEST;
int ret;
char *device_name;
*/
int utc_cion_peer_info_get_device_platform_p(void)
{
+ START_TEST;
int ret;
char *device_platform = NULL;
*/
int utc_cion_peer_info_get_device_platform_n(void)
{
+ START_TEST;
int ret;
char *device_platform;
*/
int utc_cion_peer_info_get_device_platform_version_p(void)
{
+ START_TEST;
int ret;
char *device_platform_version = NULL;
*/
int utc_cion_peer_info_get_device_platform_version_n(void)
{
+ START_TEST;
int ret;
char *device_platform_version;
*/
int utc_cion_peer_info_get_device_type_p(void)
{
+ START_TEST;
int ret;
char *device_type = NULL;
*/
int utc_cion_peer_info_get_device_type_n(void)
{
+ START_TEST;
int ret;
char *device_type;
*/
int utc_cion_peer_info_get_app_id_p(void)
{
+ START_TEST;
int ret;
char *app_id = NULL;
*/
int utc_cion_peer_info_get_app_id_n(void)
{
+ START_TEST;
int ret;
char *app_id;
*/
int utc_cion_peer_info_get_app_version_p(void)
{
+ START_TEST;
int ret;
char *app_version = NULL;
*/
int utc_cion_peer_info_get_app_version_n(void)
{
+ START_TEST;
int ret;
char *app_version;
*/
int utc_cion_peer_info_get_uuid_p(void)
{
+ START_TEST;
int ret;
char *uuid = NULL;
*/
int utc_cion_peer_info_get_uuid_n(void)
{
+ START_TEST;
int ret;
char *uuid;
*/
int utc_cion_peer_info_get_display_name_p(void)
{
+ START_TEST;
int ret;
char *display_name = NULL;
*/
int utc_cion_peer_info_get_display_name_n(void)
{
+ START_TEST;
int ret;
char *display_name;
//
#include "assert.h"
#include "assert_common.h"
+#include "utc-cion-common.h"
#include <cion.h>
#include <dlog.h>
void utc_cion_security_startup(void)
{
+ g_bCionNotSupported = CheckLightMemoryFeatureSupported();
}
void utc_cion_security_cleanup(void)
*/
int utc_cion_security_create_p(void)
{
+\r START_TEST;
int ret;
cion_security_h security;
*/
int utc_cion_security_create_n(void)
{
+ START_TEST;
int ret;
ret = cion_security_create(NULL);
*/
int utc_cion_security_destory_p(void)
{
+ START_TEST;
int ret;
cion_security_h security;
*/
int utc_cion_security_destory_n(void)
{
+ START_TEST;
int ret;
ret = cion_security_destroy(NULL);
*/
int utc_cion_security_set_ca_path_p(void)
{
+ START_TEST;
int ret;
cion_security_h security;
*/
int utc_cion_security_set_ca_path_n(void)
{
+ START_TEST;
int ret;
cion_security_h security = (cion_security_h)1;
*/
int utc_cion_security_set_cert_path_p(void)
{
+ START_TEST;
int ret;
cion_security_h security;
*/
int utc_cion_security_set_cert_path_n(void)
{
+ START_TEST;
int ret;
cion_security_h security = (cion_security_h)1;
*/
int utc_cion_security_set_private_key_path_p(void)
{
+ START_TEST;
int ret;
cion_security_h security;
*/
int utc_cion_security_set_private_key_path_n(void)
{
+ START_TEST;
int ret;
cion_security_h security = (cion_security_h)1;
*/
int utc_cion_security_get_ca_path_p(void)
{
+ START_TEST;
int ret;
cion_security_h security;
char *path;
*/
int utc_cion_security_get_ca_path_n(void)
{
+ START_TEST;
int ret;
cion_security_h security = (cion_security_h)1;
char *path;
*/
int utc_cion_security_get_cert_path_p(void)
{
+ START_TEST;
int ret;
cion_security_h security;
char *path;
*/
int utc_cion_security_get_cert_path_n(void)
{
+ START_TEST;
int ret;
cion_security_h security = (cion_security_h)1;
char *path;
*/
int utc_cion_security_get_private_key_path_p(void)
{
+ START_TEST;
int ret;
cion_security_h security;
char *path;
*/
int utc_cion_security_get_private_key_path_n(void)
{
+ START_TEST;
int ret;
cion_security_h security = (cion_security_h)1;
char *path;
//
#include "assert.h"
#include "assert_common.h"
+#include "utc-cion-common.h"
#include <cion.h>
#include <dlog.h>
void utc_cion_server_startup(void)
{
+ g_bCionNotSupported = CheckLightMemoryFeatureSupported();
}
void utc_cion_server_cleanup(void)
*/
int utc_cion_server_create_p(void)
{
+\r START_TEST;
int ret;
cion_server_h server;
*/
int utc_cion_server_create_n(void)
{
+ START_TEST;
int ret;
cion_server_h server = NULL;
*/
int utc_cion_server_destroy_p(void)
{
+ START_TEST;
int ret;
cion_server_h server;
*/
int utc_cion_server_destroy_n(void)
{
+ START_TEST;
int ret;
ret = cion_server_destroy(NULL);
*/
int utc_cion_server_listen_p(void)
{
+ START_TEST;
int ret;
cion_server_h server;
*/
int utc_cion_server_listen_n(void)
{
+ START_TEST;
int ret;
cion_server_h server = (cion_server_h)1;
*/
int utc_cion_server_stop_p(void)
{
+ START_TEST;
int ret;
cion_server_h server;
*/
int utc_cion_server_stop_n(void)
{
+ START_TEST;
int ret;
cion_server_h server = (cion_server_h)1;
*/
int utc_cion_server_disconnect_p(void)
{
+ START_TEST;
int ret;
cion_client_h client;
cion_server_h server;
*/
int utc_cion_server_disconnect_n(void)
{
+ START_TEST;
int ret;
cion_server_h server = (cion_server_h)1;
cion_peer_info_h peer = (cion_peer_info_h)1;
*/
int utc_cion_server_send_payload_async_p(void)
{
+ START_TEST;
int ret;
cion_server_h server;
cion_client_h client;
*/
int utc_cion_server_send_payload_async_n(void)
{
+ START_TEST;
int ret;
cion_server_h server = (cion_server_h)1;
cion_peer_info_h peer = (cion_peer_info_h)1;
*/
int utc_cion_server_foreach_connected_peer_info_p(void)
{
+ START_TEST;
int ret;
cion_server_h server;
*/
int utc_cion_server_foreach_connected_peer_info_n(void)
{
+ START_TEST;
int ret;
cion_server_h server = (cion_server_h)1;
*/
int utc_cion_server_add_connection_result_cb_p(void)
{
+ START_TEST;
int ret;
cion_server_h server;
*/
int utc_cion_server_add_connection_result_cb_n(void)
{
+ START_TEST;
int ret;
cion_server_h server = (cion_server_h)1;
*/
int utc_cion_server_remove_connection_result_cb_p(void)
{
+ START_TEST;
int ret;
cion_server_h server;
*/
int utc_cion_server_remove_connection_result_cb_n(void)
{
+ START_TEST;
int ret;
cion_server_h server = (cion_server_h)1;
*/
int utc_cion_server_add_payload_received_cb_p(void)
{
+ START_TEST;
int ret;
cion_server_h server;
*/
int utc_cion_server_add_payload_received_cb_n(void)
{
+ START_TEST;
int ret;
cion_server_h server = (cion_server_h)1;
*/
int utc_cion_server_remove_payload_received_cb_p(void)
{
+ START_TEST;
int ret;
cion_server_h server;
*/
int utc_cion_server_remove_payload_received_cb_n(void)
{
+ START_TEST;
int ret;
cion_server_h server = (cion_server_h)1;
*/
int utc_cion_server_set_data_received_cb_p(void)
{
+ START_TEST;
int ret;
cion_server_h server;
*/
int utc_cion_server_set_data_received_cb_n(void)
{
+ START_TEST;
int ret;
cion_server_h server = (cion_server_h)1;
*/
int utc_cion_server_unset_data_received_cb_p(void)
{
+ START_TEST;
int ret;
cion_server_h server;
*/
int utc_cion_server_unset_data_received_cb_n(void)
{
+ START_TEST;
int ret;
ret = cion_server_unset_data_received_cb(NULL);
*/
int utc_cion_server_add_disconnected_cb_p(void)
{
+ START_TEST;
int ret;
cion_server_h server;
*/
int utc_cion_server_add_disconnected_cb_n(void)
{
+ START_TEST;
int ret;
cion_server_h server = (cion_server_h)1;
*/
int utc_cion_server_remove_disconnected_cb_p(void)
{
+ START_TEST;
int ret;
cion_server_h server;
*/
int utc_cion_server_remove_disconnected_cb_n(void)
{
+ START_TEST;
int ret;
cion_server_h server = (cion_server_h)1;
*/
int utc_cion_server_accept_p(void)
{
+ START_TEST;
int ret;
cion_server_h server;
cion_client_h client;
*/
int utc_cion_server_accept_n(void)
{
+ START_TEST;
int ret;
cion_server_h server = (cion_server_h)1;
cion_peer_info_h peer = (cion_peer_info_h)1;
*/
int utc_cion_server_reject_p(void)
{
+ START_TEST;
int ret;
cion_server_h server;
cion_client_h client;
*/
int utc_cion_server_reject_n(void)
{
+ START_TEST;
int ret;
cion_server_h server = (cion_server_h)1;
cion_peer_info_h peer = (cion_peer_info_h)1;
*/
int utc_cion_server_set_display_name_p(void)
{
+ START_TEST;
int ret;
cion_server_h server;
*/
int utc_cion_server_set_display_name_n(void)
{
+ START_TEST;
int ret;
ret = cion_server_set_display_name(NULL,
*/
int utc_cion_server_set_on_demand_launch_enabled_p(void)
{
+ START_TEST;
int ret;
cion_server_h server;
*/
int utc_cion_server_set_on_demand_launch_enabled_n(void)
{
+ START_TEST;
int ret;
ret = cion_server_set_on_demand_launch_enabled(NULL, true);