* @brief Gets the Client Certificate of EAP.
* @since_tizen 6.0
* @remarks This function is valid only if the EAP type is #CONNECTION_ETHERNET_EAP_TYPE_TLS.
- * You must release @a file using free().
+ * You must release @a file using free().
* @param[in] profile The profile handle
* @param[out] file The file path of Client Certificate
* @return 0 on success, otherwise negative error value
* @brief Gets the PAC file of EAP.
* @since_tizen 6.0
* @remarks This function is valid only if the EAP type is #CONNECTION_ETHERNET_EAP_TYPE_FAST.
- * You must release @a file using free().
+ * You must release @a file using free().
* @param[in] profile The profile handle
* @param[out] file The path of PAC file
* @return 0 on success, otherwise negative error value
* @brief Gets the identity of EAP over ethernet.
* @since_tizen 6.0
* @remarks This function is valid only if the EAP type is #CONNECTION_ETHERNET_EAP_TYPE_TLS.
- * You must release @a identity using free().
+ * You must release @a identity using free().
* @param[in] profile The profile handle
* @param[out] identity The identity of ethernet.
* @return 0 on success, otherwise negative error value
* @brief Gets the private key file of EAP.
* @since_tizen 6.0
* @remarks This function is valid only if the EAP type is #CONNECTION_ETHERNET_EAP_TYPE_TLS.
- * You must release @a file using free().
+ * You must release @a file using free().
* @param[in] profile The profile handle
* @param[out] file The file path of private key
* @return 0 on success, otherwise negative error value
* @brief Sets the user name and passphrase of EAP.
* @since_tizen 6.0
* @remarks This function is valid only if the EAP type is #CONNECTION_ETHERNET_EAP_TYPE_MD5,
- * #CONNECTION_ETHERNET_EAP_TYPE_PEAP, #CONNECTION_ETHERNET_EAP_TYPE_TTLS or #CONNECTION_ETHERNET_EAP_TYPE_FAST.
+ * #CONNECTION_ETHERNET_EAP_TYPE_PEAP, #CONNECTION_ETHERNET_EAP_TYPE_TTLS or #CONNECTION_ETHERNET_EAP_TYPE_FAST.
* @param[in] profile The profile handle
* @param[in] user_name The user name
* @param[in] password The password
* @brief Gets the username and password status of EAP.
* @since_tizen 6.0
* @remarks This function is valid only if the EAP type is #CONNECTION_ETHERNET_EAP_TYPE_MD5,
- * #CONNECTION_ETHERNET_EAP_TYPE_PEAP, #CONNECTION_ETHERNET_EAP_TYPE_TTLS or #CONNECTION_ETHERNET_EAP_TYPE_FAST.
- * You must release @a user_name using free().
+ * #CONNECTION_ETHERNET_EAP_TYPE_PEAP, #CONNECTION_ETHERNET_EAP_TYPE_TTLS or #CONNECTION_ETHERNET_EAP_TYPE_FAST.
+ * You must release @a user_name using free().
* @param[in] profile The profile handle
* @param[out] user_name The user name
* @param[out] is_password_set @c true if password is set,
#define CONN_LOCK \
do { \
_connection_lock(); \
- } while(0)
+ } while (0)
#define CONN_UNLOCK \
do { \
_connection_unlock(); \
- } while(0)
+ } while (0)
#define CHECK_FEATURE_SUPPORTED(...) \
do { \
}
//LCOV_EXCL_STOP
-EXPORT_API int connection_get_type(connection_h connection, connection_type_e* type)
+EXPORT_API int connection_get_type(connection_h connection, connection_type_e *type)
{
int rv = 0;
int status = 0;
}
-EXPORT_API int connection_get_cellular_state(connection_h connection, connection_cellular_state_e* state)
+EXPORT_API int connection_get_cellular_state(connection_h connection, connection_cellular_state_e *state)
{
int rv = 0;
int status = 0;
return CONNECTION_ERROR_NONE;
}
-EXPORT_API int connection_get_wifi_state(connection_h connection, connection_wifi_state_e* state)
+EXPORT_API int connection_get_wifi_state(connection_h connection, connection_wifi_state_e *state)
{
CONN_LOCK;
}
EXPORT_API int connection_get_profile_iterator(connection_h connection,
- connection_iterator_type_e type, connection_profile_iterator_h* profile_iterator)
+ connection_iterator_type_e type, connection_profile_iterator_h *profile_iterator)
{
CONN_LOCK;
}
EXPORT_API int connection_profile_iterator_next(connection_profile_iterator_h profile_iterator,
- connection_profile_h* profile)
+ connection_profile_h *profile)
{
CONN_LOCK;
return rv;
}
-EXPORT_API int connection_get_current_profile(connection_h connection, connection_profile_h* profile)
+EXPORT_API int connection_get_current_profile(connection_h connection, connection_profile_h *profile)
{
CONN_LOCK;
net_profile_info_t *profile_info = profile;
net_dev_info_t *net_info = __profile_get_net_info(profile_info);
- if (!net_info || false == __profile_ethernet_validate_eap_passphrase(net_info)) {
+ if (!net_info || false == __profile_ethernet_validate_eap_passphrase(net_info)) {
CONNECTION_LOG(CONNECTION_ERROR, "Invalid operation");
CONN_UNLOCK;
return CONNECTION_ERROR_INVALID_OPERATION;
net_profile_info_t *profile_info = profile;
net_dev_info_t *net_info = __profile_get_net_info(profile_info);
- if (!net_info || false == __profile_ethernet_validate_eap_passphrase(net_info)) {
+ if (!net_info || false == __profile_ethernet_validate_eap_passphrase(net_info)) {
CONNECTION_LOG(CONNECTION_ERROR, "Invalid operation");
CONN_UNLOCK;
return CONNECTION_ERROR_INVALID_OPERATION;
EXPORT_API int connection_profile_set_ethernet_eap_identity(connection_profile_h profile,
const char *identity)
{
- CONN_LOCK;
+ CONN_LOCK;
- CHECK_FEATURE_SUPPORTED(TELEPHONY_FEATURE, WIFI_FEATURE,
- TETHERING_BLUETOOTH_FEATURE, ETHERNET_FEATURE);
+ CHECK_FEATURE_SUPPORTED(TELEPHONY_FEATURE, WIFI_FEATURE,
+ TETHERING_BLUETOOTH_FEATURE, ETHERNET_FEATURE);
- if (!_connection_libnet_check_profile_validity(profile) ||
- identity == NULL ) {
- CONNECTION_LOG(CONNECTION_ERROR, "Invalid parameter");
- CONN_UNLOCK;
- return CONNECTION_ERROR_INVALID_PARAMETER;
- }
+ if (!_connection_libnet_check_profile_validity(profile) || identity == NULL) {
+ CONNECTION_LOG(CONNECTION_ERROR, "Invalid parameter");
+ CONN_UNLOCK;
+ return CONNECTION_ERROR_INVALID_PARAMETER;
+ }
- net_profile_info_t *profile_info = profile;
- net_dev_info_t *net_info = __profile_get_net_info(profile_info);
+ net_profile_info_t *profile_info = profile;
+ net_dev_info_t *net_info = __profile_get_net_info(profile_info);
- if (!net_info || false == __profile_ethernet_validate_eap_identity(net_info)) {
- CONNECTION_LOG(CONNECTION_ERROR, "Invalid operation"); //LCOV_EXCL_LINE
- CONN_UNLOCK; //LCOV_EXCL_LINE
- return CONNECTION_ERROR_INVALID_OPERATION; //LCOV_EXCL_LINE
- }
+ if (!net_info || false == __profile_ethernet_validate_eap_identity(net_info)) {
+ CONNECTION_LOG(CONNECTION_ERROR, "Invalid operation"); //LCOV_EXCL_LINE
+ CONN_UNLOCK; //LCOV_EXCL_LINE
+ return CONNECTION_ERROR_INVALID_OPERATION; //LCOV_EXCL_LINE
+ }
- g_strlcpy(net_info->eap.username, identity, NET_USERNAME_LEN+1);
+ g_strlcpy(net_info->eap.username, identity, NET_USERNAME_LEN+1);
- CONN_UNLOCK;
- return CONNECTION_ERROR_NONE;
+ CONN_UNLOCK;
+ return CONNECTION_ERROR_NONE;
}
EXPORT_API int connection_profile_get_ethernet_eap_identity(connection_profile_h profile,
char **identity)
{
- CONN_LOCK;
+ CONN_LOCK;
- CHECK_FEATURE_SUPPORTED(TELEPHONY_FEATURE, WIFI_FEATURE,
- TETHERING_BLUETOOTH_FEATURE, ETHERNET_FEATURE);
+ CHECK_FEATURE_SUPPORTED(TELEPHONY_FEATURE, WIFI_FEATURE,
+ TETHERING_BLUETOOTH_FEATURE, ETHERNET_FEATURE);
- if (!_connection_libnet_check_profile_validity(profile) ||
- identity == NULL ) {
- CONNECTION_LOG(CONNECTION_ERROR, "Invalid parameter");
- CONN_UNLOCK;
- return CONNECTION_ERROR_INVALID_PARAMETER;
- }
+ if (!_connection_libnet_check_profile_validity(profile) ||
+ identity == NULL) {
+ CONNECTION_LOG(CONNECTION_ERROR, "Invalid parameter");
+ CONN_UNLOCK;
+ return CONNECTION_ERROR_INVALID_PARAMETER;
+ }
- net_profile_info_t *profile_info = profile;
- net_dev_info_t *net_info = __profile_get_net_info(profile_info);
+ net_profile_info_t *profile_info = profile;
+ net_dev_info_t *net_info = __profile_get_net_info(profile_info);
- if (!net_info || false == __profile_ethernet_validate_eap_identity(net_info)) {
- CONNECTION_LOG(CONNECTION_ERROR, "Invalid operation"); //LCOV_EXCL_LINE
- CONN_UNLOCK; //LCOV_EXCL_LINE
- return CONNECTION_ERROR_INVALID_OPERATION; //LCOV_EXCL_LINE
- }
+ if (!net_info || false == __profile_ethernet_validate_eap_identity(net_info)) {
+ CONNECTION_LOG(CONNECTION_ERROR, "Invalid operation"); //LCOV_EXCL_LINE
+ CONN_UNLOCK; //LCOV_EXCL_LINE
+ return CONNECTION_ERROR_INVALID_OPERATION; //LCOV_EXCL_LINE
+ }
- *identity = strdup(net_info->eap.username);
- if (*identity == NULL) {
- CONN_UNLOCK; //LCOV_EXCL_LINE
- return CONNECTION_ERROR_OUT_OF_MEMORY; //LCOV_EXCL_LINE
- }
+ *identity = strdup(net_info->eap.username);
+ if (*identity == NULL) {
+ CONN_UNLOCK; //LCOV_EXCL_LINE
+ return CONNECTION_ERROR_OUT_OF_MEMORY; //LCOV_EXCL_LINE
+ }
- CONN_UNLOCK;
- return CONNECTION_ERROR_NONE;
+ CONN_UNLOCK;
+ return CONNECTION_ERROR_NONE;
}
EXPORT_API int connection_profile_set_ethernet_eap_ca_cert_file(connection_profile_h profile,
const char *file)
{
- CONN_LOCK;
+ CONN_LOCK;
- CHECK_FEATURE_SUPPORTED(TELEPHONY_FEATURE, WIFI_FEATURE,
- TETHERING_BLUETOOTH_FEATURE, ETHERNET_FEATURE);
+ CHECK_FEATURE_SUPPORTED(TELEPHONY_FEATURE, WIFI_FEATURE,
+ TETHERING_BLUETOOTH_FEATURE, ETHERNET_FEATURE);
- if (!_connection_libnet_check_profile_validity(profile) ||
- file == NULL ) {
- CONNECTION_LOG(CONNECTION_ERROR, "Invalid parameter");
- CONN_UNLOCK;
- return CONNECTION_ERROR_INVALID_PARAMETER;
- }
+ if (!_connection_libnet_check_profile_validity(profile) ||
+ file == NULL) {
+ CONNECTION_LOG(CONNECTION_ERROR, "Invalid parameter");
+ CONN_UNLOCK;
+ return CONNECTION_ERROR_INVALID_PARAMETER;
+ }
- net_profile_info_t *profile_info = profile;
- net_dev_info_t *net_info = __profile_get_net_info(profile_info);
+ net_profile_info_t *profile_info = profile;
+ net_dev_info_t *net_info = __profile_get_net_info(profile_info);
- if (!net_info || false == __profile_ethernet_validate_eap_ca_cert_file(net_info)) {
- CONNECTION_LOG(CONNECTION_ERROR, "Invalid operation");
- CONN_UNLOCK;
- return CONNECTION_ERROR_INVALID_OPERATION;
- }
+ if (!net_info || false == __profile_ethernet_validate_eap_ca_cert_file(net_info)) {
+ CONNECTION_LOG(CONNECTION_ERROR, "Invalid operation");
+ CONN_UNLOCK;
+ return CONNECTION_ERROR_INVALID_OPERATION;
+ }
- g_strlcpy(net_info->eap.ca_cert_filename, file, NET_CA_CERT_FILENAME_LEN+1);
+ g_strlcpy(net_info->eap.ca_cert_filename, file, NET_CA_CERT_FILENAME_LEN+1);
- CONN_UNLOCK;
- return CONNECTION_ERROR_NONE;
+ CONN_UNLOCK;
+ return CONNECTION_ERROR_NONE;
}
EXPORT_API int connection_profile_get_ethernet_eap_ca_cert_file(connection_profile_h profile,
char **file)
{
- CONN_LOCK;
+ CONN_LOCK;
- CHECK_FEATURE_SUPPORTED(TELEPHONY_FEATURE, WIFI_FEATURE,
- TETHERING_BLUETOOTH_FEATURE, ETHERNET_FEATURE);
+ CHECK_FEATURE_SUPPORTED(TELEPHONY_FEATURE, WIFI_FEATURE,
+ TETHERING_BLUETOOTH_FEATURE, ETHERNET_FEATURE);
- if (!_connection_libnet_check_profile_validity(profile) ||
- file == NULL ) {
- CONNECTION_LOG(CONNECTION_ERROR, "Invalid parameter");
- CONN_UNLOCK;
- return CONNECTION_ERROR_INVALID_PARAMETER;
- }
+ if (!_connection_libnet_check_profile_validity(profile) ||
+ file == NULL) {
+ CONNECTION_LOG(CONNECTION_ERROR, "Invalid parameter");
+ CONN_UNLOCK;
+ return CONNECTION_ERROR_INVALID_PARAMETER;
+ }
- net_profile_info_t *profile_info = profile;
- net_dev_info_t *net_info = __profile_get_net_info(profile_info);
+ net_profile_info_t *profile_info = profile;
+ net_dev_info_t *net_info = __profile_get_net_info(profile_info);
- if (!net_info || false == __profile_ethernet_validate_eap_ca_cert_file(net_info)) {
- CONNECTION_LOG(CONNECTION_ERROR, "Invalid operation");
- CONN_UNLOCK;
- return CONNECTION_ERROR_INVALID_OPERATION;
- }
+ if (!net_info || false == __profile_ethernet_validate_eap_ca_cert_file(net_info)) {
+ CONNECTION_LOG(CONNECTION_ERROR, "Invalid operation");
+ CONN_UNLOCK;
+ return CONNECTION_ERROR_INVALID_OPERATION;
+ }
- *file = strdup(net_info->eap.ca_cert_filename);
- if (*file == NULL) {
- CONN_UNLOCK; //LCOV_EXCL_LINE
- return CONNECTION_ERROR_OUT_OF_MEMORY; //LCOV_EXCL_LINE
- }
+ *file = strdup(net_info->eap.ca_cert_filename);
+ if (*file == NULL) {
+ CONN_UNLOCK; //LCOV_EXCL_LINE
+ return CONNECTION_ERROR_OUT_OF_MEMORY; //LCOV_EXCL_LINE
+ }
- CONN_UNLOCK;
- return CONNECTION_ERROR_NONE;
+ CONN_UNLOCK;
+ return CONNECTION_ERROR_NONE;
}
EXPORT_API int connection_profile_set_ethernet_eap_client_cert_file(connection_profile_h profile,
const char *file)
{
- CONN_LOCK;
+ CONN_LOCK;
- CHECK_FEATURE_SUPPORTED(TELEPHONY_FEATURE, WIFI_FEATURE,
- TETHERING_BLUETOOTH_FEATURE, ETHERNET_FEATURE);
+ CHECK_FEATURE_SUPPORTED(TELEPHONY_FEATURE, WIFI_FEATURE,
+ TETHERING_BLUETOOTH_FEATURE, ETHERNET_FEATURE);
- if (!_connection_libnet_check_profile_validity(profile) ||
- file == NULL ) {
- CONNECTION_LOG(CONNECTION_ERROR, "Invalid parameter");
- CONN_UNLOCK;
- return CONNECTION_ERROR_INVALID_PARAMETER;
- }
+ if (!_connection_libnet_check_profile_validity(profile) ||
+ file == NULL) {
+ CONNECTION_LOG(CONNECTION_ERROR, "Invalid parameter");
+ CONN_UNLOCK;
+ return CONNECTION_ERROR_INVALID_PARAMETER;
+ }
- net_profile_info_t *profile_info = profile;
- net_dev_info_t *net_info = __profile_get_net_info(profile_info);
+ net_profile_info_t *profile_info = profile;
+ net_dev_info_t *net_info = __profile_get_net_info(profile_info);
- if (!net_info || false == __profile_ethernet_validate_eap_client_cert_file(net_info)) {
- CONNECTION_LOG(CONNECTION_ERROR, "Invalid operation");
- CONN_UNLOCK;
- return CONNECTION_ERROR_INVALID_OPERATION;
- }
+ if (!net_info || false == __profile_ethernet_validate_eap_client_cert_file(net_info)) {
+ CONNECTION_LOG(CONNECTION_ERROR, "Invalid operation");
+ CONN_UNLOCK;
+ return CONNECTION_ERROR_INVALID_OPERATION;
+ }
- g_strlcpy(net_info->eap.client_cert_filename, file, NET_CLIENT_CERT_FILENAME_LEN+1);
+ g_strlcpy(net_info->eap.client_cert_filename, file, NET_CLIENT_CERT_FILENAME_LEN+1);
- CONN_UNLOCK;
- return CONNECTION_ERROR_NONE;
+ CONN_UNLOCK;
+ return CONNECTION_ERROR_NONE;
}
EXPORT_API int connection_profile_get_ethernet_eap_client_cert_file(connection_profile_h profile,
char **file)
{
- CONN_LOCK;
+ CONN_LOCK;
- CHECK_FEATURE_SUPPORTED(TELEPHONY_FEATURE, WIFI_FEATURE,
- TETHERING_BLUETOOTH_FEATURE, ETHERNET_FEATURE);
+ CHECK_FEATURE_SUPPORTED(TELEPHONY_FEATURE, WIFI_FEATURE,
+ TETHERING_BLUETOOTH_FEATURE, ETHERNET_FEATURE);
- if (!_connection_libnet_check_profile_validity(profile) ||
- file == NULL ) {
- CONNECTION_LOG(CONNECTION_ERROR, "Invalid parameter");
- CONN_UNLOCK;
- return CONNECTION_ERROR_INVALID_PARAMETER;
- }
+ if (!_connection_libnet_check_profile_validity(profile) ||
+ file == NULL) {
+ CONNECTION_LOG(CONNECTION_ERROR, "Invalid parameter");
+ CONN_UNLOCK;
+ return CONNECTION_ERROR_INVALID_PARAMETER;
+ }
- net_profile_info_t *profile_info = profile;
- net_dev_info_t *net_info = __profile_get_net_info(profile_info);
+ net_profile_info_t *profile_info = profile;
+ net_dev_info_t *net_info = __profile_get_net_info(profile_info);
- if (!net_info || false == __profile_ethernet_validate_eap_client_cert_file(net_info)) {
- CONNECTION_LOG(CONNECTION_ERROR, "Invalid operation");
- CONN_UNLOCK;
- return CONNECTION_ERROR_INVALID_OPERATION;
- }
+ if (!net_info || false == __profile_ethernet_validate_eap_client_cert_file(net_info)) {
+ CONNECTION_LOG(CONNECTION_ERROR, "Invalid operation");
+ CONN_UNLOCK;
+ return CONNECTION_ERROR_INVALID_OPERATION;
+ }
- *file = strdup(net_info->eap.client_cert_filename);
- if (*file == NULL) {
- CONN_UNLOCK; //LCOV_EXCL_LINE
- return CONNECTION_ERROR_OUT_OF_MEMORY; //LCOV_EXCL_LINE
- }
+ *file = strdup(net_info->eap.client_cert_filename);
+ if (*file == NULL) {
+ CONN_UNLOCK; //LCOV_EXCL_LINE
+ return CONNECTION_ERROR_OUT_OF_MEMORY; //LCOV_EXCL_LINE
+ }
- CONN_UNLOCK;
- return CONNECTION_ERROR_NONE;
+ CONN_UNLOCK;
+ return CONNECTION_ERROR_NONE;
}
-EXPORT_API int connection_profile_get_ethernet_eap_private_key_file(connection_profile_h profile,
- char **file)
+EXPORT_API int connection_profile_get_ethernet_eap_private_key_file(connection_profile_h profile, char **file)
{
- CONN_LOCK;
+ CONN_LOCK;
- CHECK_FEATURE_SUPPORTED(TELEPHONY_FEATURE, WIFI_FEATURE,
- TETHERING_BLUETOOTH_FEATURE, ETHERNET_FEATURE);
+ CHECK_FEATURE_SUPPORTED(TELEPHONY_FEATURE, WIFI_FEATURE,
+ TETHERING_BLUETOOTH_FEATURE, ETHERNET_FEATURE);
- if (!_connection_libnet_check_profile_validity(profile) ||
- file == NULL ) {
- CONNECTION_LOG(CONNECTION_ERROR, "Invalid parameter");
- CONN_UNLOCK;
- return CONNECTION_ERROR_INVALID_PARAMETER;
- }
+ if (!_connection_libnet_check_profile_validity(profile) ||
+ file == NULL) {
+ CONNECTION_LOG(CONNECTION_ERROR, "Invalid parameter");
+ CONN_UNLOCK;
+ return CONNECTION_ERROR_INVALID_PARAMETER;
+ }
- net_profile_info_t *profile_info = profile;
- net_dev_info_t *net_info = __profile_get_net_info(profile_info);
+ net_profile_info_t *profile_info = profile;
+ net_dev_info_t *net_info = __profile_get_net_info(profile_info);
- if (!net_info || false == __profile_ethernet_validate_eap_private_key_file(net_info)) {
- CONNECTION_LOG(CONNECTION_ERROR, "Invalid operation");
- CONN_UNLOCK;
- return CONNECTION_ERROR_INVALID_OPERATION;
- }
+ if (!net_info || false == __profile_ethernet_validate_eap_private_key_file(net_info)) {
+ CONNECTION_LOG(CONNECTION_ERROR, "Invalid operation");
+ CONN_UNLOCK;
+ return CONNECTION_ERROR_INVALID_OPERATION;
+ }
- *file = strdup(net_info->eap.private_key_filename);
- if (*file == NULL) {
- CONN_UNLOCK; //LCOV_EXCL_LINE
- return CONNECTION_ERROR_OUT_OF_MEMORY; //LCOV_EXCL_LINE
- }
+ *file = strdup(net_info->eap.private_key_filename);
+ if (*file == NULL) {
+ CONN_UNLOCK; //LCOV_EXCL_LINE
+ return CONNECTION_ERROR_OUT_OF_MEMORY; //LCOV_EXCL_LINE
+ }
- CONN_UNLOCK;
- return CONNECTION_ERROR_NONE;
+ CONN_UNLOCK;
+ return CONNECTION_ERROR_NONE;
}
-EXPORT_API int connection_profile_set_ethernet_eap_private_key_info(connection_profile_h profile,
- const char *file, const char *password)
+EXPORT_API int connection_profile_set_ethernet_eap_private_key_info(connection_profile_h profile, const char *file, const char *password)
{
- CONN_LOCK;
+ CONN_LOCK;
- CHECK_FEATURE_SUPPORTED(TELEPHONY_FEATURE, WIFI_FEATURE,
- TETHERING_BLUETOOTH_FEATURE, ETHERNET_FEATURE);
+ CHECK_FEATURE_SUPPORTED(TELEPHONY_FEATURE, WIFI_FEATURE,
+ TETHERING_BLUETOOTH_FEATURE, ETHERNET_FEATURE);
- if (!_connection_libnet_check_profile_validity(profile) ||
- file == NULL || password == NULL) {
- CONNECTION_LOG(CONNECTION_ERROR, "Invalid parameter");
- CONN_UNLOCK;
- return CONNECTION_ERROR_INVALID_PARAMETER;
- }
+ if (!_connection_libnet_check_profile_validity(profile) || file == NULL || password == NULL) {
+ CONNECTION_LOG(CONNECTION_ERROR, "Invalid parameter");
+ CONN_UNLOCK;
+ return CONNECTION_ERROR_INVALID_PARAMETER;
+ }
- net_profile_info_t *profile_info = profile;
- net_dev_info_t *net_info = __profile_get_net_info(profile_info);
+ net_profile_info_t *profile_info = profile;
+ net_dev_info_t *net_info = __profile_get_net_info(profile_info);
- if (!net_info || false == __profile_ethernet_validate_eap_private_key_file(net_info)) {
- CONNECTION_LOG(CONNECTION_ERROR, "Invalid operation");
- CONN_UNLOCK;
- return CONNECTION_ERROR_INVALID_OPERATION;
- }
+ if (!net_info || false == __profile_ethernet_validate_eap_private_key_file(net_info)) {
+ CONNECTION_LOG(CONNECTION_ERROR, "Invalid operation");
+ CONN_UNLOCK;
+ return CONNECTION_ERROR_INVALID_OPERATION;
+ }
- g_strlcpy(net_info->eap.private_key_filename, file, NET_PRIVATE_KEY_FILENAME_LEN+1);
- g_strlcpy(net_info->eap.private_key_passwd, password, NET_PRIVATE_KEY_PASSWD_LEN+1);
+ g_strlcpy(net_info->eap.private_key_filename, file, NET_PRIVATE_KEY_FILENAME_LEN+1);
+ g_strlcpy(net_info->eap.private_key_passwd, password, NET_PRIVATE_KEY_PASSWD_LEN+1);
- CONN_UNLOCK;
- return CONNECTION_ERROR_NONE;
+ CONN_UNLOCK;
+ return CONNECTION_ERROR_NONE;
}
EXPORT_API int connection_profile_set_ethernet_eap_anonymous_identity(connection_profile_h profile,
const char *anonymous_identity)
{
- CONN_LOCK;
+ CONN_LOCK;
- CHECK_FEATURE_SUPPORTED(TELEPHONY_FEATURE, WIFI_FEATURE,
- TETHERING_BLUETOOTH_FEATURE, ETHERNET_FEATURE);
+ CHECK_FEATURE_SUPPORTED(TELEPHONY_FEATURE, WIFI_FEATURE,
+ TETHERING_BLUETOOTH_FEATURE, ETHERNET_FEATURE);
- if (!_connection_libnet_check_profile_validity(profile) ||
- anonymous_identity == NULL ) {
- CONNECTION_LOG(CONNECTION_ERROR, "Invalid parameter");
- CONN_UNLOCK;
- return CONNECTION_ERROR_INVALID_PARAMETER;
- }
+ if (!_connection_libnet_check_profile_validity(profile) || anonymous_identity == NULL) {
+ CONNECTION_LOG(CONNECTION_ERROR, "Invalid parameter");
+ CONN_UNLOCK;
+ return CONNECTION_ERROR_INVALID_PARAMETER;
+ }
- net_profile_info_t *profile_info = profile;
- net_dev_info_t *net_info = __profile_get_net_info(profile_info);
+ net_profile_info_t *profile_info = profile;
+ net_dev_info_t *net_info = __profile_get_net_info(profile_info);
- if (!net_info || false == __profile_ethernet_validate_eap_anonymous_identity(net_info)) {
- CONNECTION_LOG(CONNECTION_ERROR, "Invalid operation");
- CONN_UNLOCK;
- return CONNECTION_ERROR_INVALID_OPERATION;
- }
+ if (!net_info || false == __profile_ethernet_validate_eap_anonymous_identity(net_info)) {
+ CONNECTION_LOG(CONNECTION_ERROR, "Invalid operation");
+ CONN_UNLOCK;
+ return CONNECTION_ERROR_INVALID_OPERATION;
+ }
- g_strlcpy(net_info->eap.anonymous_identity, anonymous_identity, NET_USERNAME_LEN+1);
+ g_strlcpy(net_info->eap.anonymous_identity, anonymous_identity, NET_USERNAME_LEN+1);
- CONN_UNLOCK;
- return CONNECTION_ERROR_NONE;
+ CONN_UNLOCK;
+ return CONNECTION_ERROR_NONE;
}
EXPORT_API int connection_profile_get_ethernet_eap_anonymous_identity(connection_profile_h profile,
char **anonymous_identity)
{
- CONN_LOCK;
+ CONN_LOCK;
- CHECK_FEATURE_SUPPORTED(TELEPHONY_FEATURE, WIFI_FEATURE,
- TETHERING_BLUETOOTH_FEATURE, ETHERNET_FEATURE);
+ CHECK_FEATURE_SUPPORTED(TELEPHONY_FEATURE, WIFI_FEATURE,
+ TETHERING_BLUETOOTH_FEATURE, ETHERNET_FEATURE);
- if (!_connection_libnet_check_profile_validity(profile) ||
- anonymous_identity == NULL ) {
- CONNECTION_LOG(CONNECTION_ERROR, "Invalid parameter");
- CONN_UNLOCK;
- return CONNECTION_ERROR_INVALID_PARAMETER;
- }
+ if (!_connection_libnet_check_profile_validity(profile) ||
+ anonymous_identity == NULL) {
+ CONNECTION_LOG(CONNECTION_ERROR, "Invalid parameter");
+ CONN_UNLOCK;
+ return CONNECTION_ERROR_INVALID_PARAMETER;
+ }
- net_profile_info_t *profile_info = profile;
- net_dev_info_t *net_info = __profile_get_net_info(profile_info);
+ net_profile_info_t *profile_info = profile;
+ net_dev_info_t *net_info = __profile_get_net_info(profile_info);
- if (!net_info || false == __profile_ethernet_validate_eap_anonymous_identity(net_info)) {
- CONNECTION_LOG(CONNECTION_ERROR, "Invalid operation");
- CONN_UNLOCK;
- return CONNECTION_ERROR_INVALID_OPERATION;
- }
+ if (!net_info || false == __profile_ethernet_validate_eap_anonymous_identity(net_info)) {
+ CONNECTION_LOG(CONNECTION_ERROR, "Invalid operation");
+ CONN_UNLOCK;
+ return CONNECTION_ERROR_INVALID_OPERATION;
+ }
- *anonymous_identity= strdup(net_info->eap.anonymous_identity);
- if (*anonymous_identity== NULL) {
- CONN_UNLOCK; //LCOV_EXCL_LINE
- return CONNECTION_ERROR_OUT_OF_MEMORY; //LCOV_EXCL_LINE
- }
+ *anonymous_identity = strdup(net_info->eap.anonymous_identity);
+ if (*anonymous_identity == NULL) {
+ CONN_UNLOCK; //LCOV_EXCL_LINE
+ return CONNECTION_ERROR_OUT_OF_MEMORY; //LCOV_EXCL_LINE
+ }
- CONN_UNLOCK;
- return CONNECTION_ERROR_NONE;
+ CONN_UNLOCK;
+ return CONNECTION_ERROR_NONE;
}
EXPORT_API int connection_profile_set_ethernet_eap_pac_file(connection_profile_h profile,
const char *file)
{
- CONN_LOCK;
+ CONN_LOCK;
- CHECK_FEATURE_SUPPORTED(TELEPHONY_FEATURE, WIFI_FEATURE,
- TETHERING_BLUETOOTH_FEATURE, ETHERNET_FEATURE);
+ CHECK_FEATURE_SUPPORTED(TELEPHONY_FEATURE, WIFI_FEATURE,
+ TETHERING_BLUETOOTH_FEATURE, ETHERNET_FEATURE);
- if (!_connection_libnet_check_profile_validity(profile) ||
- file == NULL ) {
- CONNECTION_LOG(CONNECTION_ERROR, "Invalid parameter");
- CONN_UNLOCK;
- return CONNECTION_ERROR_INVALID_PARAMETER;
- }
+ if (!_connection_libnet_check_profile_validity(profile) ||
+ file == NULL) {
+ CONNECTION_LOG(CONNECTION_ERROR, "Invalid parameter");
+ CONN_UNLOCK;
+ return CONNECTION_ERROR_INVALID_PARAMETER;
+ }
- net_profile_info_t *profile_info = profile;
- net_dev_info_t *net_info = __profile_get_net_info(profile_info);
+ net_profile_info_t *profile_info = profile;
+ net_dev_info_t *net_info = __profile_get_net_info(profile_info);
- if (!net_info || false == __profile_ethernet_validate_eap_pac_file(net_info)) {
- CONNECTION_LOG(CONNECTION_ERROR, "Invalid operation");
- CONN_UNLOCK;
- return CONNECTION_ERROR_INVALID_OPERATION;
- }
+ if (!net_info || false == __profile_ethernet_validate_eap_pac_file(net_info)) {
+ CONNECTION_LOG(CONNECTION_ERROR, "Invalid operation");
+ CONN_UNLOCK;
+ return CONNECTION_ERROR_INVALID_OPERATION;
+ }
- g_strlcpy(net_info->eap.pac_filename, file, NET_PAC_FILENAME_LEN+1);
+ g_strlcpy(net_info->eap.pac_filename, file, NET_PAC_FILENAME_LEN+1);
- CONN_UNLOCK;
- return CONNECTION_ERROR_NONE;
+ CONN_UNLOCK;
+ return CONNECTION_ERROR_NONE;
}
EXPORT_API int connection_profile_get_ethernet_eap_pac_file(connection_profile_h profile,
char **file)
{
- CONN_LOCK;
+ CONN_LOCK;
- CHECK_FEATURE_SUPPORTED(TELEPHONY_FEATURE, WIFI_FEATURE,
- TETHERING_BLUETOOTH_FEATURE, ETHERNET_FEATURE);
+ CHECK_FEATURE_SUPPORTED(TELEPHONY_FEATURE, WIFI_FEATURE,
+ TETHERING_BLUETOOTH_FEATURE, ETHERNET_FEATURE);
- if (!_connection_libnet_check_profile_validity(profile) ||
- file == NULL ) {
- CONNECTION_LOG(CONNECTION_ERROR, "Invalid parameter");
- CONN_UNLOCK;
- return CONNECTION_ERROR_INVALID_PARAMETER;
- }
+ if (!_connection_libnet_check_profile_validity(profile) ||
+ file == NULL) {
+ CONNECTION_LOG(CONNECTION_ERROR, "Invalid parameter");
+ CONN_UNLOCK;
+ return CONNECTION_ERROR_INVALID_PARAMETER;
+ }
- net_profile_info_t *profile_info = profile;
- net_dev_info_t *net_info = __profile_get_net_info(profile_info);
+ net_profile_info_t *profile_info = profile;
+ net_dev_info_t *net_info = __profile_get_net_info(profile_info);
- if (!net_info || false == __profile_ethernet_validate_eap_pac_file(net_info)) {
- CONNECTION_LOG(CONNECTION_ERROR, "Invalid operation");
- CONN_UNLOCK;
- return CONNECTION_ERROR_INVALID_OPERATION;
- }
+ if (!net_info || false == __profile_ethernet_validate_eap_pac_file(net_info)) {
+ CONNECTION_LOG(CONNECTION_ERROR, "Invalid operation");
+ CONN_UNLOCK;
+ return CONNECTION_ERROR_INVALID_OPERATION;
+ }
- *file = strdup(net_info->eap.pac_filename);
- if (*file == NULL) {
- CONN_UNLOCK; //LCOV_EXCL_LINE
- return CONNECTION_ERROR_OUT_OF_MEMORY; //LCOV_EXCL_LINE
- }
+ *file = strdup(net_info->eap.pac_filename);
+ if (*file == NULL) {
+ CONN_UNLOCK; //LCOV_EXCL_LINE
+ return CONNECTION_ERROR_OUT_OF_MEMORY; //LCOV_EXCL_LINE
+ }
- CONN_UNLOCK;
- return CONNECTION_ERROR_NONE;
+ CONN_UNLOCK;
+ return CONNECTION_ERROR_NONE;
}
EXPORT_API int connection_profile_set_ethernet_eap_auth_type(connection_profile_h profile,
net_profile_info_t *profile_info = profile;
net_dev_info_t *net_info = __profile_get_net_info(profile_info);
- if (!net_info || false == __profile_ethernet_validate_eap_peap_version(net_info)) {
+ if (!net_info || false == __profile_ethernet_validate_eap_peap_version(net_info)) {
CONNECTION_LOG(CONNECTION_ERROR, "Invalid operation");
CONN_UNLOCK;
return CONNECTION_ERROR_INVALID_OPERATION;
}
- net_info->eap.peap_version= version;
+ net_info->eap.peap_version = version;
CONN_UNLOCK;
return CONNECTION_ERROR_NONE;
net_profile_info_t *profile_info = profile;
net_dev_info_t *net_info = __profile_get_net_info(profile_info);
- if (!net_info || false == __profile_ethernet_validate_eap_peap_version(net_info)) {
+ if (!net_info || false == __profile_ethernet_validate_eap_peap_version(net_info)) {
CONNECTION_LOG(CONNECTION_ERROR, "Invalid operation");
CONN_UNLOCK;
return CONNECTION_ERROR_INVALID_OPERATION;
rv = net_set_default_cellular_service_profile_async(conn_handle->network_info_handle,
profile_info->profile_name);
- if (rv == NET_ERR_ACCESS_DENIED) {
+ if (rv == NET_ERR_ACCESS_DENIED)
return CONNECTION_ERROR_PERMISSION_DENIED; //LCOV_EXCL_LINE
- } else if (rv != NET_ERR_NONE)
+ else if (rv != NET_ERR_NONE)
return CONNECTION_ERROR_OPERATION_FAILED; //LCOV_EXCL_LINE
return CONNECTION_ERROR_NONE;
if (connection_profile_get_dhcp_lease_duration(profile, address_family, &dhcp_lease_duration) != CONNECTION_ERROR_NONE)
printf("Fail to get DHCP lease duration!\n");
- else {
+ else
printf("DHCP lease duration : %d\n", dhcp_lease_duration);
- }
-
if (connection_profile_get_subnet_mask(profile, address_family, &subnet) != CONNECTION_ERROR_NONE)
printf("Fail to get subnet mask!\n");
else {
int test_start_tcpdump(void)
{
- if (connection_profile_start_tcpdump(connection) != CONNECTION_ERROR_NONE) {
+ if (connection_profile_start_tcpdump(connection) != CONNECTION_ERROR_NONE)
return -1;
- }
-
printf("Successfully started tcpdump\n");
return 1;
int test_stop_tcpdump(void)
{
- if (connection_profile_stop_tcpdump(connection) != CONNECTION_ERROR_NONE) {
+ if (connection_profile_stop_tcpdump(connection) != CONNECTION_ERROR_NONE)
return -1;
- }
-
printf("Successfully stopped tcpdump\n");
return 1;
{
gboolean tcpdump_state = FALSE;
- if (connection_profile_get_tcpdump_state(connection, &tcpdump_state) != CONNECTION_ERROR_NONE) {
+ if (connection_profile_get_tcpdump_state(connection, &tcpdump_state) != CONNECTION_ERROR_NONE)
return -1;
- }
-
printf("tcpdump %s running\n", tcpdump_state ? "is" : "is not");
return 1;
return -1;
}
}
- break;
+ break;
case CONNECTION_ETHERNET_EAP_TYPE_PEAP:
{
return -1;
}
}
- break;
+ break;
case CONNECTION_ETHERNET_EAP_TYPE_TTLS:
{
return -1;
}
}
- break;
+ break;
case CONNECTION_ETHERNET_EAP_TYPE_FAST:
{
return -1;
}
}
- break;
+ break;
default:
printf("Invalid EAP type\n");
return -1;
bool enabled = false;
- if (connection_profile_is_ethernet_eap_enabled(profile, &enabled) != CONNECTION_ERROR_NONE) {
+ if (connection_profile_is_ethernet_eap_enabled(profile, &enabled) != CONNECTION_ERROR_NONE)
printf("Failed to get ethernet eap enabled status!!\n");
- }
printf("EAP over Ethernet is %s\n", enabled ? "enabled" : "not enabled");
if (connection_profile_get_name(profile, &profile_name) != CONNECTION_ERROR_NONE) {
#endif
#define assert(exp) \
- do { \
- if (!(exp)) { \
- fprintf(stderr, \
- "\n[TCT][%s][Line : %d] Assert Fail; Following expression is not true: %s\n", \
- __FILE__, __LINE__, #exp); \
- return 1; \
- } \
- } while (0)
+ do { \
+ if (!(exp)) { \
+ fprintf(stderr, \
+ "\n[TCT][%s][Line : %d] Assert Fail; Following expression is not true: %s\n", \
+ __FILE__, __LINE__, #exp); \
+ return 1; \
+ } \
+ } while (0)
#define assert_eq(var, ref) \
- do { \
- if (var != ref) { \
- fprintf(stderr, \
- "\n[TCT][%s][Line : %d] Assert fail; Values (%s == 0x%x) and (%s == 0x%x) are not equal\n", \
- __FILE__, __LINE__, #var, (int)var, #ref, (int)ref); \
- return 1; \
- } \
- } while (0)
+ do { \
+ if (var != ref) { \
+ fprintf(stderr, \
+ "\n[TCT][%s][Line : %d] Assert fail; Values (%s == 0x%x) and (%s == 0x%x) are not equal\n", \
+ __FILE__, __LINE__, #var, (int)var, #ref, (int)ref); \
+ return 1; \
+ } \
+ } while (0)
#define assert_eq_no_return(var, ref) \
- do { \
- if (var != ref) { \
- fprintf(stderr, \
- "\n[TCT][%s][Line : %d] Assert fail; Values (%s == 0x%x) and (%s == 0x%x) are not equal\n", \
- __FILE__, __LINE__, #var, (int)var, #ref, (int)ref); \
- return ; \
- } \
- } while (0)
+ do { \
+ if (var != ref) { \
+ fprintf(stderr, \
+ "\n[TCT][%s][Line : %d] Assert fail; Values (%s == 0x%x) and (%s == 0x%x) are not equal\n", \
+ __FILE__, __LINE__, #var, (int)var, #ref, (int)ref); \
+ return ; \
+ } \
+ } while (0)
#define assert_neq_no_return(var, ref) \
- do { \
- if (var == ref) { \
- fprintf(stderr, \
- "\n[TCT][%s][Line : %d] Assert fail; Values (%s == 0x%x) and (%s == 0x%x) are equal\n", \
- __FILE__, __LINE__, #var, (int)var, #ref, (int)ref); \
- return ; \
- } \
- } while (0)
+ do { \
+ if (var == ref) { \
+ fprintf(stderr, \
+ "\n[TCT][%s][Line : %d] Assert fail; Values (%s == 0x%x) and (%s == 0x%x) are equal\n", \
+ __FILE__, __LINE__, #var, (int)var, #ref, (int)ref); \
+ return ; \
+ } \
+ } while (0)
#define assert_neq(var, ref) \
- do { \
- if (var == ref) { \
- fprintf(stderr, \
- "\n[TCT][%s][Line : %d] Assert fail; Values (%s == 0x%x) and (%s == 0x%x) are equal\n", \
- __FILE__, __LINE__, #var, (int)var, #ref, (int)ref); \
- return 1; \
- } \
- } while (0)
+ do { \
+ if (var == ref) { \
+ fprintf(stderr, \
+ "\n[TCT][%s][Line : %d] Assert fail; Values (%s == 0x%x) and (%s == 0x%x) are equal\n", \
+ __FILE__, __LINE__, #var, (int)var, #ref, (int)ref); \
+ return 1; \
+ } \
+ } while (0)
#define assert_gt(var, ref) \
- do { \
- if (var <= ref) { \
- fprintf(stderr, \
- "\n[TCT][%s][Line : %d] Assert fail; Values (%s == 0x%x) is not greater than (%s == 0x%x)\n", \
- __FILE__, __LINE__, #var, (int)var, #ref, (int)ref); \
- return 1; \
- } \
- } while (0)
+ do { \
+ if (var <= ref) { \
+ fprintf(stderr, \
+ "\n[TCT][%s][Line : %d] Assert fail; Values (%s == 0x%x) is not greater than (%s == 0x%x)\n", \
+ __FILE__, __LINE__, #var, (int)var, #ref, (int)ref); \
+ return 1; \
+ } \
+ } while (0)
#define assert_geq(var, ref) \
- do { \
- if (var < ref) { \
- fprintf(stderr, \
- "\n[TCT][%s][Line : %d] Assert fail; Values (%s == 0x%x) is not greater than or equal to (%s == 0x%x)\n", \
- __FILE__, __LINE__, #var, (int)var, #ref, (int)ref); \
- return 1; \
- } \
- } while (0)
+ do { \
+ if (var < ref) { \
+ fprintf(stderr, \
+ "\n[TCT][%s][Line : %d] Assert fail; Values (%s == 0x%x) is not greater than or equal to (%s == 0x%x)\n", \
+ __FILE__, __LINE__, #var, (int)var, #ref, (int)ref); \
+ return 1; \
+ } \
+ } while (0)
#define assert_lt(var, ref) \
- do { \
- if (var >= ref) { \
- fprintf(stderr, \
- "\n[TCT][%s][Line : %d] Assert fail; Values (%s == 0x%x) is not lower than (%s == 0x%x)\n", \
- __FILE__, __LINE__, #var, (int)var, #ref, (int)ref); \
- return 1; \
- } \
- } while (0)
+ do { \
+ if (var >= ref) { \
+ fprintf(stderr, \
+ "\n[TCT][%s][Line : %d] Assert fail; Values (%s == 0x%x) is not lower than (%s == 0x%x)\n", \
+ __FILE__, __LINE__, #var, (int)var, #ref, (int)ref); \
+ return 1; \
+ } \
+ } while (0)
#define assert_leq(var, ref) \
- do { \
- if (var > ref) { \
- fprintf(stderr, \
- "\n[TCT][%s][Line : %d] Assert fail; Values (%s == 0x%x) is not lower than or equal to (%s == 0x%x)\n", \
- __FILE__, __LINE__, #var, (int)var, #ref, (int)ref); \
- return 1; \
- } \
- } while (0)
+ do { \
+ if (var > ref) { \
+ fprintf(stderr, \
+ "\n[TCT][%s][Line : %d] Assert fail; Values (%s == 0x%x) is not lower than or equal to (%s == 0x%x)\n", \
+ __FILE__, __LINE__, #var, (int)var, #ref, (int)ref); \
+ return 1; \
+ } \
+ } while (0)
#ifdef __cplusplus
}
#endif
#define FREE_MEMORY_TC(buffer) { \
- if ( buffer != NULL ) \
- { \
+ if (buffer != NULL) { \
free(buffer); \
buffer = NULL; \
} \
}
#define PRINT_LOG(type, tag, ...) do { \
- fprintf(stdout, ##__VA_ARGS__ ); \
- fprintf(stdout, "\n" ); \
-} while(0)
+ fprintf(stdout, ##__VA_ARGS__); \
+ fprintf(stdout, "\n"); \
+} while (0)
#ifdef __cplusplus
}
/* struct describing specific testcase */
typedef struct testcase_s {
- const char* name;
- tc_fun_ptr function;
- void_fun_ptr startup;
- void_fun_ptr cleanup;
+ const char* name;
+ tc_fun_ptr function;
+ void_fun_ptr startup;
+ void_fun_ptr cleanup;
} testcase;
#ifdef __cplusplus
extern int utc_connection_profile_get_ethernet_eap_peap_version_n(void);
testcase tc_array[] = {
- {"utc_connection_profile_create_p", utc_connection_profile_create_p, utc_connection_profile_startup, utc_connection_profile_cleanup},
- {"utc_connection_profile_create_n", utc_connection_profile_create_n, utc_connection_profile_startup, utc_connection_profile_cleanup},
- {"utc_connection_profile_clone_p", utc_connection_profile_clone_p, utc_connection_profile_startup, utc_connection_profile_cleanup},
- {"utc_connection_profile_clone_n", utc_connection_profile_clone_n, utc_connection_profile_startup, utc_connection_profile_cleanup},
- {"utc_connection_profile_get_name_p", utc_connection_profile_get_name_p, utc_connection_profile_startup, utc_connection_profile_cleanup},
- {"utc_connection_profile_get_name_n", utc_connection_profile_get_name_n, utc_connection_profile_startup, utc_connection_profile_cleanup},
- {"utc_connection_profile_get_id_p", utc_connection_profile_get_id_p, utc_connection_profile_startup, utc_connection_profile_cleanup},
- {"utc_connection_profile_get_id_n", utc_connection_profile_get_id_n, utc_connection_profile_startup, utc_connection_profile_cleanup},
- {"utc_connection_profile_get_type_p", utc_connection_profile_get_type_p, utc_connection_profile_startup, utc_connection_profile_cleanup},
- {"utc_connection_profile_get_type_n", utc_connection_profile_get_type_n, utc_connection_profile_startup, utc_connection_profile_cleanup},
- {"utc_connection_profile_get_network_interface_name_p", utc_connection_profile_get_network_interface_name_p, utc_connection_profile_startup, utc_connection_profile_cleanup},
- {"utc_connection_profile_get_network_interface_name_n", utc_connection_profile_get_network_interface_name_n, utc_connection_profile_startup, utc_connection_profile_cleanup},
- {"utc_connection_profile_get_state_p", utc_connection_profile_get_state_p, utc_connection_profile_startup, utc_connection_profile_cleanup},
- {"utc_connection_profile_get_state_n", utc_connection_profile_get_state_n, utc_connection_profile_startup, utc_connection_profile_cleanup},
- {"utc_connection_profile_get_ip_config_type_p", utc_connection_profile_get_ip_config_type_p, utc_connection_profile_startup, utc_connection_profile_cleanup},
- {"utc_connection_profile_get_ip_config_type_n", utc_connection_profile_get_ip_config_type_n, utc_connection_profile_startup, utc_connection_profile_cleanup},
- {"utc_connection_profile_get_ip_address_p", utc_connection_profile_get_ip_address_p, utc_connection_profile_startup, utc_connection_profile_cleanup},
- {"utc_connection_profile_get_ip_address_n", utc_connection_profile_get_ip_address_n, utc_connection_profile_startup, utc_connection_profile_cleanup},
- {"utc_connection_profile_get_subnet_mask_p", utc_connection_profile_get_subnet_mask_p, utc_connection_profile_startup, utc_connection_profile_cleanup},
- {"utc_connection_profile_get_subnet_mask_n", utc_connection_profile_get_subnet_mask_n, utc_connection_profile_startup, utc_connection_profile_cleanup},
- {"utc_connection_profile_get_gateway_address_p", utc_connection_profile_get_gateway_address_p, utc_connection_profile_startup, utc_connection_profile_cleanup},
- {"utc_connection_profile_get_gateway_address_n", utc_connection_profile_get_gateway_address_n, utc_connection_profile_startup, utc_connection_profile_cleanup},
- {"utc_connection_profile_get_dhcp_server_address_p", utc_connection_profile_get_dhcp_server_address_p, utc_connection_profile_startup, utc_connection_profile_cleanup},
- {"utc_connection_profile_get_dhcp_server_address_n", utc_connection_profile_get_dhcp_server_address_n, utc_connection_profile_startup, utc_connection_profile_cleanup},
- {"utc_connection_profile_get_dhcp_lease_duration_p", utc_connection_profile_get_dhcp_lease_duration_p, utc_connection_profile_startup, utc_connection_profile_cleanup},
- {"utc_connection_profile_get_dhcp_lease_duration_n", utc_connection_profile_get_dhcp_lease_duration_n, utc_connection_profile_startup, utc_connection_profile_cleanup},
- {"utc_connection_profile_get_dns_address_p", utc_connection_profile_get_dns_address_p, utc_connection_profile_startup, utc_connection_profile_cleanup},
- {"utc_connection_profile_get_dns_address_n", utc_connection_profile_get_dns_address_n, utc_connection_profile_startup, utc_connection_profile_cleanup},
- {"utc_connection_profile_get_proxy_type_p", utc_connection_profile_get_proxy_type_p, utc_connection_profile_startup, utc_connection_profile_cleanup},
- {"utc_connection_profile_get_proxy_type_n", utc_connection_profile_get_proxy_type_n, utc_connection_profile_startup, utc_connection_profile_cleanup},
- {"utc_connection_profile_get_proxy_address_p", utc_connection_profile_get_proxy_address_p, utc_connection_profile_startup, utc_connection_profile_cleanup},
- {"utc_connection_profile_get_proxy_address_n", utc_connection_profile_get_proxy_address_n, utc_connection_profile_startup, utc_connection_profile_cleanup},
- {"utc_connection_profile_set_ip_config_type_p", utc_connection_profile_set_ip_config_type_p, utc_connection_profile_startup, utc_connection_profile_cleanup},
- {"utc_connection_profile_set_ip_config_type_n", utc_connection_profile_set_ip_config_type_n, utc_connection_profile_startup, utc_connection_profile_cleanup},
- {"utc_connection_profile_set_ip_address_p", utc_connection_profile_set_ip_address_p, utc_connection_profile_startup, utc_connection_profile_cleanup},
- {"utc_connection_profile_set_ip_address_n", utc_connection_profile_set_ip_address_n, utc_connection_profile_startup, utc_connection_profile_cleanup},
- {"utc_connection_profile_set_subnet_mask_p", utc_connection_profile_set_subnet_mask_p, utc_connection_profile_startup, utc_connection_profile_cleanup},
- {"utc_connection_profile_set_subnet_mask_n", utc_connection_profile_set_subnet_mask_n, utc_connection_profile_startup, utc_connection_profile_cleanup},
- {"utc_connection_profile_set_gateway_address_p", utc_connection_profile_set_gateway_address_p, utc_connection_profile_startup, utc_connection_profile_cleanup},
- {"utc_connection_profile_set_gateway_address_n", utc_connection_profile_set_gateway_address_n, utc_connection_profile_startup, utc_connection_profile_cleanup},
- {"utc_connection_profile_set_dns_address_p", utc_connection_profile_set_dns_address_p, utc_connection_profile_startup, utc_connection_profile_cleanup},
- {"utc_connection_profile_set_dns_address_n", utc_connection_profile_set_dns_address_n, utc_connection_profile_startup, utc_connection_profile_cleanup},
- {"utc_connection_profile_set_proxy_type_p", utc_connection_profile_set_proxy_type_p, utc_connection_profile_startup, utc_connection_profile_cleanup},
- {"utc_connection_profile_set_proxy_type_n", utc_connection_profile_set_proxy_type_n, utc_connection_profile_startup, utc_connection_profile_cleanup},
- {"utc_connection_profile_set_proxy_address_p", utc_connection_profile_set_proxy_address_p, utc_connection_profile_startup, utc_connection_profile_cleanup},
- {"utc_connection_profile_set_proxy_address_n", utc_connection_profile_set_proxy_address_n, utc_connection_profile_startup, utc_connection_profile_cleanup},
- {"utc_connection_profile_set_state_changed_cb_p", utc_connection_profile_set_state_changed_cb_p, utc_connection_profile_startup, utc_connection_profile_cleanup},
- {"utc_connection_profile_set_state_changed_cb_n", utc_connection_profile_set_state_changed_cb_n, utc_connection_profile_startup, utc_connection_profile_cleanup},
- {"utc_connection_profile_unset_state_changed_cb_p", utc_connection_profile_unset_state_changed_cb_p, utc_connection_profile_startup, utc_connection_profile_cleanup},
- {"utc_connection_profile_unset_state_changed_cb_n", utc_connection_profile_unset_state_changed_cb_n, utc_connection_profile_startup, utc_connection_profile_cleanup},
- {"utc_connection_profile_set_cellular_service_type_p", utc_connection_profile_set_cellular_service_type_p, utc_connection_profile_startup, utc_connection_profile_cleanup},
- {"utc_connection_profile_set_cellular_service_type_n", utc_connection_profile_set_cellular_service_type_n, utc_connection_profile_startup, utc_connection_profile_cleanup},
- {"utc_connection_profile_set_cellular_apn_p", utc_connection_profile_set_cellular_apn_p, utc_connection_profile_startup, utc_connection_profile_cleanup},
- {"utc_connection_profile_set_cellular_apn_n", utc_connection_profile_set_cellular_apn_n, utc_connection_profile_startup, utc_connection_profile_cleanup},
- {"utc_connection_profile_set_cellular_auth_info_p", utc_connection_profile_set_cellular_auth_info_p, utc_connection_profile_startup, utc_connection_profile_cleanup},
- {"utc_connection_profile_set_cellular_auth_info_n", utc_connection_profile_set_cellular_auth_info_n, utc_connection_profile_startup, utc_connection_profile_cleanup},
- {"utc_connection_profile_set_cellular_home_url_p", utc_connection_profile_set_cellular_home_url_p, utc_connection_profile_startup, utc_connection_profile_cleanup},
- {"utc_connection_profile_set_cellular_home_url_n", utc_connection_profile_set_cellular_home_url_n, utc_connection_profile_startup, utc_connection_profile_cleanup},
- {"utc_connection_profile_set_cellular_pdn_type_p", utc_connection_profile_set_cellular_pdn_type_p, utc_connection_profile_startup, utc_connection_profile_cleanup},
- {"utc_connection_profile_set_cellular_pdn_type_n", utc_connection_profile_set_cellular_pdn_type_n, utc_connection_profile_startup, utc_connection_profile_cleanup},
- {"utc_connection_profile_set_cellular_roam_pdn_type_p", utc_connection_profile_set_cellular_roam_pdn_type_p, utc_connection_profile_startup, utc_connection_profile_cleanup},
- {"utc_connection_profile_set_cellular_roam_pdn_type_n", utc_connection_profile_set_cellular_roam_pdn_type_n, utc_connection_profile_startup, utc_connection_profile_cleanup},
- {"utc_connection_profile_get_cellular_service_type_p", utc_connection_profile_get_cellular_service_type_p, utc_connection_profile_startup, utc_connection_profile_cleanup},
- {"utc_connection_profile_get_cellular_service_type_n", utc_connection_profile_get_cellular_service_type_n, utc_connection_profile_startup, utc_connection_profile_cleanup},
- {"utc_connection_profile_get_cellular_apn_p", utc_connection_profile_get_cellular_apn_p, utc_connection_profile_startup, utc_connection_profile_cleanup},
- {"utc_connection_profile_get_cellular_apn_n", utc_connection_profile_get_cellular_apn_n, utc_connection_profile_startup, utc_connection_profile_cleanup},
- {"utc_connection_profile_get_cellular_auth_info_p", utc_connection_profile_get_cellular_auth_info_p, utc_connection_profile_startup, utc_connection_profile_cleanup},
- {"utc_connection_profile_get_cellular_auth_info_n", utc_connection_profile_get_cellular_auth_info_n, utc_connection_profile_startup, utc_connection_profile_cleanup},
- {"utc_connection_profile_get_cellular_home_url_p", utc_connection_profile_get_cellular_home_url_p, utc_connection_profile_startup, utc_connection_profile_cleanup},
- {"utc_connection_profile_get_cellular_home_url_n", utc_connection_profile_get_cellular_home_url_n, utc_connection_profile_startup, utc_connection_profile_cleanup},
- {"utc_connection_profile_get_cellular_pdn_type_p", utc_connection_profile_get_cellular_pdn_type_p, utc_connection_profile_startup, utc_connection_profile_cleanup},
- {"utc_connection_profile_get_cellular_pdn_type_n", utc_connection_profile_get_cellular_pdn_type_n, utc_connection_profile_startup, utc_connection_profile_cleanup},
- {"utc_connection_profile_get_cellular_roam_pdn_type_p", utc_connection_profile_get_cellular_roam_pdn_type_p, utc_connection_profile_startup, utc_connection_profile_cleanup},
- {"utc_connection_profile_get_cellular_roam_pdn_type_n", utc_connection_profile_get_cellular_roam_pdn_type_n, utc_connection_profile_startup, utc_connection_profile_cleanup},
- {"utc_connection_profile_is_cellular_roaming_p", utc_connection_profile_is_cellular_roaming_p, utc_connection_profile_startup, utc_connection_profile_cleanup},
- {"utc_connection_profile_is_cellular_roaming_n", utc_connection_profile_is_cellular_roaming_n, utc_connection_profile_startup, utc_connection_profile_cleanup},
- {"utc_connection_profile_is_cellular_hidden_p", utc_connection_profile_is_cellular_hidden_p, utc_connection_profile_startup, utc_connection_profile_cleanup},
- {"utc_connection_profile_is_cellular_hidden_n", utc_connection_profile_is_cellular_hidden_n, utc_connection_profile_startup, utc_connection_profile_cleanup},
- {"utc_connection_profile_is_cellular_editable_p", utc_connection_profile_is_cellular_editable_p, utc_connection_profile_startup, utc_connection_profile_cleanup},
- {"utc_connection_profile_is_cellular_editable_n", utc_connection_profile_is_cellular_editable_n, utc_connection_profile_startup, utc_connection_profile_cleanup},
- {"utc_connection_profile_is_cellular_default_p", utc_connection_profile_is_cellular_default_p, utc_connection_profile_startup, utc_connection_profile_cleanup},
- {"utc_connection_profile_is_cellular_default_n", utc_connection_profile_is_cellular_default_n, utc_connection_profile_startup, utc_connection_profile_cleanup},
- {"utc_connection_profile_refresh_p", utc_connection_profile_refresh_p, utc_connection_profile_startup, utc_connection_profile_cleanup},
- {"utc_connection_profile_refresh_n", utc_connection_profile_refresh_n, utc_connection_profile_startup, utc_connection_profile_cleanup},
- {"utc_connection_profile_get_wifi_essid_p", utc_connection_profile_get_wifi_essid_p, utc_connection_profile_startup, utc_connection_profile_cleanup},
- {"utc_connection_profile_get_wifi_essid_n", utc_connection_profile_get_wifi_essid_n, utc_connection_profile_startup, utc_connection_profile_cleanup},
- {"utc_connection_profile_get_wifi_bssid_p", utc_connection_profile_get_wifi_bssid_p, utc_connection_profile_startup, utc_connection_profile_cleanup},
- {"utc_connection_profile_get_wifi_bssid_n", utc_connection_profile_get_wifi_bssid_n, utc_connection_profile_startup, utc_connection_profile_cleanup},
- {"utc_connection_profile_get_wifi_rssi_p", utc_connection_profile_get_wifi_rssi_p, utc_connection_profile_startup, utc_connection_profile_cleanup},
- {"utc_connection_profile_get_wifi_rssi_n", utc_connection_profile_get_wifi_rssi_n, utc_connection_profile_startup, utc_connection_profile_cleanup},
- {"utc_connection_profile_get_wifi_frequency_p", utc_connection_profile_get_wifi_frequency_p, utc_connection_profile_startup, utc_connection_profile_cleanup},
- {"utc_connection_profile_get_wifi_frequency_n", utc_connection_profile_get_wifi_frequency_n, utc_connection_profile_startup, utc_connection_profile_cleanup},
- {"utc_connection_profile_get_wifi_max_speed_p", utc_connection_profile_get_wifi_max_speed_p, utc_connection_profile_startup, utc_connection_profile_cleanup},
- {"utc_connection_profile_get_wifi_max_speed_n", utc_connection_profile_get_wifi_max_speed_n, utc_connection_profile_startup, utc_connection_profile_cleanup},
- {"utc_connection_profile_get_wifi_security_type_p", utc_connection_profile_get_wifi_security_type_p, utc_connection_profile_startup, utc_connection_profile_cleanup},
- {"utc_connection_profile_get_wifi_security_type_n", utc_connection_profile_get_wifi_security_type_n, utc_connection_profile_startup, utc_connection_profile_cleanup},
- {"utc_connection_profile_get_wifi_encryption_type_p", utc_connection_profile_get_wifi_encryption_type_p, utc_connection_profile_startup, utc_connection_profile_cleanup},
- {"utc_connection_profile_get_wifi_encryption_type_n", utc_connection_profile_get_wifi_encryption_type_n, utc_connection_profile_startup, utc_connection_profile_cleanup},
- {"utc_connection_profile_is_wifi_passphrase_required_p", utc_connection_profile_is_wifi_passphrase_required_p, utc_connection_profile_startup, utc_connection_profile_cleanup},
- {"utc_connection_profile_is_wifi_passphrase_required_n", utc_connection_profile_is_wifi_passphrase_required_n, utc_connection_profile_startup, utc_connection_profile_cleanup},
- {"utc_connection_profile_set_wifi_passphrase_p", utc_connection_profile_set_wifi_passphrase_p, utc_connection_profile_startup, utc_connection_profile_cleanup},
- {"utc_connection_profile_set_wifi_passphrase_n", utc_connection_profile_set_wifi_passphrase_n, utc_connection_profile_startup, utc_connection_profile_cleanup},
- {"utc_connection_profile_is_wifi_wps_supported_p", utc_connection_profile_is_wifi_wps_supported_p, utc_connection_profile_startup, utc_connection_profile_cleanup},
+ {"utc_connection_profile_create_p", utc_connection_profile_create_p, utc_connection_profile_startup, utc_connection_profile_cleanup},
+ {"utc_connection_profile_create_n", utc_connection_profile_create_n, utc_connection_profile_startup, utc_connection_profile_cleanup},
+ {"utc_connection_profile_clone_p", utc_connection_profile_clone_p, utc_connection_profile_startup, utc_connection_profile_cleanup},
+ {"utc_connection_profile_clone_n", utc_connection_profile_clone_n, utc_connection_profile_startup, utc_connection_profile_cleanup},
+ {"utc_connection_profile_get_name_p", utc_connection_profile_get_name_p, utc_connection_profile_startup, utc_connection_profile_cleanup},
+ {"utc_connection_profile_get_name_n", utc_connection_profile_get_name_n, utc_connection_profile_startup, utc_connection_profile_cleanup},
+ {"utc_connection_profile_get_id_p", utc_connection_profile_get_id_p, utc_connection_profile_startup, utc_connection_profile_cleanup},
+ {"utc_connection_profile_get_id_n", utc_connection_profile_get_id_n, utc_connection_profile_startup, utc_connection_profile_cleanup},
+ {"utc_connection_profile_get_type_p", utc_connection_profile_get_type_p, utc_connection_profile_startup, utc_connection_profile_cleanup},
+ {"utc_connection_profile_get_type_n", utc_connection_profile_get_type_n, utc_connection_profile_startup, utc_connection_profile_cleanup},
+ {"utc_connection_profile_get_network_interface_name_p", utc_connection_profile_get_network_interface_name_p, utc_connection_profile_startup, utc_connection_profile_cleanup},
+ {"utc_connection_profile_get_network_interface_name_n", utc_connection_profile_get_network_interface_name_n, utc_connection_profile_startup, utc_connection_profile_cleanup},
+ {"utc_connection_profile_get_state_p", utc_connection_profile_get_state_p, utc_connection_profile_startup, utc_connection_profile_cleanup},
+ {"utc_connection_profile_get_state_n", utc_connection_profile_get_state_n, utc_connection_profile_startup, utc_connection_profile_cleanup},
+ {"utc_connection_profile_get_ip_config_type_p", utc_connection_profile_get_ip_config_type_p, utc_connection_profile_startup, utc_connection_profile_cleanup},
+ {"utc_connection_profile_get_ip_config_type_n", utc_connection_profile_get_ip_config_type_n, utc_connection_profile_startup, utc_connection_profile_cleanup},
+ {"utc_connection_profile_get_ip_address_p", utc_connection_profile_get_ip_address_p, utc_connection_profile_startup, utc_connection_profile_cleanup},
+ {"utc_connection_profile_get_ip_address_n", utc_connection_profile_get_ip_address_n, utc_connection_profile_startup, utc_connection_profile_cleanup},
+ {"utc_connection_profile_get_subnet_mask_p", utc_connection_profile_get_subnet_mask_p, utc_connection_profile_startup, utc_connection_profile_cleanup},
+ {"utc_connection_profile_get_subnet_mask_n", utc_connection_profile_get_subnet_mask_n, utc_connection_profile_startup, utc_connection_profile_cleanup},
+ {"utc_connection_profile_get_gateway_address_p", utc_connection_profile_get_gateway_address_p, utc_connection_profile_startup, utc_connection_profile_cleanup},
+ {"utc_connection_profile_get_gateway_address_n", utc_connection_profile_get_gateway_address_n, utc_connection_profile_startup, utc_connection_profile_cleanup},
+ {"utc_connection_profile_get_dhcp_server_address_p", utc_connection_profile_get_dhcp_server_address_p, utc_connection_profile_startup, utc_connection_profile_cleanup},
+ {"utc_connection_profile_get_dhcp_server_address_n", utc_connection_profile_get_dhcp_server_address_n, utc_connection_profile_startup, utc_connection_profile_cleanup},
+ {"utc_connection_profile_get_dhcp_lease_duration_p", utc_connection_profile_get_dhcp_lease_duration_p, utc_connection_profile_startup, utc_connection_profile_cleanup},
+ {"utc_connection_profile_get_dhcp_lease_duration_n", utc_connection_profile_get_dhcp_lease_duration_n, utc_connection_profile_startup, utc_connection_profile_cleanup},
+ {"utc_connection_profile_get_dns_address_p", utc_connection_profile_get_dns_address_p, utc_connection_profile_startup, utc_connection_profile_cleanup},
+ {"utc_connection_profile_get_dns_address_n", utc_connection_profile_get_dns_address_n, utc_connection_profile_startup, utc_connection_profile_cleanup},
+ {"utc_connection_profile_get_proxy_type_p", utc_connection_profile_get_proxy_type_p, utc_connection_profile_startup, utc_connection_profile_cleanup},
+ {"utc_connection_profile_get_proxy_type_n", utc_connection_profile_get_proxy_type_n, utc_connection_profile_startup, utc_connection_profile_cleanup},
+ {"utc_connection_profile_get_proxy_address_p", utc_connection_profile_get_proxy_address_p, utc_connection_profile_startup, utc_connection_profile_cleanup},
+ {"utc_connection_profile_get_proxy_address_n", utc_connection_profile_get_proxy_address_n, utc_connection_profile_startup, utc_connection_profile_cleanup},
+ {"utc_connection_profile_set_ip_config_type_p", utc_connection_profile_set_ip_config_type_p, utc_connection_profile_startup, utc_connection_profile_cleanup},
+ {"utc_connection_profile_set_ip_config_type_n", utc_connection_profile_set_ip_config_type_n, utc_connection_profile_startup, utc_connection_profile_cleanup},
+ {"utc_connection_profile_set_ip_address_p", utc_connection_profile_set_ip_address_p, utc_connection_profile_startup, utc_connection_profile_cleanup},
+ {"utc_connection_profile_set_ip_address_n", utc_connection_profile_set_ip_address_n, utc_connection_profile_startup, utc_connection_profile_cleanup},
+ {"utc_connection_profile_set_subnet_mask_p", utc_connection_profile_set_subnet_mask_p, utc_connection_profile_startup, utc_connection_profile_cleanup},
+ {"utc_connection_profile_set_subnet_mask_n", utc_connection_profile_set_subnet_mask_n, utc_connection_profile_startup, utc_connection_profile_cleanup},
+ {"utc_connection_profile_set_gateway_address_p", utc_connection_profile_set_gateway_address_p, utc_connection_profile_startup, utc_connection_profile_cleanup},
+ {"utc_connection_profile_set_gateway_address_n", utc_connection_profile_set_gateway_address_n, utc_connection_profile_startup, utc_connection_profile_cleanup},
+ {"utc_connection_profile_set_dns_address_p", utc_connection_profile_set_dns_address_p, utc_connection_profile_startup, utc_connection_profile_cleanup},
+ {"utc_connection_profile_set_dns_address_n", utc_connection_profile_set_dns_address_n, utc_connection_profile_startup, utc_connection_profile_cleanup},
+ {"utc_connection_profile_set_proxy_type_p", utc_connection_profile_set_proxy_type_p, utc_connection_profile_startup, utc_connection_profile_cleanup},
+ {"utc_connection_profile_set_proxy_type_n", utc_connection_profile_set_proxy_type_n, utc_connection_profile_startup, utc_connection_profile_cleanup},
+ {"utc_connection_profile_set_proxy_address_p", utc_connection_profile_set_proxy_address_p, utc_connection_profile_startup, utc_connection_profile_cleanup},
+ {"utc_connection_profile_set_proxy_address_n", utc_connection_profile_set_proxy_address_n, utc_connection_profile_startup, utc_connection_profile_cleanup},
+ {"utc_connection_profile_set_state_changed_cb_p", utc_connection_profile_set_state_changed_cb_p, utc_connection_profile_startup, utc_connection_profile_cleanup},
+ {"utc_connection_profile_set_state_changed_cb_n", utc_connection_profile_set_state_changed_cb_n, utc_connection_profile_startup, utc_connection_profile_cleanup},
+ {"utc_connection_profile_unset_state_changed_cb_p", utc_connection_profile_unset_state_changed_cb_p, utc_connection_profile_startup, utc_connection_profile_cleanup},
+ {"utc_connection_profile_unset_state_changed_cb_n", utc_connection_profile_unset_state_changed_cb_n, utc_connection_profile_startup, utc_connection_profile_cleanup},
+ {"utc_connection_profile_set_cellular_service_type_p", utc_connection_profile_set_cellular_service_type_p, utc_connection_profile_startup, utc_connection_profile_cleanup},
+ {"utc_connection_profile_set_cellular_service_type_n", utc_connection_profile_set_cellular_service_type_n, utc_connection_profile_startup, utc_connection_profile_cleanup},
+ {"utc_connection_profile_set_cellular_apn_p", utc_connection_profile_set_cellular_apn_p, utc_connection_profile_startup, utc_connection_profile_cleanup},
+ {"utc_connection_profile_set_cellular_apn_n", utc_connection_profile_set_cellular_apn_n, utc_connection_profile_startup, utc_connection_profile_cleanup},
+ {"utc_connection_profile_set_cellular_auth_info_p", utc_connection_profile_set_cellular_auth_info_p, utc_connection_profile_startup, utc_connection_profile_cleanup},
+ {"utc_connection_profile_set_cellular_auth_info_n", utc_connection_profile_set_cellular_auth_info_n, utc_connection_profile_startup, utc_connection_profile_cleanup},
+ {"utc_connection_profile_set_cellular_home_url_p", utc_connection_profile_set_cellular_home_url_p, utc_connection_profile_startup, utc_connection_profile_cleanup},
+ {"utc_connection_profile_set_cellular_home_url_n", utc_connection_profile_set_cellular_home_url_n, utc_connection_profile_startup, utc_connection_profile_cleanup},
+ {"utc_connection_profile_set_cellular_pdn_type_p", utc_connection_profile_set_cellular_pdn_type_p, utc_connection_profile_startup, utc_connection_profile_cleanup},
+ {"utc_connection_profile_set_cellular_pdn_type_n", utc_connection_profile_set_cellular_pdn_type_n, utc_connection_profile_startup, utc_connection_profile_cleanup},
+ {"utc_connection_profile_set_cellular_roam_pdn_type_p", utc_connection_profile_set_cellular_roam_pdn_type_p, utc_connection_profile_startup, utc_connection_profile_cleanup},
+ {"utc_connection_profile_set_cellular_roam_pdn_type_n", utc_connection_profile_set_cellular_roam_pdn_type_n, utc_connection_profile_startup, utc_connection_profile_cleanup},
+ {"utc_connection_profile_get_cellular_service_type_p", utc_connection_profile_get_cellular_service_type_p, utc_connection_profile_startup, utc_connection_profile_cleanup},
+ {"utc_connection_profile_get_cellular_service_type_n", utc_connection_profile_get_cellular_service_type_n, utc_connection_profile_startup, utc_connection_profile_cleanup},
+ {"utc_connection_profile_get_cellular_apn_p", utc_connection_profile_get_cellular_apn_p, utc_connection_profile_startup, utc_connection_profile_cleanup},
+ {"utc_connection_profile_get_cellular_apn_n", utc_connection_profile_get_cellular_apn_n, utc_connection_profile_startup, utc_connection_profile_cleanup},
+ {"utc_connection_profile_get_cellular_auth_info_p", utc_connection_profile_get_cellular_auth_info_p, utc_connection_profile_startup, utc_connection_profile_cleanup},
+ {"utc_connection_profile_get_cellular_auth_info_n", utc_connection_profile_get_cellular_auth_info_n, utc_connection_profile_startup, utc_connection_profile_cleanup},
+ {"utc_connection_profile_get_cellular_home_url_p", utc_connection_profile_get_cellular_home_url_p, utc_connection_profile_startup, utc_connection_profile_cleanup},
+ {"utc_connection_profile_get_cellular_home_url_n", utc_connection_profile_get_cellular_home_url_n, utc_connection_profile_startup, utc_connection_profile_cleanup},
+ {"utc_connection_profile_get_cellular_pdn_type_p", utc_connection_profile_get_cellular_pdn_type_p, utc_connection_profile_startup, utc_connection_profile_cleanup},
+ {"utc_connection_profile_get_cellular_pdn_type_n", utc_connection_profile_get_cellular_pdn_type_n, utc_connection_profile_startup, utc_connection_profile_cleanup},
+ {"utc_connection_profile_get_cellular_roam_pdn_type_p", utc_connection_profile_get_cellular_roam_pdn_type_p, utc_connection_profile_startup, utc_connection_profile_cleanup},
+ {"utc_connection_profile_get_cellular_roam_pdn_type_n", utc_connection_profile_get_cellular_roam_pdn_type_n, utc_connection_profile_startup, utc_connection_profile_cleanup},
+ {"utc_connection_profile_is_cellular_roaming_p", utc_connection_profile_is_cellular_roaming_p, utc_connection_profile_startup, utc_connection_profile_cleanup},
+ {"utc_connection_profile_is_cellular_roaming_n", utc_connection_profile_is_cellular_roaming_n, utc_connection_profile_startup, utc_connection_profile_cleanup},
+ {"utc_connection_profile_is_cellular_hidden_p", utc_connection_profile_is_cellular_hidden_p, utc_connection_profile_startup, utc_connection_profile_cleanup},
+ {"utc_connection_profile_is_cellular_hidden_n", utc_connection_profile_is_cellular_hidden_n, utc_connection_profile_startup, utc_connection_profile_cleanup},
+ {"utc_connection_profile_is_cellular_editable_p", utc_connection_profile_is_cellular_editable_p, utc_connection_profile_startup, utc_connection_profile_cleanup},
+ {"utc_connection_profile_is_cellular_editable_n", utc_connection_profile_is_cellular_editable_n, utc_connection_profile_startup, utc_connection_profile_cleanup},
+ {"utc_connection_profile_is_cellular_default_p", utc_connection_profile_is_cellular_default_p, utc_connection_profile_startup, utc_connection_profile_cleanup},
+ {"utc_connection_profile_is_cellular_default_n", utc_connection_profile_is_cellular_default_n, utc_connection_profile_startup, utc_connection_profile_cleanup},
+ {"utc_connection_profile_refresh_p", utc_connection_profile_refresh_p, utc_connection_profile_startup, utc_connection_profile_cleanup},
+ {"utc_connection_profile_refresh_n", utc_connection_profile_refresh_n, utc_connection_profile_startup, utc_connection_profile_cleanup},
+ {"utc_connection_profile_get_wifi_essid_p", utc_connection_profile_get_wifi_essid_p, utc_connection_profile_startup, utc_connection_profile_cleanup},
+ {"utc_connection_profile_get_wifi_essid_n", utc_connection_profile_get_wifi_essid_n, utc_connection_profile_startup, utc_connection_profile_cleanup},
+ {"utc_connection_profile_get_wifi_bssid_p", utc_connection_profile_get_wifi_bssid_p, utc_connection_profile_startup, utc_connection_profile_cleanup},
+ {"utc_connection_profile_get_wifi_bssid_n", utc_connection_profile_get_wifi_bssid_n, utc_connection_profile_startup, utc_connection_profile_cleanup},
+ {"utc_connection_profile_get_wifi_rssi_p", utc_connection_profile_get_wifi_rssi_p, utc_connection_profile_startup, utc_connection_profile_cleanup},
+ {"utc_connection_profile_get_wifi_rssi_n", utc_connection_profile_get_wifi_rssi_n, utc_connection_profile_startup, utc_connection_profile_cleanup},
+ {"utc_connection_profile_get_wifi_frequency_p", utc_connection_profile_get_wifi_frequency_p, utc_connection_profile_startup, utc_connection_profile_cleanup},
+ {"utc_connection_profile_get_wifi_frequency_n", utc_connection_profile_get_wifi_frequency_n, utc_connection_profile_startup, utc_connection_profile_cleanup},
+ {"utc_connection_profile_get_wifi_max_speed_p", utc_connection_profile_get_wifi_max_speed_p, utc_connection_profile_startup, utc_connection_profile_cleanup},
+ {"utc_connection_profile_get_wifi_max_speed_n", utc_connection_profile_get_wifi_max_speed_n, utc_connection_profile_startup, utc_connection_profile_cleanup},
+ {"utc_connection_profile_get_wifi_security_type_p", utc_connection_profile_get_wifi_security_type_p, utc_connection_profile_startup, utc_connection_profile_cleanup},
+ {"utc_connection_profile_get_wifi_security_type_n", utc_connection_profile_get_wifi_security_type_n, utc_connection_profile_startup, utc_connection_profile_cleanup},
+ {"utc_connection_profile_get_wifi_encryption_type_p", utc_connection_profile_get_wifi_encryption_type_p, utc_connection_profile_startup, utc_connection_profile_cleanup},
+ {"utc_connection_profile_get_wifi_encryption_type_n", utc_connection_profile_get_wifi_encryption_type_n, utc_connection_profile_startup, utc_connection_profile_cleanup},
+ {"utc_connection_profile_is_wifi_passphrase_required_p", utc_connection_profile_is_wifi_passphrase_required_p, utc_connection_profile_startup, utc_connection_profile_cleanup},
+ {"utc_connection_profile_is_wifi_passphrase_required_n", utc_connection_profile_is_wifi_passphrase_required_n, utc_connection_profile_startup, utc_connection_profile_cleanup},
+ {"utc_connection_profile_set_wifi_passphrase_p", utc_connection_profile_set_wifi_passphrase_p, utc_connection_profile_startup, utc_connection_profile_cleanup},
+ {"utc_connection_profile_set_wifi_passphrase_n", utc_connection_profile_set_wifi_passphrase_n, utc_connection_profile_startup, utc_connection_profile_cleanup},
+ {"utc_connection_profile_is_wifi_wps_supported_p", utc_connection_profile_is_wifi_wps_supported_p, utc_connection_profile_startup, utc_connection_profile_cleanup},
{"utc_connection_profile_is_wifi_wps_supported_n", utc_connection_profile_is_wifi_wps_supported_n, utc_connection_profile_startup, utc_connection_profile_cleanup},
- {"utc_connection_profile_get_ipv6_state_p", utc_connection_profile_get_ipv6_state_p, utc_connection_profile_startup, utc_connection_profile_cleanup},
- {"utc_connection_profile_get_ipv6_state_n", utc_connection_profile_get_ipv6_state_n, utc_connection_profile_startup, utc_connection_profile_cleanup},
- {"utc_connection_profile_get_prefix_length_p", utc_connection_profile_get_prefix_length_p, utc_connection_profile_startup, utc_connection_profile_cleanup},
- {"utc_connection_profile_get_prefix_length_n", utc_connection_profile_get_prefix_length_n, utc_connection_profile_startup, utc_connection_profile_cleanup},
- {"utc_connection_profile_set_prefix_length_p", utc_connection_profile_set_prefix_length_p, utc_connection_profile_startup, utc_connection_profile_cleanup},
- {"utc_connection_profile_set_prefix_length_n", utc_connection_profile_set_prefix_length_n, utc_connection_profile_startup, utc_connection_profile_cleanup},
- {"utc_connection_profile_get_dns_config_type_p", utc_connection_profile_get_dns_config_type_p, utc_connection_profile_startup, utc_connection_profile_cleanup},
- {"utc_connection_profile_get_dns_config_type_n", utc_connection_profile_get_dns_config_type_n, utc_connection_profile_startup, utc_connection_profile_cleanup},
- {"utc_connection_profile_set_dns_config_type_p", utc_connection_profile_set_dns_config_type_p, utc_connection_profile_startup, utc_connection_profile_cleanup},
- {"utc_connection_profile_set_dns_config_type_n", utc_connection_profile_set_dns_config_type_n, utc_connection_profile_startup, utc_connection_profile_cleanup},
- {"utc_connection_profile_destroy_p", utc_connection_profile_destroy_p, utc_connection_profile_startup, utc_connection_profile_cleanup},
- {"utc_connection_profile_destroy_n", utc_connection_profile_destroy_n, utc_connection_profile_startup, utc_connection_profile_cleanup},
- {"utc_connection_create_p", utc_connection_create_p, utc_network_connection_startup, utc_network_connection_cleanup},
- {"utc_connection_create_n", utc_connection_create_n, utc_network_connection_startup, utc_network_connection_cleanup},
- {"utc_connection_get_ip_address_p", utc_connection_get_ip_address_p, utc_network_connection_startup, utc_network_connection_cleanup},
- {"utc_connection_get_ip_address_n", utc_connection_get_ip_address_n, utc_network_connection_startup, utc_network_connection_cleanup},
- {"utc_connection_get_proxy_p", utc_connection_get_proxy_p, utc_network_connection_startup, utc_network_connection_cleanup},
- {"utc_connection_get_proxy_n", utc_connection_get_proxy_n, utc_network_connection_startup, utc_network_connection_cleanup},
- {"utc_connection_get_type_n", utc_connection_get_type_n, utc_network_connection_startup, utc_network_connection_cleanup},
- {"utc_connection_get_type_p", utc_connection_get_type_p, utc_network_connection_startup, utc_network_connection_cleanup},
- {"utc_connection_is_metered_network_n", utc_connection_is_metered_network_n, utc_network_connection_startup, utc_network_connection_cleanup},
- {"utc_connection_is_metered_network_p", utc_connection_is_metered_network_p, utc_network_connection_startup, utc_network_connection_cleanup},
- {"utc_connection_get_cellular_state_n", utc_connection_get_cellular_state_n, utc_network_connection_startup, utc_network_connection_cleanup},
- {"utc_connection_get_cellular_state_p", utc_connection_get_cellular_state_p, utc_network_connection_startup, utc_network_connection_cleanup},
- {"utc_connection_get_ethernet_state_n", utc_connection_get_ethernet_state_n, utc_network_connection_startup, utc_network_connection_cleanup},
- {"utc_connection_get_ethernet_state_p", utc_connection_get_ethernet_state_p, utc_network_connection_startup, utc_network_connection_cleanup},
- {"utc_connection_get_wifi_state_n", utc_connection_get_wifi_state_n, utc_network_connection_startup, utc_network_connection_cleanup},
- {"utc_connection_get_wifi_state_p", utc_connection_get_wifi_state_p, utc_network_connection_startup, utc_network_connection_cleanup},
- {"utc_connection_get_bt_state_n", utc_connection_get_bt_state_n, utc_network_connection_startup, utc_network_connection_cleanup},
- {"utc_connection_get_bt_state_p", utc_connection_get_bt_state_p, utc_network_connection_startup, utc_network_connection_cleanup},
- {"utc_connection_get_mac_address_n", utc_connection_get_mac_address_n, utc_network_connection_startup, utc_network_connection_cleanup},
- {"utc_connection_get_mac_address_p", utc_connection_get_mac_address_p, utc_network_connection_startup, utc_network_connection_cleanup},
- {"utc_connection_set_ethernet_cable_state_chaged_cb_n", utc_connection_set_ethernet_cable_state_chaged_cb_n, utc_network_connection_startup, utc_network_connection_cleanup},
+ {"utc_connection_profile_get_ipv6_state_p", utc_connection_profile_get_ipv6_state_p, utc_connection_profile_startup, utc_connection_profile_cleanup},
+ {"utc_connection_profile_get_ipv6_state_n", utc_connection_profile_get_ipv6_state_n, utc_connection_profile_startup, utc_connection_profile_cleanup},
+ {"utc_connection_profile_get_prefix_length_p", utc_connection_profile_get_prefix_length_p, utc_connection_profile_startup, utc_connection_profile_cleanup},
+ {"utc_connection_profile_get_prefix_length_n", utc_connection_profile_get_prefix_length_n, utc_connection_profile_startup, utc_connection_profile_cleanup},
+ {"utc_connection_profile_set_prefix_length_p", utc_connection_profile_set_prefix_length_p, utc_connection_profile_startup, utc_connection_profile_cleanup},
+ {"utc_connection_profile_set_prefix_length_n", utc_connection_profile_set_prefix_length_n, utc_connection_profile_startup, utc_connection_profile_cleanup},
+ {"utc_connection_profile_get_dns_config_type_p", utc_connection_profile_get_dns_config_type_p, utc_connection_profile_startup, utc_connection_profile_cleanup},
+ {"utc_connection_profile_get_dns_config_type_n", utc_connection_profile_get_dns_config_type_n, utc_connection_profile_startup, utc_connection_profile_cleanup},
+ {"utc_connection_profile_set_dns_config_type_p", utc_connection_profile_set_dns_config_type_p, utc_connection_profile_startup, utc_connection_profile_cleanup},
+ {"utc_connection_profile_set_dns_config_type_n", utc_connection_profile_set_dns_config_type_n, utc_connection_profile_startup, utc_connection_profile_cleanup},
+ {"utc_connection_profile_destroy_p", utc_connection_profile_destroy_p, utc_connection_profile_startup, utc_connection_profile_cleanup},
+ {"utc_connection_profile_destroy_n", utc_connection_profile_destroy_n, utc_connection_profile_startup, utc_connection_profile_cleanup},
+ {"utc_connection_create_p", utc_connection_create_p, utc_network_connection_startup, utc_network_connection_cleanup},
+ {"utc_connection_create_n", utc_connection_create_n, utc_network_connection_startup, utc_network_connection_cleanup},
+ {"utc_connection_get_ip_address_p", utc_connection_get_ip_address_p, utc_network_connection_startup, utc_network_connection_cleanup},
+ {"utc_connection_get_ip_address_n", utc_connection_get_ip_address_n, utc_network_connection_startup, utc_network_connection_cleanup},
+ {"utc_connection_get_proxy_p", utc_connection_get_proxy_p, utc_network_connection_startup, utc_network_connection_cleanup},
+ {"utc_connection_get_proxy_n", utc_connection_get_proxy_n, utc_network_connection_startup, utc_network_connection_cleanup},
+ {"utc_connection_get_type_n", utc_connection_get_type_n, utc_network_connection_startup, utc_network_connection_cleanup},
+ {"utc_connection_get_type_p", utc_connection_get_type_p, utc_network_connection_startup, utc_network_connection_cleanup},
+ {"utc_connection_is_metered_network_n", utc_connection_is_metered_network_n, utc_network_connection_startup, utc_network_connection_cleanup},
+ {"utc_connection_is_metered_network_p", utc_connection_is_metered_network_p, utc_network_connection_startup, utc_network_connection_cleanup},
+ {"utc_connection_get_cellular_state_n", utc_connection_get_cellular_state_n, utc_network_connection_startup, utc_network_connection_cleanup},
+ {"utc_connection_get_cellular_state_p", utc_connection_get_cellular_state_p, utc_network_connection_startup, utc_network_connection_cleanup},
+ {"utc_connection_get_ethernet_state_n", utc_connection_get_ethernet_state_n, utc_network_connection_startup, utc_network_connection_cleanup},
+ {"utc_connection_get_ethernet_state_p", utc_connection_get_ethernet_state_p, utc_network_connection_startup, utc_network_connection_cleanup},
+ {"utc_connection_get_wifi_state_n", utc_connection_get_wifi_state_n, utc_network_connection_startup, utc_network_connection_cleanup},
+ {"utc_connection_get_wifi_state_p", utc_connection_get_wifi_state_p, utc_network_connection_startup, utc_network_connection_cleanup},
+ {"utc_connection_get_bt_state_n", utc_connection_get_bt_state_n, utc_network_connection_startup, utc_network_connection_cleanup},
+ {"utc_connection_get_bt_state_p", utc_connection_get_bt_state_p, utc_network_connection_startup, utc_network_connection_cleanup},
+ {"utc_connection_get_mac_address_n", utc_connection_get_mac_address_n, utc_network_connection_startup, utc_network_connection_cleanup},
+ {"utc_connection_get_mac_address_p", utc_connection_get_mac_address_p, utc_network_connection_startup, utc_network_connection_cleanup},
+ {"utc_connection_set_ethernet_cable_state_chaged_cb_n", utc_connection_set_ethernet_cable_state_chaged_cb_n, utc_network_connection_startup, utc_network_connection_cleanup},
{"utc_connection_set_ethernet_cable_state_chaged_cb_p", utc_connection_set_ethernet_cable_state_chaged_cb_p, utc_network_connection_startup, utc_network_connection_cleanup},
- {"utc_connection_unset_ethernet_cable_state_chaged_cb_n", utc_connection_unset_ethernet_cable_state_chaged_cb_n, utc_network_connection_startup, utc_network_connection_cleanup},
+ {"utc_connection_unset_ethernet_cable_state_chaged_cb_n", utc_connection_unset_ethernet_cable_state_chaged_cb_n, utc_network_connection_startup, utc_network_connection_cleanup},
{"utc_connection_unset_ethernet_cable_state_chaged_cb_p", utc_connection_unset_ethernet_cable_state_chaged_cb_p, utc_network_connection_startup, utc_network_connection_cleanup},
- {"utc_connection_get_ethernet_cable_state_n", utc_connection_get_ethernet_cable_state_n, utc_network_connection_startup, utc_network_connection_cleanup},
- {"utc_connection_get_ethernet_cable_state_p", utc_connection_get_ethernet_cable_state_p, utc_network_connection_startup, utc_network_connection_cleanup},
- {"utc_connection_get_current_profile_p", utc_connection_get_current_profile_p, utc_network_connection_startup, utc_network_connection_cleanup},
- {"utc_connection_get_current_profile_n", utc_connection_get_current_profile_n, utc_network_connection_startup, utc_network_connection_cleanup},
- {"utc_connection_get_default_cellular_service_profile_p", utc_connection_get_default_cellular_service_profile_p, utc_network_connection_startup, utc_network_connection_cleanup},
- {"utc_connection_get_default_cellular_service_profile_n", utc_connection_get_default_cellular_service_profile_n, utc_network_connection_startup, utc_network_connection_cleanup},
- {"utc_connection_set_default_cellular_service_profile_p", utc_connection_set_default_cellular_service_profile_p, utc_network_connection_startup, utc_network_connection_cleanup},
- {"utc_connection_set_default_cellular_service_profile_n", utc_connection_set_default_cellular_service_profile_n, utc_network_connection_startup, utc_network_connection_cleanup},
- {"utc_connection_set_default_cellular_service_profile_async_p", utc_connection_set_default_cellular_service_profile_async_p, utc_network_connection_startup, utc_network_connection_cleanup},
- {"utc_connection_set_default_cellular_service_profile_async_n", utc_connection_set_default_cellular_service_profile_async_n, utc_network_connection_startup, utc_network_connection_cleanup},
- {"utc_connection_set_type_changed_cb_n", utc_connection_set_type_changed_cb_n, utc_network_connection_startup, utc_network_connection_cleanup},
- {"utc_connection_set_type_changed_cb_p", utc_connection_set_type_changed_cb_p, utc_network_connection_startup, utc_network_connection_cleanup},
- {"utc_connection_unset_type_changed_cb_n", utc_connection_unset_type_changed_cb_n, utc_network_connection_startup, utc_network_connection_cleanup},
- {"utc_connection_unset_type_changed_cb_p", utc_connection_unset_type_changed_cb_p, utc_network_connection_startup, utc_network_connection_cleanup},
- {"utc_connection_set_ip_address_changed_cb_n", utc_connection_set_ip_address_changed_cb_n, utc_network_connection_startup, utc_network_connection_cleanup},
- {"utc_connection_set_ip_address_changed_cb_p", utc_connection_set_ip_address_changed_cb_p, utc_network_connection_startup, utc_network_connection_cleanup},
- {"utc_connection_unset_ip_address_changed_cb_n", utc_connection_unset_ip_address_changed_cb_n, utc_network_connection_startup, utc_network_connection_cleanup},
- {"utc_connection_unset_ip_address_changed_cb_p", utc_connection_unset_ip_address_changed_cb_p, utc_network_connection_startup, utc_network_connection_cleanup},
- {"utc_connection_set_proxy_address_changed_cb_n", utc_connection_set_proxy_address_changed_cb_n, utc_network_connection_startup, utc_network_connection_cleanup},
- {"utc_connection_set_proxy_address_changed_cb_p", utc_connection_set_proxy_address_changed_cb_p, utc_network_connection_startup, utc_network_connection_cleanup},
- {"utc_connection_unset_proxy_address_changed_cb_n", utc_connection_unset_proxy_address_changed_cb_n, utc_network_connection_startup, utc_network_connection_cleanup},
- {"utc_connection_unset_proxy_address_changed_cb_p", utc_connection_unset_proxy_address_changed_cb_p, utc_network_connection_startup, utc_network_connection_cleanup},
- {"utc_connection_get_statistics_p", utc_connection_get_statistics_p, utc_network_connection_startup, utc_network_connection_cleanup},
- {"utc_connection_get_statistics_n", utc_connection_get_statistics_n, utc_network_connection_startup, utc_network_connection_cleanup},
- {"utc_connection_reset_statistics_p", utc_connection_reset_statistics_p, utc_network_connection_startup, utc_network_connection_cleanup},
- {"utc_connection_reset_statistics_n", utc_connection_reset_statistics_n, utc_network_connection_startup, utc_network_connection_cleanup},
- {"utc_connection_add_route_n", utc_connection_add_route_n, utc_network_connection_startup, utc_network_connection_cleanup},
- {"utc_connection_add_route_p", utc_connection_add_route_p, utc_network_connection_startup, utc_network_connection_cleanup},
- {"utc_connection_remove_route_n", utc_connection_remove_route_n, utc_network_connection_startup, utc_network_connection_cleanup},
- {"utc_connection_remove_route_p", utc_connection_remove_route_p, utc_network_connection_startup, utc_network_connection_cleanup},
- {"utc_connection_add_route_ipv6_n", utc_connection_add_route_ipv6_n, utc_network_connection_startup, utc_network_connection_cleanup},
- {"utc_connection_add_route_ipv6_p", utc_connection_add_route_ipv6_p, utc_network_connection_startup, utc_network_connection_cleanup},
- {"utc_connection_remove_route_ipv6_n", utc_connection_remove_route_ipv6_n, utc_network_connection_startup, utc_network_connection_cleanup},
- {"utc_connection_remove_route_ipv6_p", utc_connection_remove_route_ipv6_p, utc_network_connection_startup, utc_network_connection_cleanup},
+ {"utc_connection_get_ethernet_cable_state_n", utc_connection_get_ethernet_cable_state_n, utc_network_connection_startup, utc_network_connection_cleanup},
+ {"utc_connection_get_ethernet_cable_state_p", utc_connection_get_ethernet_cable_state_p, utc_network_connection_startup, utc_network_connection_cleanup},
+ {"utc_connection_get_current_profile_p", utc_connection_get_current_profile_p, utc_network_connection_startup, utc_network_connection_cleanup},
+ {"utc_connection_get_current_profile_n", utc_connection_get_current_profile_n, utc_network_connection_startup, utc_network_connection_cleanup},
+ {"utc_connection_get_default_cellular_service_profile_p", utc_connection_get_default_cellular_service_profile_p, utc_network_connection_startup, utc_network_connection_cleanup},
+ {"utc_connection_get_default_cellular_service_profile_n", utc_connection_get_default_cellular_service_profile_n, utc_network_connection_startup, utc_network_connection_cleanup},
+ {"utc_connection_set_default_cellular_service_profile_p", utc_connection_set_default_cellular_service_profile_p, utc_network_connection_startup, utc_network_connection_cleanup},
+ {"utc_connection_set_default_cellular_service_profile_n", utc_connection_set_default_cellular_service_profile_n, utc_network_connection_startup, utc_network_connection_cleanup},
+ {"utc_connection_set_default_cellular_service_profile_async_p", utc_connection_set_default_cellular_service_profile_async_p, utc_network_connection_startup, utc_network_connection_cleanup},
+ {"utc_connection_set_default_cellular_service_profile_async_n", utc_connection_set_default_cellular_service_profile_async_n, utc_network_connection_startup, utc_network_connection_cleanup},
+ {"utc_connection_set_type_changed_cb_n", utc_connection_set_type_changed_cb_n, utc_network_connection_startup, utc_network_connection_cleanup},
+ {"utc_connection_set_type_changed_cb_p", utc_connection_set_type_changed_cb_p, utc_network_connection_startup, utc_network_connection_cleanup},
+ {"utc_connection_unset_type_changed_cb_n", utc_connection_unset_type_changed_cb_n, utc_network_connection_startup, utc_network_connection_cleanup},
+ {"utc_connection_unset_type_changed_cb_p", utc_connection_unset_type_changed_cb_p, utc_network_connection_startup, utc_network_connection_cleanup},
+ {"utc_connection_set_ip_address_changed_cb_n", utc_connection_set_ip_address_changed_cb_n, utc_network_connection_startup, utc_network_connection_cleanup},
+ {"utc_connection_set_ip_address_changed_cb_p", utc_connection_set_ip_address_changed_cb_p, utc_network_connection_startup, utc_network_connection_cleanup},
+ {"utc_connection_unset_ip_address_changed_cb_n", utc_connection_unset_ip_address_changed_cb_n, utc_network_connection_startup, utc_network_connection_cleanup},
+ {"utc_connection_unset_ip_address_changed_cb_p", utc_connection_unset_ip_address_changed_cb_p, utc_network_connection_startup, utc_network_connection_cleanup},
+ {"utc_connection_set_proxy_address_changed_cb_n", utc_connection_set_proxy_address_changed_cb_n, utc_network_connection_startup, utc_network_connection_cleanup},
+ {"utc_connection_set_proxy_address_changed_cb_p", utc_connection_set_proxy_address_changed_cb_p, utc_network_connection_startup, utc_network_connection_cleanup},
+ {"utc_connection_unset_proxy_address_changed_cb_n", utc_connection_unset_proxy_address_changed_cb_n, utc_network_connection_startup, utc_network_connection_cleanup},
+ {"utc_connection_unset_proxy_address_changed_cb_p", utc_connection_unset_proxy_address_changed_cb_p, utc_network_connection_startup, utc_network_connection_cleanup},
+ {"utc_connection_get_statistics_p", utc_connection_get_statistics_p, utc_network_connection_startup, utc_network_connection_cleanup},
+ {"utc_connection_get_statistics_n", utc_connection_get_statistics_n, utc_network_connection_startup, utc_network_connection_cleanup},
+ {"utc_connection_reset_statistics_p", utc_connection_reset_statistics_p, utc_network_connection_startup, utc_network_connection_cleanup},
+ {"utc_connection_reset_statistics_n", utc_connection_reset_statistics_n, utc_network_connection_startup, utc_network_connection_cleanup},
+ {"utc_connection_add_route_n", utc_connection_add_route_n, utc_network_connection_startup, utc_network_connection_cleanup},
+ {"utc_connection_add_route_p", utc_connection_add_route_p, utc_network_connection_startup, utc_network_connection_cleanup},
+ {"utc_connection_remove_route_n", utc_connection_remove_route_n, utc_network_connection_startup, utc_network_connection_cleanup},
+ {"utc_connection_remove_route_p", utc_connection_remove_route_p, utc_network_connection_startup, utc_network_connection_cleanup},
+ {"utc_connection_add_route_ipv6_n", utc_connection_add_route_ipv6_n, utc_network_connection_startup, utc_network_connection_cleanup},
+ {"utc_connection_add_route_ipv6_p", utc_connection_add_route_ipv6_p, utc_network_connection_startup, utc_network_connection_cleanup},
+ {"utc_connection_remove_route_ipv6_n", utc_connection_remove_route_ipv6_n, utc_network_connection_startup, utc_network_connection_cleanup},
+ {"utc_connection_remove_route_ipv6_p", utc_connection_remove_route_ipv6_p, utc_network_connection_startup, utc_network_connection_cleanup},
{"utc_connection_add_route_entry_n", utc_connection_add_route_entry_n, utc_network_connection_startup, utc_network_connection_cleanup},
{"utc_connection_add_route_entry_p", utc_connection_add_route_entry_p, utc_network_connection_startup, utc_network_connection_cleanup},
{"utc_connection_remove_route_entry_n", utc_connection_remove_route_entry_n, utc_network_connection_startup, utc_network_connection_cleanup},
{"utc_connection_remove_route_entry_p", utc_connection_remove_route_entry_p, utc_network_connection_startup, utc_network_connection_cleanup},
- {"utc_connection_get_profile_iterator_n", utc_connection_get_profile_iterator_n, utc_network_connection_startup, utc_network_connection_cleanup},
- {"utc_connection_get_profile_iterator_p", utc_connection_get_profile_iterator_p, utc_network_connection_startup, utc_network_connection_cleanup},
- {"utc_connection_destroy_profile_iterator_n", utc_connection_destroy_profile_iterator_n, utc_network_connection_startup, utc_network_connection_cleanup},
- {"utc_connection_destroy_profile_iterator_p", utc_connection_destroy_profile_iterator_p, utc_network_connection_startup, utc_network_connection_cleanup},
- {"utc_connection_profile_iterator_has_next_n", utc_connection_profile_iterator_has_next_n, utc_network_connection_startup, utc_network_connection_cleanup},
- {"utc_connection_profile_iterator_has_next_p", utc_connection_profile_iterator_has_next_p, utc_network_connection_startup, utc_network_connection_cleanup},
- {"utc_connection_profile_iterator_next_n", utc_connection_profile_iterator_next_n, utc_network_connection_startup, utc_network_connection_cleanup},
- {"utc_connection_profile_iterator_next_p", utc_connection_profile_iterator_next_p, utc_network_connection_startup, utc_network_connection_cleanup},
- {"utc_connection_add_profile_p", utc_connection_add_profile_p, utc_network_connection_startup, utc_network_connection_cleanup},
- {"utc_connection_add_profile_n", utc_connection_add_profile_n, utc_network_connection_startup, utc_network_connection_cleanup},
- {"utc_connection_close_profile_p", utc_connection_close_profile_p, utc_network_connection_startup, utc_network_connection_cleanup},
- {"utc_connection_close_profile_n", utc_connection_close_profile_n, utc_network_connection_startup, utc_network_connection_cleanup},
- {"utc_connection_update_profile_p", utc_connection_update_profile_p, utc_network_connection_startup, utc_network_connection_cleanup},
- {"utc_connection_update_profile_n", utc_connection_update_profile_n, utc_network_connection_startup, utc_network_connection_cleanup},
- {"utc_connection_remove_profile_p", utc_connection_remove_profile_p, utc_network_connection_startup, utc_network_connection_cleanup},
- {"utc_connection_remove_profile_n", utc_connection_remove_profile_n, utc_network_connection_startup, utc_network_connection_cleanup},
- {"utc_connection_open_profile_p", utc_connection_open_profile_p, utc_network_connection_startup, utc_network_connection_cleanup},
- {"utc_connection_open_profile_n", utc_connection_open_profile_n, utc_network_connection_startup, utc_network_connection_cleanup},
- {"utc_connection_reset_profile_p", utc_connection_reset_profile_p, utc_network_connection_startup, utc_network_connection_cleanup},
- {"utc_connection_reset_profile_n", utc_connection_reset_profile_n, utc_network_connection_startup, utc_network_connection_cleanup},
- {"utc_connection_foreach_ipv6_address_p", utc_connection_foreach_ipv6_address_p, utc_network_connection_startup, utc_network_connection_cleanup},
- {"utc_connection_foreach_ipv6_address_n", utc_connection_foreach_ipv6_address_n, utc_network_connection_startup, utc_network_connection_cleanup},
+ {"utc_connection_get_profile_iterator_n", utc_connection_get_profile_iterator_n, utc_network_connection_startup, utc_network_connection_cleanup},
+ {"utc_connection_get_profile_iterator_p", utc_connection_get_profile_iterator_p, utc_network_connection_startup, utc_network_connection_cleanup},
+ {"utc_connection_destroy_profile_iterator_n", utc_connection_destroy_profile_iterator_n, utc_network_connection_startup, utc_network_connection_cleanup},
+ {"utc_connection_destroy_profile_iterator_p", utc_connection_destroy_profile_iterator_p, utc_network_connection_startup, utc_network_connection_cleanup},
+ {"utc_connection_profile_iterator_has_next_n", utc_connection_profile_iterator_has_next_n, utc_network_connection_startup, utc_network_connection_cleanup},
+ {"utc_connection_profile_iterator_has_next_p", utc_connection_profile_iterator_has_next_p, utc_network_connection_startup, utc_network_connection_cleanup},
+ {"utc_connection_profile_iterator_next_n", utc_connection_profile_iterator_next_n, utc_network_connection_startup, utc_network_connection_cleanup},
+ {"utc_connection_profile_iterator_next_p", utc_connection_profile_iterator_next_p, utc_network_connection_startup, utc_network_connection_cleanup},
+ {"utc_connection_add_profile_p", utc_connection_add_profile_p, utc_network_connection_startup, utc_network_connection_cleanup},
+ {"utc_connection_add_profile_n", utc_connection_add_profile_n, utc_network_connection_startup, utc_network_connection_cleanup},
+ {"utc_connection_close_profile_p", utc_connection_close_profile_p, utc_network_connection_startup, utc_network_connection_cleanup},
+ {"utc_connection_close_profile_n", utc_connection_close_profile_n, utc_network_connection_startup, utc_network_connection_cleanup},
+ {"utc_connection_update_profile_p", utc_connection_update_profile_p, utc_network_connection_startup, utc_network_connection_cleanup},
+ {"utc_connection_update_profile_n", utc_connection_update_profile_n, utc_network_connection_startup, utc_network_connection_cleanup},
+ {"utc_connection_remove_profile_p", utc_connection_remove_profile_p, utc_network_connection_startup, utc_network_connection_cleanup},
+ {"utc_connection_remove_profile_n", utc_connection_remove_profile_n, utc_network_connection_startup, utc_network_connection_cleanup},
+ {"utc_connection_open_profile_p", utc_connection_open_profile_p, utc_network_connection_startup, utc_network_connection_cleanup},
+ {"utc_connection_open_profile_n", utc_connection_open_profile_n, utc_network_connection_startup, utc_network_connection_cleanup},
+ {"utc_connection_reset_profile_p", utc_connection_reset_profile_p, utc_network_connection_startup, utc_network_connection_cleanup},
+ {"utc_connection_reset_profile_n", utc_connection_reset_profile_n, utc_network_connection_startup, utc_network_connection_cleanup},
+ {"utc_connection_foreach_ipv6_address_p", utc_connection_foreach_ipv6_address_p, utc_network_connection_startup, utc_network_connection_cleanup},
+ {"utc_connection_foreach_ipv6_address_n", utc_connection_foreach_ipv6_address_n, utc_network_connection_startup, utc_network_connection_cleanup},
{"utc_connection_set_ethernet_cable_state_changed_cb_n", utc_connection_set_ethernet_cable_state_changed_cb_n, utc_network_connection_startup, utc_network_connection_cleanup},
{"utc_connection_set_ethernet_cable_state_changed_cb_p", utc_connection_set_ethernet_cable_state_changed_cb_p, utc_network_connection_startup, utc_network_connection_cleanup},
{"utc_connection_unset_ethernet_cable_state_changed_cb_n", utc_connection_unset_ethernet_cable_state_changed_cb_n, utc_network_connection_startup, utc_network_connection_cleanup},
{"utc_connection_unset_ethernet_cable_state_changed_cb_p", utc_connection_unset_ethernet_cable_state_changed_cb_p, utc_network_connection_startup, utc_network_connection_cleanup},
- {"utc_connection_set_internet_state_changed_cb_p", utc_connection_set_internet_state_changed_cb_p, utc_network_connection_startup, utc_network_connection_cleanup},
- {"utc_connection_set_internet_state_changed_cb_n1", utc_connection_set_internet_state_changed_cb_n1, utc_network_connection_startup, utc_network_connection_cleanup},
- {"utc_connection_set_internet_state_changed_cb_n2", utc_connection_set_internet_state_changed_cb_n2, utc_network_connection_startup, utc_network_connection_cleanup},
- {"utc_connection_unset_internet_state_changed_cb_p", utc_connection_unset_internet_state_changed_cb_p, utc_network_connection_startup, utc_network_connection_cleanup},
- {"utc_connection_unset_internet_state_changed_cb_n", utc_connection_unset_internet_state_changed_cb_n, utc_network_connection_startup, utc_network_connection_cleanup},
- {"utc_connection_profile_get_internet_state_p", utc_connection_profile_get_internet_state_p, utc_network_connection_startup, utc_network_connection_cleanup},
- {"utc_connection_profile_get_internet_state_n1", utc_connection_profile_get_internet_state_n1, utc_network_connection_startup, utc_network_connection_cleanup},
- {"utc_connection_profile_get_internet_state_n2", utc_connection_profile_get_internet_state_n2, utc_network_connection_startup, utc_network_connection_cleanup},
- {"utc_connection_destroy_p", utc_connection_destroy_p, utc_network_connection_startup, utc_network_connection_cleanup},
- {"utc_connection_destroy_n", utc_connection_destroy_n, utc_network_connection_startup, utc_network_connection_cleanup},
- {"utc_connection_profile_start_tcpdump_p", utc_connection_profile_start_tcpdump_p, utc_connection_extension_startup, utc_connection_extension_cleanup},
+ {"utc_connection_set_internet_state_changed_cb_p", utc_connection_set_internet_state_changed_cb_p, utc_network_connection_startup, utc_network_connection_cleanup},
+ {"utc_connection_set_internet_state_changed_cb_n1", utc_connection_set_internet_state_changed_cb_n1, utc_network_connection_startup, utc_network_connection_cleanup},
+ {"utc_connection_set_internet_state_changed_cb_n2", utc_connection_set_internet_state_changed_cb_n2, utc_network_connection_startup, utc_network_connection_cleanup},
+ {"utc_connection_unset_internet_state_changed_cb_p", utc_connection_unset_internet_state_changed_cb_p, utc_network_connection_startup, utc_network_connection_cleanup},
+ {"utc_connection_unset_internet_state_changed_cb_n", utc_connection_unset_internet_state_changed_cb_n, utc_network_connection_startup, utc_network_connection_cleanup},
+ {"utc_connection_profile_get_internet_state_p", utc_connection_profile_get_internet_state_p, utc_network_connection_startup, utc_network_connection_cleanup},
+ {"utc_connection_profile_get_internet_state_n1", utc_connection_profile_get_internet_state_n1, utc_network_connection_startup, utc_network_connection_cleanup},
+ {"utc_connection_profile_get_internet_state_n2", utc_connection_profile_get_internet_state_n2, utc_network_connection_startup, utc_network_connection_cleanup},
+ {"utc_connection_destroy_p", utc_connection_destroy_p, utc_network_connection_startup, utc_network_connection_cleanup},
+ {"utc_connection_destroy_n", utc_connection_destroy_n, utc_network_connection_startup, utc_network_connection_cleanup},
+ {"utc_connection_profile_start_tcpdump_p", utc_connection_profile_start_tcpdump_p, utc_connection_extension_startup, utc_connection_extension_cleanup},
{"utc_connection_profile_start_tcpdump_n", utc_connection_profile_start_tcpdump_n, utc_connection_extension_startup, utc_connection_extension_cleanup},
{"utc_connection_profile_stop_tcpdump_p", utc_connection_profile_stop_tcpdump_p, utc_connection_extension_startup, utc_connection_extension_cleanup},
{"utc_connection_profile_stop_tcpdump_n", utc_connection_profile_stop_tcpdump_n, utc_connection_extension_startup, utc_connection_extension_cleanup},
{"utc_connection_profile_set_ethernet_eap_peap_version_n", utc_connection_profile_set_ethernet_eap_peap_version_n, utc_connection_extension_startup, utc_connection_extension_cleanup},
{"utc_connection_profile_get_ethernet_eap_peap_version_p", utc_connection_profile_get_ethernet_eap_peap_version_p, utc_connection_extension_startup, utc_connection_extension_cleanup},
{"utc_connection_profile_get_ethernet_eap_peap_version_n", utc_connection_profile_get_ethernet_eap_peap_version_n, utc_connection_extension_startup, utc_connection_extension_cleanup},
- {NULL, NULL}
+ {NULL, NULL}
};
#endif // __TCT_CONNECTION_CORE_H__
{
bool value = false;
int ret = system_info_get_platform_bool(key, &value);
-
- if (ret != SYSTEM_INFO_ERROR_NONE) {
+ if (ret != SYSTEM_INFO_ERROR_NONE)
return false;
- }
-
return value;
}
int rv = connection_get_profile_iterator(connection, CONNECTION_ITERATOR_TYPE_REGISTERED, &profile_iter);
PRINT_RETURN("connection_get_profile_iterator", rv);
- if(CONNECTION_ERROR_NONE != rv)
+ if (CONNECTION_ERROR_NONE != rv)
return -1;
rv = connection_profile_iterator_next(profile_iter, &profile_h);
PRINT_RETURN("connection_profile_iterator_next", rv);
- if(CONNECTION_ERROR_NONE != rv)
+ if (CONNECTION_ERROR_NONE != rv)
return -1;
rv = connection_profile_clone(profile, profile_h);
PRINT_RETURN("connection_profile_clone", rv);
- if(CONNECTION_ERROR_NONE != rv)
+ if (CONNECTION_ERROR_NONE != rv)
return -1;
return 1;
connection_profile_h profile_temp;
connection_h connection;
-#define RUN_GMAIN_LOOP {\
- g_pMainLoop = g_main_loop_new(NULL, false);\
- g_nTimeoutId = g_timeout_add(GMAINTIMEOUT, test_connection_timeout_callback, g_pMainLoop);\
- if (COMMON_DEBUG) {\
- PRINT_LOG(DLOG_INFO, "NativeTCT", "[Line:%5d][%s] Run mainloop [%p]",\
- __LINE__, __FUNCTION__, g_pMainLoop);\
- }\
- g_main_loop_run(g_pMainLoop);\
- g_source_remove(g_nTimeoutId);\
- g_pMainLoop = NULL;\
+#define RUN_GMAIN_LOOP { \
+ g_pMainLoop = g_main_loop_new(NULL, false); \
+ g_nTimeoutId = g_timeout_add(GMAINTIMEOUT, test_connection_timeout_callback, g_pMainLoop); \
+ if (COMMON_DEBUG) { \
+ PRINT_LOG(DLOG_INFO, "NativeTCT", "[Line:%5d][%s] Run mainloop [%p]", \
+ __LINE__, __FUNCTION__, g_pMainLoop); \
+ } \
+ g_main_loop_run(g_pMainLoop); \
+ g_source_remove(g_nTimeoutId); \
+ g_pMainLoop = NULL; \
}
-#define QUIT_GMAIN_LOOP {\
- if (g_pMainLoop)\
-{\
- if (COMMON_DEBUG) {\
- PRINT_LOG(DLOG_INFO, "NativeTCT", "[Line:%5d][%s] Quit mainloop [%p]",\
- __LINE__, __FUNCTION__, g_pMainLoop);\
- }\
- g_main_loop_quit(g_pMainLoop);\
-}\
+#define QUIT_GMAIN_LOOP { \
+ if (g_pMainLoop) { \
+ if (COMMON_DEBUG) { \
+ PRINT_LOG(DLOG_INFO, "NativeTCT", "[Line:%5d][%s] Quit mainloop [%p]", \
+ __LINE__, __FUNCTION__, g_pMainLoop); \
+ } \
+ g_main_loop_quit(g_pMainLoop); \
+ } \
}
-#define FREE_RESOURCE(var) {\
- if(var != NULL) {\
- g_free(var);\
- var = NULL;\
- }\
+#define FREE_RESOURCE(var) { \
+ if (var != NULL) { \
+ g_free(var); \
+ var = NULL; \
+ } \
}
-#define PRINT_RETURN(api, ret) {\
- if (COMMON_DEBUG) {\
- PRINT_LOG(DLOG_INFO, "NativeTCT", "[Line:%5d][%s] %s returned = %s",\
- __LINE__, __FUNCTION__, api, connection_get_error(ret));\
- }\
+#define PRINT_RETURN(api, ret) { \
+ if (COMMON_DEBUG) { \
+ PRINT_LOG(DLOG_INFO, "NativeTCT", "[Line:%5d][%s] %s returned = %s", \
+ __LINE__, __FUNCTION__, api, connection_get_error(ret)); \
+ } \
}
-#define CHECK_RETURN(api, ret, val) {\
- if (ret != val) {\
- if (COMMON_DEBUG) {\
- PRINT_LOG(DLOG_INFO, "NativeTCT", "[Line:%5d][%s] %s failed, error returned = %s",\
- __LINE__, __FUNCTION__, api, connection_get_error(ret));\
- }\
- return 1;\
- } else {\
- if (COMMON_DEBUG) {\
- PRINT_LOG(DLOG_INFO, "NativeTCT", "[Line:%5d][%s] %s",\
- __LINE__, __FUNCTION__, api);\
- }\
- }\
-}
-
-#define DEBUG_LOG {\
- PRINT_LOG(DLOG_INFO, "NativeTCT", "[Line:%5d][%s] ***** DEBUG *****", __LINE__, __FUNCTION__);\
+#define CHECK_RETURN(api, ret, val) ({ \
+ if (ret != val) { \
+ if (COMMON_DEBUG) { \
+ PRINT_LOG(DLOG_INFO, "NativeTCT", "[Line:%5d][%s] %s failed, error returned = %s", \
+ __LINE__, __FUNCTION__, api, connection_get_error(ret)); \
+ } \
+ return 1; \
+ } else { \
+ if (COMMON_DEBUG) { \
+ PRINT_LOG(DLOG_INFO, "NativeTCT", "[Line:%5d][%s] %s", \
+ __LINE__, __FUNCTION__, api); \
+ } \
+ } \
+})
+
+#define DEBUG_LOG { \
+ PRINT_LOG(DLOG_INFO, "NativeTCT", "[Line:%5d][%s] ***** DEBUG *****", __LINE__, __FUNCTION__); \
}
gboolean test_connection_timeout_callback(gpointer data);
/**
* @testcase utc_connection_profile_create_p
- * @since_tizen 2.3
+ * @since_tizen 2.3
* @type Positive
* @description Creates a profile handle.
- * @scenario Invoking connection_profile_create with valid parameter.
+ * @scenario Invoking connection_profile_create with valid parameter.
*/
int utc_connection_profile_create_p(void)
{
/**
* @testcase utc_connection_profile_create_n
- * @since_tizen 2.3
+ * @since_tizen 2.3
* @type Negative
* @description should not creates a profile handle.
- * @scenario Verify connection_profile_create by passing invalid parameter.
+ * @scenario Verify connection_profile_create by passing invalid parameter.
*/
int utc_connection_profile_create_n(void)
{
/**
* @testcase utc_connection_profile_clone_p
- * @since_tizen 2.3
+ * @since_tizen 2.3
* @type Positive
* @description Clones a profile handle.
- * @scenario Verify connection_profile_clone with valid parameter and destroy it.
+ * @scenario Verify connection_profile_clone with valid parameter and destroy it.
*/
int utc_connection_profile_clone_p(void)
{
/**
* @testcase utc_connection_profile_clone_n
- * @since_tizen 2.3
+ * @since_tizen 2.3
* @type Negative
* @description should not Clones a profile handle.
- * @scenario Verify connection_profile_clone by passing invalid parameters.
+ * @scenario Verify connection_profile_clone by passing invalid parameters.
*/
int utc_connection_profile_clone_n(void)
{
/**
* @testcase utc_connection_profile_get_name_p
- * @since_tizen 2.3
+ * @since_tizen 2.3
* @type Positive
* @description Gets the profile name.
- * @scenario Get the profile name by invoking connection_profile_get_name with a valid parameter.
+ * @scenario Get the profile name by invoking connection_profile_get_name with a valid parameter.
*/
int utc_connection_profile_get_name_p(void)
{
/**
* @testcase utc_connection_profile_get_name_n
- * @since_tizen 2.3
+ * @since_tizen 2.3
* @type Negative
* @description should not return profile handle.
- * @scenario Verify connection_profile_get_name by passing invalid profile handle.
+ * @scenario Verify connection_profile_get_name by passing invalid profile handle.
*/
int utc_connection_profile_get_name_n(void)
{
/**
* @testcase utc_connection_profile_get_id_p
- * @since_tizen 2.3
+ * @since_tizen 2.3
* @type Positive
* @description Gets the profile ID.
- * @scenario Invoking connection_profile_get_id with valid profile handle.
+ * @scenario Invoking connection_profile_get_id with valid profile handle.
*/
int utc_connection_profile_get_id_p(void)
{
/**
* @testcase utc_connection_profile_get_id_n
- * @since_tizen 2.3
+ * @since_tizen 2.3
* @type Negative
* @description should not return profile ID.
- * @scenario Verify connection_profile_get_id by passing invalid parameter..
+ * @scenario Verify connection_profile_get_id by passing invalid parameter..
*/
int utc_connection_profile_get_id_n(void)
{
int ret;
- char *id = NULL;
- connection_profile_h profile_inval = NULL;
+ char *id = NULL;
+ connection_profile_h profile_inval = NULL;
if (all_features_not_supported) {
ret = connection_profile_get_id(profile_inval, NULL);
return 0;
}
- ret = connection_profile_get_id(profile_inval, NULL);
- CHECK_RETURN("connection_profile_get_id", ret, CONNECTION_ERROR_INVALID_PARAMETER);
- ret = connection_profile_get_id(profile_inval, &id);
- CHECK_RETURN("connection_profile_get_id", ret, CONNECTION_ERROR_INVALID_PARAMETER);
- ret = connection_profile_get_id(profile_cellular, NULL);
- CHECK_RETURN("connection_profile_get_id", ret, CONNECTION_ERROR_INVALID_PARAMETER);
+ ret = connection_profile_get_id(profile_inval, NULL);
+ CHECK_RETURN("connection_profile_get_id", ret, CONNECTION_ERROR_INVALID_PARAMETER);
+ ret = connection_profile_get_id(profile_inval, &id);
+ CHECK_RETURN("connection_profile_get_id", ret, CONNECTION_ERROR_INVALID_PARAMETER);
+ ret = connection_profile_get_id(profile_cellular, NULL);
+ CHECK_RETURN("connection_profile_get_id", ret, CONNECTION_ERROR_INVALID_PARAMETER);
- return 0;
+ return 0;
}
/**
* @testcase utc_connection_profile_get_type_p
- * @since_tizen 2.3
+ * @since_tizen 2.3
* @type Positive
* @description Gets the network type.
- * @scenario connection_profile_get_type should return profile type.
+ * @scenario connection_profile_get_type should return profile type.
*/
int utc_connection_profile_get_type_p(void)
{
/**
* @testcase utc_connection_profile_get_type_n
- * @since_tizen 2.3
+ * @since_tizen 2.3
* @type Negative
* @description should not get the network type.
- * @scenario Verify connection_profile_get_type by passing invalid parameter.
+ * @scenario Verify connection_profile_get_type by passing invalid parameter.
*/
int utc_connection_profile_get_type_n(void)
{
/**
* @testcase utc_connection_profile_get_network_interface_name_p
- * @since_tizen 2.3
+ * @since_tizen 2.3
* @type Positive
* @description Gets the name of the network interface, e.g. eth0 and pdp0.
- * @scenario Invoking connection_profile_get_network_interface_name with valid parameter.
+ * @scenario Invoking connection_profile_get_network_interface_name with valid parameter.
*/
int utc_connection_profile_get_network_interface_name_p(void)
{
/**
* @testcase utc_connection_profile_get_network_interface_name_n
- * @since_tizen 2.3
+ * @since_tizen 2.3
* @type Negative
* @description should not get the name of the network interface.
- * @scenario Verify connection_profile_get_network_interface_name by passing invalid parameter.
+ * @scenario Verify connection_profile_get_network_interface_name by passing invalid parameter.
*/
int utc_connection_profile_get_network_interface_name_n(void)
{
/**
* @testcase utc_connection_profile_get_state_p
- * @since_tizen 2.3
+ * @since_tizen 2.3
* @type Positive
* @description Gets the network type and the state of the profile.
- * @scenario Verify connection_profile_get_state with valid parameter.
+ * @scenario Verify connection_profile_get_state with valid parameter.
*/
int utc_connection_profile_get_state_p(void)
{
/**
* @testcase utc_connection_profile_get_state_n
- * @since_tizen 2.3
+ * @since_tizen 2.3
* @type Negative
* @description should not get the state of the profile.
- * @scenario Verify connection_profile_get_state by passing invalid parameter.
+ * @scenario Verify connection_profile_get_state by passing invalid parameter.
*/
int utc_connection_profile_get_state_n(void)
{
/**
* @testcase utc_connection_profile_get_ip_config_type_p
- * @since_tizen 2.3
+ * @since_tizen 2.3
* @type Positive
* @description Gets the IP config type.Should return the type of the IP config.
- * @scenario Invoking connection_profile_get_ip_config_type with valid parameter.
+ * @scenario Invoking connection_profile_get_ip_config_type with valid parameter.
*/
int utc_connection_profile_get_ip_config_type_p(void)
{
/**
* @testcase utc_connection_profile_get_ip_config_type_n
- * @since_tizen 2.3
+ * @since_tizen 2.3
* @type Negative
* @description should not return the type of the IP config.
- * @scenario Verify connection_profile_get_ip_config_type by passing invalid parameter..
+ * @scenario Verify connection_profile_get_ip_config_type by passing invalid parameter..
*/
int utc_connection_profile_get_ip_config_type_n(void)
{
/**
* @testcase utc_connection_profile_get_ip_address_p
- * @since_tizen 2.3
+ * @since_tizen 2.3
* @type Positive
* @description Gets the IP address.Shoudl return IP Address.
- * @scenario Invoking connection_profile_get_ip_address with valid parameter.
+ * @scenario Invoking connection_profile_get_ip_address with valid parameter.
*/
int utc_connection_profile_get_ip_address_p(void)
{
/**
* @testcase utc_connection_profile_get_ip_address_n
- * @since_tizen 2.3
+ * @since_tizen 2.3
* @type Negative
* @description should not return IP Address.
- * @scenario Verify connection_profile_get_ip_address by passing invalid parameter.
+ * @scenario Verify connection_profile_get_ip_address by passing invalid parameter.
*/
int utc_connection_profile_get_ip_address_n(void)
{
/**
* @testcase utc_connection_profile_get_subnet_mask_p
- * @since_tizen 2.3
+ * @since_tizen 2.3
* @type Positive
* @description Gets the Subnet Mask.
- * @scenario Invoking connection_profile_get_subnet_mask with valid parameter.
+ * @scenario Invoking connection_profile_get_subnet_mask with valid parameter.
*/
int utc_connection_profile_get_subnet_mask_p(void)
{
char *ip_addr = NULL;
int ret = test_get_any_profile(&profile_temp);
- if(all_features_not_supported){
+ if (all_features_not_supported) {
ret = connection_profile_get_subnet_mask(profile_temp, CONNECTION_ADDRESS_FAMILY_IPV4, &ip_addr);
FREE_RESOURCE(ip_addr);
CHECK_RETURN("connection_profile_get_subnet_mask", ret, CONNECTION_ERROR_NOT_SUPPORTED);
/**
* @testcase utc_connection_profile_get_subnet_mask_n
- * @since_tizen 2.3
+ * @since_tizen 2.3
* @type Negative
* @description should not return any subnet mask.
- * @scenario Verify connection_profile_get_subnet_mask by passing invalid parameter.
+ * @scenario Verify connection_profile_get_subnet_mask by passing invalid parameter.
*/
int utc_connection_profile_get_subnet_mask_n(void)
{
/**
* @testcase utc_connection_profile_get_gateway_address_p
- * @since_tizen 2.3
+ * @since_tizen 2.3
* @type Positive
* @description Gets the Gateway address.
- * @scenario Invoking connection_profile_get_gateway_address with valid parameter.
+ * @scenario Invoking connection_profile_get_gateway_address with valid parameter.
*/
int utc_connection_profile_get_gateway_address_p(void)
{
/**
* @testcase utc_connection_profile_get_gateway_address_n
- * @since_tizen 2.3
+ * @since_tizen 2.3
* @type Negative
* @description connection_profile_get_gateway_address should fail with invalid parameter.
- * @scenario Verify connection_profile_get_gateway_address by passing invalid parameter.
+ * @scenario Verify connection_profile_get_gateway_address by passing invalid parameter.
*/
int utc_connection_profile_get_gateway_address_n(void)
{
/**
* @testcase utc_connection_profile_get_dns_address_p
- * @since_tizen 2.3
+ * @since_tizen 2.3
* @type Positive
* @description Gets the DNS address.
- * @scenario Invoking connection_profile_get_dns_address with valid parameter.
+ * @scenario Invoking connection_profile_get_dns_address with valid parameter.
*/
int utc_connection_profile_get_dns_address_p(void)
{
/**
* @testcase utc_connection_profile_get_dns_address_n
- * @since_tizen 2.3
+ * @since_tizen 2.3
* @type Negative
* @description connection_profile_get_dns_address should fail with invalid parameter.
- * @scenario Verify connection_profile_get_dns_address by passing invalid parameter.
+ * @scenario Verify connection_profile_get_dns_address by passing invalid parameter.
*/
int utc_connection_profile_get_dns_address_n(void)
{
/**
* @testcase utc_connection_profile_get_proxy_type_p
- * @since_tizen 2.3
+ * @since_tizen 2.3
* @type Positive
* @description Sets the Proxy type.
- * @scenario Invoking connection_profile_set_proxy_type with valid parameter.
+ * @scenario Invoking connection_profile_set_proxy_type with valid parameter.
*/
int utc_connection_profile_get_proxy_type_p(void)
{
/**
* @testcase utc_connection_profile_get_proxy_type_n
- * @since_tizen 2.3
+ * @since_tizen 2.3
* @type Negative
* @description connection_profile_get_proxy_type should fail with invalid parameter.
- * @scenario Verify connection_profile_get_proxy_type by passing invalid parameter.
+ * @scenario Verify connection_profile_get_proxy_type by passing invalid parameter.
*/
int utc_connection_profile_get_proxy_type_n(void)
{
/**
* @testcase utc_connection_profile_get_proxy_address_p
- * @since_tizen 2.3
+ * @since_tizen 2.3
* @type Positive
* @description Gets the Proxy address.
- * @scenario Invoking connection_profile_get_proxy_address with valid parameter.
+ * @scenario Invoking connection_profile_get_proxy_address with valid parameter.
*/
int utc_connection_profile_get_proxy_address_p(void)
{
/**
* @testcase utc_connection_profile_get_proxy_address_n
- * @since_tizen 2.3
+ * @since_tizen 2.3
* @type Negative
* @description connection_profile_get_proxy_address should fail with invalid parameter.
- * @scenario Verify connection_profile_get_proxy_address by passing invalid parameter.
+ * @scenario Verify connection_profile_get_proxy_address by passing invalid parameter.
*/
int utc_connection_profile_get_proxy_address_n(void)
{
/**
* @testcase utc_connection_profile_set_ip_config_type_p
- * @since_tizen 2.3
+ * @since_tizen 2.3
* @type Positive
* @description Sets the IP config type.
- * @scenario Invoking connection_profile_set_ip_config_type with valid parameter.
+ * @scenario Invoking connection_profile_set_ip_config_type with valid parameter.
*/
int utc_connection_profile_set_ip_config_type_p(void)
{
/**
* @testcase utc_connection_profile_set_ip_config_type_n
- * @since_tizen 2.3
+ * @since_tizen 2.3
* @type Negative
* @description connection_profile_set_ip_config_type should fail with invalid parameter.
- * @scenario Verify connection_profile_set_ip_config_type by passing invalid parameter.
+ * @scenario Verify connection_profile_set_ip_config_type by passing invalid parameter.
*/
int utc_connection_profile_set_ip_config_type_n(void)
{
/**
* @testcase utc_connection_profile_set_ip_address_p
- * @since_tizen 2.3
+ * @since_tizen 2.3
* @type Positive
* @description Sets the IP address.
- * @scenario Invoking connection_profile_set_ip_address with valid parameter.
+ * @scenario Invoking connection_profile_set_ip_address with valid parameter.
*/
int utc_connection_profile_set_ip_address_p(void)
{
/**
* @testcase utc_connection_profile_set_ip_address_n
- * @since_tizen 2.3
+ * @since_tizen 2.3
* @type Negative
* @description connection_profile_set_ip_address should fail with invalid parameter.
- * @scenario Verify connection_profile_set_ip_address by passing invalid parameter.
+ * @scenario Verify connection_profile_set_ip_address by passing invalid parameter.
*/
int utc_connection_profile_set_ip_address_n(void)
{
/**
* @testcase utc_connection_profile_set_subnet_mask_p
- * @since_tizen 2.3
+ * @since_tizen 2.3
* @type Positive
* @description Sets the Subnet Mask.
- * @scenario Invoking connection_profile_set_subnet_mask with valid parameter.
+ * @scenario Invoking connection_profile_set_subnet_mask with valid parameter.
*/
int utc_connection_profile_set_subnet_mask_p(void)
{
/**
* @testcase utc_connection_profile_set_subnet_mask_n
- * @since_tizen 2.3
+ * @since_tizen 2.3
* @type Negative
* @description connection_profile_set_subnet_mask should fail with invalid parameter.
- * @scenario Verify connection_profile_set_subnet_mask by passing invalid parameter.
+ * @scenario Verify connection_profile_set_subnet_mask by passing invalid parameter.
*/
int utc_connection_profile_set_subnet_mask_n(void)
{
/**
* @testcase utc_connection_profile_set_gateway_address_p
- * @since_tizen 2.3
+ * @since_tizen 2.3
* @type Positive
* @description Sets the Gateway address.
- * @scenario Invoking connection_profile_set_gateway_address with valid parameter.
+ * @scenario Invoking connection_profile_set_gateway_address with valid parameter.
*/
int utc_connection_profile_set_gateway_address_p(void)
{
/**
* @testcase utc_connection_profile_set_gateway_address_n
- * @since_tizen 2.3
+ * @since_tizen 2.3
* @type Negative
* @description connection_profile_set_gateway_address should fail with invalid parameter.
- * @scenario Verify connection_profile_set_gateway_address by passing invalid parameter.
+ * @scenario Verify connection_profile_set_gateway_address by passing invalid parameter.
*/
int utc_connection_profile_set_gateway_address_n(void)
{
/**
* @testcase utc_connection_profile_set_dns_address_p
- * @since_tizen 2.3
+ * @since_tizen 2.3
* @type Positive
* @description Sets the DNS address.
- * @scenario Invoking connection_profile_set_dns_address with valid parameter.
+ * @scenario Invoking connection_profile_set_dns_address with valid parameter.
*/
int utc_connection_profile_set_dns_address_p(void)
{
/**
* @testcase utc_connection_profile_set_dns_address_n
- * @since_tizen 2.3
+ * @since_tizen 2.3
* @type Negative
* @description connection_profile_set_dns_address should fail with invalid parameter.
- * @scenario Verify connection_profile_set_dns_address by passing invalid parameter.
+ * @scenario Verify connection_profile_set_dns_address by passing invalid parameter.
*/
int utc_connection_profile_set_dns_address_n(void)
{
/**
* @testcase utc_connection_profile_set_proxy_type_p
- * @since_tizen 2.3
+ * @since_tizen 2.3
* @type Positive
* @description Sets the Proxy type.
- * @scenario Invoking connection_profile_set_proxy_type with valid parameter.
+ * @scenario Invoking connection_profile_set_proxy_type with valid parameter.
*/
int utc_connection_profile_set_proxy_type_p(void)
{
/**
* @testcase utc_connection_profile_set_proxy_type_n
- * @since_tizen 2.3
+ * @since_tizen 2.3
* @type Negative
* @description connection_profile_set_proxy_type should fail with invalid parameter.
- * @scenario Verify connection_profile_set_proxy_type by passing invalid parameter.
+ * @scenario Verify connection_profile_set_proxy_type by passing invalid parameter.
*/
int utc_connection_profile_set_proxy_type_n(void)
{
/**
* @testcase utc_connection_profile_set_proxy_address_p
- * @since_tizen 2.3
+ * @since_tizen 2.3
* @type Positive
* @description Sets the Proxy address.
- * @scenario Invoking connection_profile_set_proxy_address with valid parameter.
+ * @scenario Invoking connection_profile_set_proxy_address with valid parameter.
*/
int utc_connection_profile_set_proxy_address_p(void)
{
/**
* @testcase utc_connection_profile_set_proxy_address_n
- * @since_tizen 2.3
+ * @since_tizen 2.3
* @type Negative
* @description connection_profile_set_proxy_address should fail with invalid parameter.
- * @scenario Verify connection_profile_set_proxy_address by passing invalid parameter.
+ * @scenario Verify connection_profile_set_proxy_address by passing invalid parameter.
*/
int utc_connection_profile_set_proxy_address_n(void)
{
/**
* @testcase utc_connection_profile_set_state_changed_cb_p
- * @since_tizen 2.3
+ * @since_tizen 2.3
* @type Positive
* @description Registers the callback that is called when the state of profile is changed.
- * @scenario Invoking connection_profile_set_state_changed_cb with valid parameter.
+ * @scenario Invoking connection_profile_set_state_changed_cb with valid parameter.
*/
int utc_connection_profile_set_state_changed_cb_p(void)
{
/**
* @testcase utc_connection_profile_set_state_changed_cb_n
- * @since_tizen 2.3
+ * @since_tizen 2.3
* @type Negative
* @description connection_profile_set_state_changed_cb should fail with invalid parameter.
- * @scenario Verify connection_profile_set_state_changed_cb by passing callback and user_data as NULL.
+ * @scenario Verify connection_profile_set_state_changed_cb by passing callback and user_data as NULL.
*/
int utc_connection_profile_set_state_changed_cb_n(void)
{
/**
* @testcase utc_connection_profile_unset_state_changed_cb_p
- * @since_tizen 2.3
+ * @since_tizen 2.3
* @type Positive
* @description Unregisters the callback that is called when the state of profile is changed.
- * @scenario Invoking connection_profile_unset_state_changed_cb with valid parameter.
+ * @scenario Invoking connection_profile_unset_state_changed_cb with valid parameter.
*/
int utc_connection_profile_unset_state_changed_cb_p(void)
{
/**
* @testcase utc_connection_profile_unset_state_changed_cb_n
- * @since_tizen 2.3
+ * @since_tizen 2.3
* @type Negative
* @description connection_profile_unset_state_changed_cb should fail with invalid parameter.
- * @scenario Verify connection_profile_unset_state_changed_cb by passing invalid profile handle.
+ * @scenario Verify connection_profile_unset_state_changed_cb by passing invalid profile handle.
*/
int utc_connection_profile_unset_state_changed_cb_n(void)
{
int ret = connection_profile_unset_state_changed_cb(profile_inval);
- if (all_features_not_supported) {
+ if (all_features_not_supported)
CHECK_RETURN("connection_profile_unset_state_changed_cb", ret, CONNECTION_ERROR_NOT_SUPPORTED);
- } else {
+ else
CHECK_RETURN("connection_profile_unset_state_changed_cb", ret, CONNECTION_ERROR_INVALID_PARAMETER);
- }
-
return 0;
}
/**
* @testcase utc_connection_profile_set_cellular_service_type_p
- * @since_tizen 2.3
+ * @since_tizen 2.3
* @type Positive
* @description Sets the service type.
- * @scenario Invoking connection_profile_set_cellular_service_type with valid parameter.
+ * @scenario Invoking connection_profile_set_cellular_service_type with valid parameter.
*/
int utc_connection_profile_set_cellular_service_type_p(void)
{
- if(telephony_supported) {
+ if (telephony_supported) {
int ret = connection_profile_set_cellular_service_type(profile_cellular, CONNECTION_CELLULAR_SERVICE_TYPE_INTERNET);
CHECK_RETURN("connection_profile_set_cellular_service_type", ret, CONNECTION_ERROR_NONE);
} else {
/**
* @testcase utc_connection_profile_set_cellular_service_type_n
- * @since_tizen 2.3
+ * @since_tizen 2.3
* @type Negative
* @description connection_profile_set_cellular_service_type should fail with invalid parameter.
- * @scenario Verify connection_profile_set_cellular_service_type by passing invalid parameter.
+ * @scenario Verify connection_profile_set_cellular_service_type by passing invalid parameter.
*/
int utc_connection_profile_set_cellular_service_type_n(void)
{
/**
* @testcase utc_connection_profile_set_cellular_apn_p
- * @since_tizen 2.3
+ * @since_tizen 2.3
* @type Positive
* @description Sets the APN (Access Point Name).
- * @scenario Invoking connection_profile_set_cellular_apn with valid parameter.
+ * @scenario Invoking connection_profile_set_cellular_apn with valid parameter.
*/
int utc_connection_profile_set_cellular_apn_p(void)
{
/**
* @testcase utc_connection_profile_set_cellular_apn_n
- * @since_tizen 2.3
+ * @since_tizen 2.3
* @type Negative
* @description connection_profile_set_cellular_apn should fail with invalid parameter.
- * @scenario Verify connection_profile_set_cellular_apn by passing invalid parameter.
+ * @scenario Verify connection_profile_set_cellular_apn by passing invalid parameter.
*/
int utc_connection_profile_set_cellular_apn_n(void)
{
/**
* @testcase utc_connection_profile_set_cellular_auth_info_p
- * @since_tizen 2.3
+ * @since_tizen 2.3
* @type Positive
* @description Sets the Authentication information.
- * @scenario Invoking connection_profile_set_cellular_auth_info with valid parameter.
+ * @scenario Invoking connection_profile_set_cellular_auth_info with valid parameter.
*/
int utc_connection_profile_set_cellular_auth_info_p(void)
{
/**
* @testcase utc_connection_profile_set_cellular_auth_info_n
- * @since_tizen 2.3
+ * @since_tizen 2.3
* @type Negative
* @description connection_profile_set_cellular_auth_info should fail with invalid parameter.
- * @scenario Verify connection_profile_set_cellular_auth_info by passing invalid AUTHENTICATION TYPE/parameter.
+ * @scenario Verify connection_profile_set_cellular_auth_info by passing invalid AUTHENTICATION TYPE/parameter.
*/
int utc_connection_profile_set_cellular_auth_info_n(void)
{
/**
* @testcase utc_connection_profile_set_cellular_home_url_p
- * @since_tizen 2.3
+ * @since_tizen 2.3
* @type Positive
* @description connection_profile_set_cellular_home_url.
- * @scenario Invoking connection_profile_set_cellular_home_url with valid parameter.
+ * @scenario Invoking connection_profile_set_cellular_home_url with valid parameter.
*/
int utc_connection_profile_set_cellular_home_url_p(void)
{
- if(telephony_supported) {
+ if (telephony_supported) {
int ret = connection_profile_set_cellular_home_url(profile_cellular, "www.tizen.org");
CHECK_RETURN("connection_profile_set_cellular_home_url", ret, CONNECTION_ERROR_NONE);
} else {
/**
* @testcase utc_connection_profile_set_cellular_home_url_n
- * @since_tizen 2.3
+ * @since_tizen 2.3
* @type Negative
* @description connection_profile_set_cellular_home_url should fail with invalid parameter.
- * @scenario Verify connection_profile_set_cellular_home_url by passing invalid profile handle.
+ * @scenario Verify connection_profile_set_cellular_home_url by passing invalid profile handle.
*/
int utc_connection_profile_set_cellular_home_url_n(void)
{
#if (defined(MOBILE) || defined(WEARABLE) || defined(TIZENIOT)) //Starts MOBILE or WEARABLE or TIZENIOT
/**
* @testcase utc_connection_profile_set_cellular_pdn_type_p
- * @since_tizen 3.0
+ * @since_tizen 3.0
* @type Positive
* @description Sets the pdn type.
- * @scenario Invoking connection_profile_set_cellular_pdn_type with valid parameter.
+ * @scenario Invoking connection_profile_set_cellular_pdn_type with valid parameter.
*/
int utc_connection_profile_set_cellular_pdn_type_p(void)
{
int ret = connection_profile_set_cellular_pdn_type(profile_cellular, CONNECTION_CELLULAR_PDN_TYPE_IPV4);
- if (telephony_supported) {
+ if (telephony_supported)
CHECK_RETURN("connection_profile_set_cellular_pdn_type", ret, CONNECTION_ERROR_NONE);
- } else {
+ else
CHECK_RETURN("connection_profile_set_cellular_pdn_type", ret, CONNECTION_ERROR_NOT_SUPPORTED);
- }
-
return 0;
}
/**
* @testcase utc_connection_profile_set_cellular_pdn_type_n
- * @since_tizen 3.0
+ * @since_tizen 3.0
* @type Negative
* @description connection_profile_set_cellular_pdn_type should fail with invalid parameter.
- * @scenario Verify connection_profile_set_cellular_pdn_type by passing invalid profile handle.
+ * @scenario Verify connection_profile_set_cellular_pdn_type by passing invalid profile handle.
*/
int utc_connection_profile_set_cellular_pdn_type_n(void)
{
/**
* @testcase utc_connection_profile_set_cellular_roam_pdn_type_p
- * @since_tizen 3.0
+ * @since_tizen 3.0
* @type Positive
* @description Sets the roam pdn type.
- * @scenario Invoking connection_profile_set_cellular_roam_pdn_type with valid parameter.
+ * @scenario Invoking connection_profile_set_cellular_roam_pdn_type with valid parameter.
*/
int utc_connection_profile_set_cellular_roam_pdn_type_p(void)
{
int ret = connection_profile_set_cellular_roam_pdn_type(profile_cellular, CONNECTION_CELLULAR_PDN_TYPE_IPV4);
- if (telephony_supported) {
+ if (telephony_supported)
CHECK_RETURN("connection_profile_set_cellular_roam_pdn_type", ret, CONNECTION_ERROR_NONE);
- } else {
+ else
CHECK_RETURN("connection_profile_set_cellular_roam_pdn_type", ret, CONNECTION_ERROR_NOT_SUPPORTED);
- }
-
return 0;
}
/**
* @testcase utc_connection_profile_set_cellular_roam_pdn_type_n
- * @since_tizen 3.0
+ * @since_tizen 3.0
* @type Negative
* @description connection_profile_set_cellular_roam_pdn_type should fail with invalid parameter.
- * @scenario Verify connection_profile_set_cellular_roam_pdn_type by passing invalid profile handle.
+ * @scenario Verify connection_profile_set_cellular_roam_pdn_type by passing invalid profile handle.
*/
int utc_connection_profile_set_cellular_roam_pdn_type_n(void)
{
/**
* @testcase utc_connection_profile_get_cellular_service_type_p
- * @since_tizen 2.3
+ * @since_tizen 2.3
* @type Positive
* @description Sets the home URL.
- * @scenario Invoking connection_profile_get_cellular_service_type with valid parameter.
+ * @scenario Invoking connection_profile_get_cellular_service_type with valid parameter.
*/
int utc_connection_profile_get_cellular_service_type_p(void)
{
/**
* @testcase utc_connection_profile_get_cellular_service_type_n
- * @since_tizen 2.3
+ * @since_tizen 2.3
* @type Negative
* @description connection_profile_get_cellular_service_type should fail with invalid parameter.
- * @scenario Verify connection_profile_get_cellular_service_type by passing invalid profile handle and home URL.
+ * @scenario Verify connection_profile_get_cellular_service_type by passing invalid profile handle and home URL.
*/
int utc_connection_profile_get_cellular_service_type_n(void)
{
/**
* @testcase utc_connection_profile_get_cellular_apn_p
- * @since_tizen 2.3
+ * @since_tizen 2.3
* @type Positive
* @description Gets the APN (access point name).
- * @scenario Invoking connection_profile_get_cellular_apn with valid parameter.
+ * @scenario Invoking connection_profile_get_cellular_apn with valid parameter.
*/
int utc_connection_profile_get_cellular_apn_p(void)
{
int ret = connection_profile_get_cellular_apn(profile_cellular, &apn);
FREE_RESOURCE(apn);
- if(telephony_supported) {
+ if (telephony_supported)
CHECK_RETURN("connection_profile_get_cellular_apn", ret, CONNECTION_ERROR_NONE);
- } else {
+ else
CHECK_RETURN("connection_profile_get_cellular_apn", ret, CONNECTION_ERROR_NOT_SUPPORTED);
- }
-
return 0;
}
/**
* @testcase utc_connection_profile_get_cellular_apn_n
- * @since_tizen 2.3
+ * @since_tizen 2.3
* @type Negative
* @description connection_profile_get_cellular_apn should fail with invalid parameter.
- * @scenario Verify connection_profile_get_cellular_apn by passing invalid parameter.
+ * @scenario Verify connection_profile_get_cellular_apn by passing invalid parameter.
*/
int utc_connection_profile_get_cellular_apn_n(void)
{
/**
* @testcase utc_connection_profile_get_cellular_auth_info_p
- * @since_tizen 2.3
+ * @since_tizen 2.3
* @type Positive
* @description Gets the authentication information.
- * @scenario Invoking connection_profile_get_cellular_auth_info with valid parameter.
+ * @scenario Invoking connection_profile_get_cellular_auth_info with valid parameter.
*/
int utc_connection_profile_get_cellular_auth_info_p(void)
{
int ret = connection_profile_get_cellular_auth_info(profile_cellular, &type, &name, &pwd);
FREE_RESOURCE(name); FREE_RESOURCE(pwd);
- if (telephony_supported) {
+ if (telephony_supported)
CHECK_RETURN("connection_profile_get_cellular_auth_info", ret, CONNECTION_ERROR_NONE);
- } else {
+ else
CHECK_RETURN("connection_profile_get_cellular_auth_info", ret, CONNECTION_ERROR_NOT_SUPPORTED);
- }
-
return 0;
}
/**
* @testcase utc_connection_profile_get_cellular_auth_info_n
- * @since_tizen 2.3
+ * @since_tizen 2.3
* @type Negative
* @description connection_profile_get_cellular_auth_info should fail with invalid parameter.
- * @scenario Verify connection_profile_get_cellular_auth_info by passing invalid parameter.
+ * @scenario Verify connection_profile_get_cellular_auth_info by passing invalid parameter.
*/
int utc_connection_profile_get_cellular_auth_info_n(void)
{
/**
* @testcase utc_connection_profile_get_cellular_home_url_p
- * @since_tizen 2.3
+ * @since_tizen 2.3
* @type Positive
* @description Gets the home URL.
- * @scenario Invoking connection_profile_get_cellular_home_url with valid parameter.
+ * @scenario Invoking connection_profile_get_cellular_home_url with valid parameter.
*/
int utc_connection_profile_get_cellular_home_url_p(void)
{
int ret = connection_profile_get_cellular_home_url(profile_cellular, &home_url);
FREE_RESOURCE(home_url);
- if (telephony_supported) {
+ if (telephony_supported)
CHECK_RETURN("connection_profile_get_cellular_home_url", ret, CONNECTION_ERROR_NONE);
- } else {
+ else
CHECK_RETURN("connection_profile_get_cellular_home_url", ret, CONNECTION_ERROR_NOT_SUPPORTED);
- }
-
return 0;
}
/**
* @testcase utc_connection_profile_get_cellular_home_url_n
- * @since_tizen 2.3
+ * @since_tizen 2.3
* @type Negative
* @description connection_profile_get_cellular_home_url should fail with invalid parameter.
- * @scenario Verify connection_profile_get_cellular_home_url by passing invalid profile handle.
+ * @scenario Verify connection_profile_get_cellular_home_url by passing invalid profile handle.
*/
int utc_connection_profile_get_cellular_home_url_n(void)
{
#if (defined(MOBILE) || defined(WEARABLE) || defined(TIZENIOT)) //Starts MOBILE or WEARABLE or TIZENIOT
/**
* @testcase utc_connection_profile_get_cellular_pdn_type_p
- * @since_tizen 3.0
+ * @since_tizen 3.0
* @type Positive
* @description Gets the pdn type.
- * @scenario Invoking connection_profile_get_cellular_pdn_type with valid parameter.
+ * @scenario Invoking connection_profile_get_cellular_pdn_type with valid parameter.
*/
int utc_connection_profile_get_cellular_pdn_type_p(void)
{
/**
* @testcase utc_connection_profile_get_cellular_pdn_type_n
- * @since_tizen 3.0
+ * @since_tizen 3.0
* @type Negative
* @description connection_profile_get_cellular_pdn_type should fail with invalid parameter.
- * @scenario Verify connection_profile_get_cellular_pdn_type by passing invalid profile handle.
+ * @scenario Verify connection_profile_get_cellular_pdn_type by passing invalid profile handle.
*/
int utc_connection_profile_get_cellular_pdn_type_n(void)
{
/**
* @testcase utc_connection_profile_get_cellular_roam_pdn_type_p
- * @since_tizen 3.0
+ * @since_tizen 3.0
* @type Positive
* @description Gets the roam pdn type.
- * @scenario Invoking connection_profile_get_cellular_roam_pdn_type with valid parameter.
+ * @scenario Invoking connection_profile_get_cellular_roam_pdn_type with valid parameter.
*/
int utc_connection_profile_get_cellular_roam_pdn_type_p(void)
{
connection_cellular_pdn_type_e type;
- if(telephony_supported) {
+ if (telephony_supported) {
int ret = connection_profile_set_cellular_roam_pdn_type(profile_cellular, CONNECTION_CELLULAR_PDN_TYPE_IPV4);
CHECK_RETURN("connection_profile_set_cellular_roam_pdn_type", ret, CONNECTION_ERROR_NONE);
/**
* @testcase utc_connection_profile_get_cellular_roam_pdn_type_n
- * @since_tizen 3.0
+ * @since_tizen 3.0
* @type Negative
* @description connection_profile_get_cellular_roam_pdn_type should fail with invalid parameter.
- * @scenario Verify connection_profile_get_cellular_roam_pdn_type by passing invalid profile handle.
+ * @scenario Verify connection_profile_get_cellular_roam_pdn_type by passing invalid profile handle.
*/
int utc_connection_profile_get_cellular_roam_pdn_type_n(void)
{
/**
* @testcase utc_connection_profile_is_cellular_roaming_p
- * @since_tizen 2.3
+ * @since_tizen 2.3
* @type Positive
* @description Checks wheter the connection is in roaming state.
- * @scenario Invoking connection_profile_is_cellular_roaming with valid parameter.
+ * @scenario Invoking connection_profile_is_cellular_roaming with valid parameter.
*/
int utc_connection_profile_is_cellular_roaming_p(void)
{
/**
* @testcase utc_connection_profile_is_cellular_roaming_n
- * @since_tizen 2.3
+ * @since_tizen 2.3
* @type Negative
* @description connection_profile_is_cellular_roaming should fail with invalid parameter.
- * @scenario Verify connection_profile_is_cellular_roaming by passing invalid parameter.
+ * @scenario Verify connection_profile_is_cellular_roaming by passing invalid parameter.
*/
int utc_connection_profile_is_cellular_roaming_n(void)
{
/**
* @testcase utc_connection_profile_is_cellular_hidden_p
- * @since_tizen 2.3
+ * @since_tizen 2.3
* @type Positive
* @description Checks whether the profile is hidden.
- * @scenario Invoking connection_profile_is_cellular_hidden with valid parameter.
+ * @scenario Invoking connection_profile_is_cellular_hidden with valid parameter.
*/
int utc_connection_profile_is_cellular_hidden_p(void)
{
/**
* @testcase utc_connection_profile_is_cellular_hidden_n
- * @since_tizen 2.3
+ * @since_tizen 2.3
* @type Negative
* @description connection_profile_is_cellular_hidden should fail with invalid parameter.
- * @scenario Verify connection_profile_is_cellular_hidden by passing invalid parameter.
+ * @scenario Verify connection_profile_is_cellular_hidden by passing invalid parameter.
*/
int utc_connection_profile_is_cellular_hidden_n(void)
{
/**
* @testcase utc_connection_profile_is_cellular_editable_p
- * @since_tizen 2.3
+ * @since_tizen 2.3
* @type Positive
* @description Checks whether the profile is editable.
- * @scenario Invoking connection_profile_is_cellular_editable with valid parameter.
+ * @scenario Invoking connection_profile_is_cellular_editable with valid parameter.
*/
int utc_connection_profile_is_cellular_editable_p(void)
{
/**
* @testcase utc_connection_profile_is_cellular_editable_n
- * @since_tizen 2.3
+ * @since_tizen 2.3
* @type Negative
* @description connection_profile_is_cellular_editable should fail with invalid parameter.
- * @scenario Verify connection_profile_is_cellular_editable by passing invalid parameter.
+ * @scenario Verify connection_profile_is_cellular_editable by passing invalid parameter.
*/
int utc_connection_profile_is_cellular_editable_n(void)
{
/**
* @testcase utc_connection_profile_is_cellular_default_p
- * @since_tizen 2.3
+ * @since_tizen 2.3
* @type Positive
* @description Checks whether the profile is default.is_default @c true if the profile is default,
otherwise @c false if the profile is not default
- * @scenario Invoking connection_profile_is_cellular_default with valid parameter.
+ * @scenario Invoking connection_profile_is_cellular_default with valid parameter.
*/
int utc_connection_profile_is_cellular_default_p(void)
{
/**
* @testcase utc_connection_profile_is_cellular_default_n
- * @since_tizen 2.3
+ * @since_tizen 2.3
* @type Negative
* @description connection_profile_is_cellular_default should fail with invalid parameter.
- * @scenario Verify connection_profile_is_cellular_default by passing invalid parameter.
+ * @scenario Verify connection_profile_is_cellular_default by passing invalid parameter.
*/
int utc_connection_profile_is_cellular_default_n(void)
{
/**
* @testcase utc_connection_profile_refresh_p
- * @since_tizen 2.3
+ * @since_tizen 2.3
* @type Positive
* @description Refreshes the profile information.
- * @scenario Invoking connection_profile_refresh with valid parameter.
+ * @scenario Invoking connection_profile_refresh with valid parameter.
*/
int utc_connection_profile_refresh_p(void)
{
/**
* @testcase utc_connection_profile_refresh_n
- * @since_tizen 2.3
+ * @since_tizen 2.3
* @type Negative
* @description connection_profile_refresh should fail with invalid parameter.
- * @scenario Verify connection_profile_refresh by passing invalid profile handle.
+ * @scenario Verify connection_profile_refresh by passing invalid profile handle.
*/
int utc_connection_profile_refresh_n(void)
{
int ret = connection_profile_refresh(profile_inval);
- if (all_features_not_supported) {
+ if (all_features_not_supported)
CHECK_RETURN("connection_profile_refresh", ret, CONNECTION_ERROR_NOT_SUPPORTED);
- } else {
+ else
CHECK_RETURN("connection_profile_refresh", ret, CONNECTION_ERROR_INVALID_PARAMETER);
- }
-
return 0;
}
/**
* @testcase utc_connection_profile_get_wifi_essid_p
- * @since_tizen 2.3
+ * @since_tizen 2.3
* @type Positive
* @description Gets the ESSID (Extended Service Set Identifier).
- * @scenario Invoking connection_profile_get_wifi_essid with valid parameter.
+ * @scenario Invoking connection_profile_get_wifi_essid with valid parameter.
*/
int utc_connection_profile_get_wifi_essid_p(void)
{
int ret = connection_profile_get_wifi_essid(profile_wifi, &essid);
FREE_RESOURCE(essid);
- if (wifi_supported) {
+ if (wifi_supported)
CHECK_RETURN("connection_profile_get_wifi_essid", ret, CONNECTION_ERROR_NONE);
- } else {
+ else
CHECK_RETURN("connection_profile_get_wifi_essid", ret, CONNECTION_ERROR_NOT_SUPPORTED);
- }
-
return 0;
}
/**
* @testcase utc_connection_profile_get_wifi_essid_n
- * @since_tizen 2.3
+ * @since_tizen 2.3
* @type Negative
* @description connection_profile_get_wifi_essid should fail with invalid parameter.
- * @scenario Verify connection_profile_get_wifi_essid by passing invalid parameter.
+ * @scenario Verify connection_profile_get_wifi_essid by passing invalid parameter.
*/
int utc_connection_profile_get_wifi_essid_n(void)
{
/**
* @testcase utc_connection_profile_get_wifi_bssid_p
- * @since_tizen 2.3
+ * @since_tizen 2.3
* @type Positive
* @description Gets the BSSID (Basic Service Set Identifier).
- * @scenario Invoking connection_profile_get_wifi_bssid with valid parameter.
+ * @scenario Invoking connection_profile_get_wifi_bssid with valid parameter.
*/
int utc_connection_profile_get_wifi_bssid_p(void)
{
int ret = connection_profile_get_wifi_bssid(profile_wifi, &bssid);
FREE_RESOURCE(bssid);
- if (wifi_supported) {
+ if (wifi_supported)
CHECK_RETURN("connection_profile_get_wifi_bssid", ret, CONNECTION_ERROR_NONE);
- } else {
+ else
CHECK_RETURN("connection_profile_get_wifi_bssid", ret, CONNECTION_ERROR_NOT_SUPPORTED);
- }
-
return 0;
}
/**
* @testcase utc_connection_profile_get_wifi_bssid_n
- * @since_tizen 2.3
+ * @since_tizen 2.3
* @type Negative
* @description connection_profile_get_wifi_bssid should fail with invalid parameter.
- * @scenario Verify connection_profile_get_wifi_bssid by passing invalid parameter.
+ * @scenario Verify connection_profile_get_wifi_bssid by passing invalid parameter.
*/
int utc_connection_profile_get_wifi_bssid_n(void)
{
/**
* @testcase utc_connection_profile_get_wifi_rssi_p
- * @since_tizen 2.3
+ * @since_tizen 2.3
* @type Positive
* @description Gets the RSSI.
- * @scenario Invoking connection_profile_get_wifi_rssi with valid parameter.
+ * @scenario Invoking connection_profile_get_wifi_rssi with valid parameter.
*/
int utc_connection_profile_get_wifi_rssi_p(void)
{
/**
* @testcase utc_connection_profile_get_wifi_rssi_n
- * @since_tizen 2.3
+ * @since_tizen 2.3
* @type Negative
* @description connection_profile_get_wifi_rssi should fail with invalid parameter.
- * @scenario Verify connection_profile_get_wifi_rssi by passing invalid parameter.
+ * @scenario Verify connection_profile_get_wifi_rssi by passing invalid parameter.
*/
int utc_connection_profile_get_wifi_rssi_n(void)
{
/**
* @testcase utc_connection_profile_get_wifi_frequency_p
- * @since_tizen 2.3
+ * @since_tizen 2.3
* @type Positive
* @description Gets the frequency (MHz).
- * @scenario Invoking connection_profile_get_wifi_frequency with valid parameter.
+ * @scenario Invoking connection_profile_get_wifi_frequency with valid parameter.
*/
int utc_connection_profile_get_wifi_frequency_p(void)
{
/**
* @testcase utc_connection_profile_get_wifi_frequency_n
- * @since_tizen 2.3
+ * @since_tizen 2.3
* @type Negative
* @description connection_profile_get_wifi_frequency should fail with invalid parameter.
- * @scenario Verify connection_profile_get_wifi_frequency by passing invalid parameter.
+ * @scenario Verify connection_profile_get_wifi_frequency by passing invalid parameter.
*/
int utc_connection_profile_get_wifi_frequency_n(void)
{
/**
* @testcase utc_connection_profile_get_wifi_max_speed_p
- * @since_tizen 2.3
+ * @since_tizen 2.3
* @type Positive
* @description Gets the max speed (Mbps).
- * @scenario Invoking connection_profile_get_wifi_max_speed with valid parameter.
+ * @scenario Invoking connection_profile_get_wifi_max_speed with valid parameter.
*/
int utc_connection_profile_get_wifi_max_speed_p(void)
{
/**
* @testcase utc_connection_profile_get_wifi_max_speed_n
- * @since_tizen 2.3
+ * @since_tizen 2.3
* @type Negative
* @description connection_profile_get_wifi_max_speed should fail with invalid parameter.
- * @scenario Verify connection_profile_get_wifi_max_speed by passing invalid parameter.
+ * @scenario Verify connection_profile_get_wifi_max_speed by passing invalid parameter.
*/
int utc_connection_profile_get_wifi_max_speed_n(void)
{
/**
* @testcase utc_connection_profile_get_wifi_security_type_p
- * @since_tizen 2.3
+ * @since_tizen 2.3
* @type Positive
* @description Gets the security mode of Wi-Fi.
- * @scenario Invoking connection_profile_get_wifi_security_type with valid parameter.
+ * @scenario Invoking connection_profile_get_wifi_security_type with valid parameter.
*/
int utc_connection_profile_get_wifi_security_type_p(void)
{
/**
* @testcase utc_connection_profile_get_wifi_security_type_n
- * @since_tizen 2.3
+ * @since_tizen 2.3
* @type Negative
* @description connection_profile_get_wifi_security_type should fail with invalid parameter.
- * @scenario Verify connection_profile_get_wifi_security_type by passing invalid parameter.
+ * @scenario Verify connection_profile_get_wifi_security_type by passing invalid parameter.
*/
int utc_connection_profile_get_wifi_security_type_n(void)
{
/**
* @testcase utc_connection_profile_get_wifi_encryption_type_p
- * @since_tizen 2.3
+ * @since_tizen 2.3
* @type Positive
* @description Gets the security mode of Wi-Fi.
- * @scenario Invoking connection_profile_get_wifi_encryption_type with valid parameter.
+ * @scenario Invoking connection_profile_get_wifi_encryption_type with valid parameter.
*/
int utc_connection_profile_get_wifi_encryption_type_p(void)
{
/**
* @testcase utc_connection_profile_get_wifi_encryption_type_n
- * @since_tizen 2.3
+ * @since_tizen 2.3
* @type Negative
* @description connection_profile_get_wifi_encryption_type should fail with invalid parameter.
- * @scenario Verify connection_profile_get_wifi_encryption_type by passing invalid parameter.
+ * @scenario Verify connection_profile_get_wifi_encryption_type by passing invalid parameter.
*/
int utc_connection_profile_get_wifi_encryption_type_n(void)
{
/**
* @testcase utc_connection_profile_is_wifi_passphrase_required_p
- * @since_tizen 2.3
+ * @since_tizen 2.3
* @type Positive
* @description Checks whether passphrase is required.
- * @scenario Invoking connection_profile_is_wifi_passphrase_required with valid parameter.
+ * @scenario Invoking connection_profile_is_wifi_passphrase_required with valid parameter.
*/
int utc_connection_profile_is_wifi_passphrase_required_p(void)
{
/**
* @testcase utc_connection_profile_is_wifi_passphrase_required_n
- * @since_tizen 2.3
+ * @since_tizen 2.3
* @type Negative
* @description connection_profile_is_wifi_passphrase_required should fail with invalid parameter.
- * @scenario Verify connection_profile_is_wifi_passphrase_required by passing invalid parameter.
+ * @scenario Verify connection_profile_is_wifi_passphrase_required by passing invalid parameter.
*/
int utc_connection_profile_is_wifi_passphrase_required_n(void)
{
/**
* @testcase utc_connection_profile_set_wifi_passphrase_p
- * @since_tizen 2.3
+ * @since_tizen 2.3
* @type Positive
* @description Sets the passphrase of the Wi-Fi WPA.
- * @scenario Invoking connection_profile_set_wifi_passphrase with valid parameter.
+ * @scenario Invoking connection_profile_set_wifi_passphrase with valid parameter.
*/
int utc_connection_profile_set_wifi_passphrase_p(void)
{
- if(wifi_supported) {
- int ret = connection_profile_set_wifi_passphrase(profile_wifi, "keystring");
- CHECK_RETURN("connection_profile_set_wifi_passphrase", ret, CONNECTION_ERROR_NONE);
- } else {
- int ret = connection_profile_set_wifi_passphrase(profile_wifi, "keystring");
- CHECK_RETURN("connection_profile_set_wifi_passphrase", ret, CONNECTION_ERROR_NOT_SUPPORTED);
- }
+ if (wifi_supported) {
+ int ret = connection_profile_set_wifi_passphrase(profile_wifi, "keystring");
+ CHECK_RETURN("connection_profile_set_wifi_passphrase", ret, CONNECTION_ERROR_NONE);
+ } else {
+ int ret = connection_profile_set_wifi_passphrase(profile_wifi, "keystring");
+ CHECK_RETURN("connection_profile_set_wifi_passphrase", ret, CONNECTION_ERROR_NOT_SUPPORTED);
+ }
- return 0;
+ return 0;
}
/**
* @testcase utc_connection_profile_set_wifi_passphrase_n
- * @since_tizen 2.3
+ * @since_tizen 2.3
* @type Negative
* @description connection_profile_set_wifi_passphrase should fail with invalid parameter.
- * @scenario Verify connection_profile_set_wifi_passphrase by passing invalid parameter.
+ * @scenario Verify connection_profile_set_wifi_passphrase by passing invalid parameter.
*/
int utc_connection_profile_set_wifi_passphrase_n(void)
{
- connection_profile_h profile_inval = NULL;
+ connection_profile_h profile_inval = NULL;
- if(wifi_supported) {
- int ret = connection_profile_set_wifi_passphrase(profile_inval, NULL);
- CHECK_RETURN("connection_profile_set_wifi_passphrase", ret, CONNECTION_ERROR_INVALID_PARAMETER);
- ret = connection_profile_set_wifi_passphrase(profile_inval, "keystring");
- CHECK_RETURN("connection_profile_set_wifi_passphrase", ret, CONNECTION_ERROR_INVALID_PARAMETER);
- ret = connection_profile_set_wifi_passphrase(profile_wifi, NULL);
- CHECK_RETURN("connection_profile_set_wifi_passphrase", ret, CONNECTION_ERROR_INVALID_PARAMETER);
- ret = connection_profile_set_wifi_passphrase(profile_cellular, "keystring");
- CHECK_RETURN("connection_profile_set_wifi_passphrase", ret, CONNECTION_ERROR_INVALID_PARAMETER);
- } else {
- int ret = connection_profile_set_wifi_passphrase(profile_inval, NULL);
- CHECK_RETURN("connection_profile_set_wifi_passphrase", ret, CONNECTION_ERROR_NOT_SUPPORTED);
- }
+ if (wifi_supported) {
+ int ret = connection_profile_set_wifi_passphrase(profile_inval, NULL);
+ CHECK_RETURN("connection_profile_set_wifi_passphrase", ret, CONNECTION_ERROR_INVALID_PARAMETER);
+ ret = connection_profile_set_wifi_passphrase(profile_inval, "keystring");
+ CHECK_RETURN("connection_profile_set_wifi_passphrase", ret, CONNECTION_ERROR_INVALID_PARAMETER);
+ ret = connection_profile_set_wifi_passphrase(profile_wifi, NULL);
+ CHECK_RETURN("connection_profile_set_wifi_passphrase", ret, CONNECTION_ERROR_INVALID_PARAMETER);
+ ret = connection_profile_set_wifi_passphrase(profile_cellular, "keystring");
+ CHECK_RETURN("connection_profile_set_wifi_passphrase", ret, CONNECTION_ERROR_INVALID_PARAMETER);
+ } else {
+ int ret = connection_profile_set_wifi_passphrase(profile_inval, NULL);
+ CHECK_RETURN("connection_profile_set_wifi_passphrase", ret, CONNECTION_ERROR_NOT_SUPPORTED);
+ }
- return 0;
+ return 0;
}
/**
* @testcase utc_connection_profile_is_wifi_wps_supported_p
- * @since_tizen 2.3
+ * @since_tizen 2.3
* @type Positive
* @description Checks whether the WPS (Wi-Fi Protected Setup) is supported.
- * @scenario Invoking connection_profile_is_wifi_wps_supported with valid parameter.
+ * @scenario Invoking connection_profile_is_wifi_wps_supported with valid parameter.
*/
int utc_connection_profile_is_wifi_wps_supported_p(void)
{
- bool flag;
+ bool flag;
- if(wifi_supported) {
- int ret = connection_profile_is_wifi_wps_supported(profile_wifi, &flag);
- CHECK_RETURN("connection_profile_set_wifi_passphrase", ret, CONNECTION_ERROR_NONE);
- } else {
- int ret = connection_profile_is_wifi_wps_supported(profile_wifi, &flag);
- CHECK_RETURN("connection_profile_set_wifi_passphrase", ret, CONNECTION_ERROR_NOT_SUPPORTED);
- }
+ if (wifi_supported) {
+ int ret = connection_profile_is_wifi_wps_supported(profile_wifi, &flag);
+ CHECK_RETURN("connection_profile_set_wifi_passphrase", ret, CONNECTION_ERROR_NONE);
+ } else {
+ int ret = connection_profile_is_wifi_wps_supported(profile_wifi, &flag);
+ CHECK_RETURN("connection_profile_set_wifi_passphrase", ret, CONNECTION_ERROR_NOT_SUPPORTED);
+ }
- return 0;
+ return 0;
}
/**
* @testcase utc_connection_profile_is_wifi_wps_supported_n
- * @since_tizen 2.3
+ * @since_tizen 2.3
* @type Negative
* @description connection_profile_is_wifi_wps_supported should fail with invalid parameter.
- * @scenario Verify connection_profile_is_wifi_wps_supported by passing invalid parameter.
+ * @scenario Verify connection_profile_is_wifi_wps_supported by passing invalid parameter.
*/
int utc_connection_profile_is_wifi_wps_supported_n(void)
{
- connection_profile_h profile_inval = NULL;
- bool flag;
+ connection_profile_h profile_inval = NULL;
+ bool flag;
- if(wifi_supported) {
- int ret = connection_profile_is_wifi_wps_supported(profile_inval, NULL);
- CHECK_RETURN("connection_profile_set_wifi_passphrase", ret, CONNECTION_ERROR_INVALID_PARAMETER);
- ret = connection_profile_is_wifi_wps_supported(profile_inval, &flag);
- CHECK_RETURN("connection_profile_set_wifi_passphrase", ret, CONNECTION_ERROR_INVALID_PARAMETER);
- ret = connection_profile_is_wifi_wps_supported(profile_wifi, NULL);
- CHECK_RETURN("connection_profile_set_wifi_passphrase", ret, CONNECTION_ERROR_INVALID_PARAMETER);
- ret = connection_profile_is_wifi_wps_supported(profile_cellular, &flag);
- CHECK_RETURN("connection_profile_set_wifi_passphrase", ret, CONNECTION_ERROR_INVALID_PARAMETER);
- } else {
- int ret = connection_profile_is_wifi_wps_supported(profile_inval, NULL);
- CHECK_RETURN("connection_profile_set_wifi_passphrase", ret, CONNECTION_ERROR_NOT_SUPPORTED);
- }
+ if (wifi_supported) {
+ int ret = connection_profile_is_wifi_wps_supported(profile_inval, NULL);
+ CHECK_RETURN("connection_profile_set_wifi_passphrase", ret, CONNECTION_ERROR_INVALID_PARAMETER);
+ ret = connection_profile_is_wifi_wps_supported(profile_inval, &flag);
+ CHECK_RETURN("connection_profile_set_wifi_passphrase", ret, CONNECTION_ERROR_INVALID_PARAMETER);
+ ret = connection_profile_is_wifi_wps_supported(profile_wifi, NULL);
+ CHECK_RETURN("connection_profile_set_wifi_passphrase", ret, CONNECTION_ERROR_INVALID_PARAMETER);
+ ret = connection_profile_is_wifi_wps_supported(profile_cellular, &flag);
+ CHECK_RETURN("connection_profile_set_wifi_passphrase", ret, CONNECTION_ERROR_INVALID_PARAMETER);
+ } else {
+ int ret = connection_profile_is_wifi_wps_supported(profile_inval, NULL);
+ CHECK_RETURN("connection_profile_set_wifi_passphrase", ret, CONNECTION_ERROR_NOT_SUPPORTED);
+ }
- return 0;
+ return 0;
}
/**
- * @testcase utc_connection_profile_get_ipv6_state_p
- * @since_tizen 4.0
- * @type Positive
- * @description Gets IPv6 state
- * @scenario Invoking connection_profile_get_ipv6_state with valid parameter.
+ * @testcase utc_connection_profile_get_ipv6_state_p
+ * @since_tizen 4.0
+ * @type Positive
+ * @description Gets IPv6 state
+ * @scenario Invoking connection_profile_get_ipv6_state with valid parameter.
*/
int utc_connection_profile_get_ipv6_state_p(void)
{
connection_profile_state_e state;
int ret = test_get_any_profile(&profile_temp);
- if(all_features_not_supported) {
+ if (all_features_not_supported) {
ret = connection_profile_get_ipv6_state(profile_temp, &state);
CHECK_RETURN("connection_profile_get_ipv6_state", ret, CONNECTION_ERROR_NOT_SUPPORTED);
return 0;
ret = connection_profile_get_ipv6_state(profile_temp, &state);
CHECK_RETURN("connection_profile_get_ipv6_state", ret, CONNECTION_ERROR_NONE);
- return 0;
+ return 0;
}
/**
- * @testcase utc_connection_profile_get_ipv6_state_n
- * @since_tizen 4.0
- * @type Negative
- * @description connection_profile_get_ipv6_state should be failed with invalid parameter.
- * @scenario Verify connection_profile_get_ipv6_state by passing invalid parameter.
+ * @testcase utc_connection_profile_get_ipv6_state_n
+ * @since_tizen 4.0
+ * @type Negative
+ * @description connection_profile_get_ipv6_state should be failed with invalid parameter.
+ * @scenario Verify connection_profile_get_ipv6_state by passing invalid parameter.
*/
int utc_connection_profile_get_ipv6_state_n(void)
{
connection_profile_h profile_inval = NULL;
connection_profile_state_e state;
- if(all_features_not_supported) {
+ if (all_features_not_supported) {
int ret = connection_profile_get_ipv6_state(profile_inval, NULL);
CHECK_RETURN("connection_profile_get_ipv6_state", ret, CONNECTION_ERROR_NOT_SUPPORTED);
return 0;
ret = connection_profile_get_ipv6_state(profile_wifi, NULL);
CHECK_RETURN("connection_profile_get_ipv6_state", ret, CONNECTION_ERROR_INVALID_PARAMETER);
- return 0;
+ return 0;
}
/**
- * @testcase utc_connection_profile_get_prefix_length_p
- * @since_tizen 4.0
- * @type Positive
- * @description Gets prefix length
- * @scenario Invoking connection_profile_get_ipv6_state with valid parameter.
+ * @testcase utc_connection_profile_get_prefix_length_p
+ * @since_tizen 4.0
+ * @type Positive
+ * @description Gets prefix length
+ * @scenario Invoking connection_profile_get_ipv6_state with valid parameter.
*/
int utc_connection_profile_get_prefix_length_p(void)
{
int ret = connection_profile_set_prefix_length(profile_inval, CONNECTION_ADDRESS_FAMILY_IPV4, length);
CHECK_RETURN("connection_profile_set_prefix_length", ret, CONNECTION_ERROR_INVALID_PARAMETER);
- return 0;
+ return 0;
}
/**
- * @testcase utc_connection_profile_get_dns_config_type_p
- * @since_tizen 4.0
- * @type Positive
- * @description Gets DNS configuration type
- * @scenario Invoking connection_profile_get_dns_config_typ with valid parameter.
+ * @testcase utc_connection_profile_get_dns_config_type_p
+ * @since_tizen 4.0
+ * @type Positive
+ * @description Gets DNS configuration type
+ * @scenario Invoking connection_profile_get_dns_config_typ with valid parameter.
*/
int utc_connection_profile_get_dns_config_type_p(void)
{
}
/**
- * @testcase utc_connection_profile_get_dns_config_type_n
- * @since_tizen 4.0
- * @type Negative
- * @description connection_profile_get_dns_config_typ should be failed with invalid parameter.
- * @scenario Verify connection_profile_get_dns_config_typ by passing invalid parameter.
+ * @testcase utc_connection_profile_get_dns_config_type_n
+ * @since_tizen 4.0
+ * @type Negative
+ * @description connection_profile_get_dns_config_typ should be failed with invalid parameter.
+ * @scenario Verify connection_profile_get_dns_config_typ by passing invalid parameter.
*/
int utc_connection_profile_get_dns_config_type_n(void)
{
connection_profile_h profile_inval = NULL;
connection_dns_config_type_e config_type;
- if(all_features_not_supported) {
+ if (all_features_not_supported) {
int ret = connection_profile_get_dns_config_type(profile_inval, CONNECTION_ADDRESS_FAMILY_IPV4, NULL);
CHECK_RETURN("connection_profile_get_dns_config_type", ret, CONNECTION_ERROR_NOT_SUPPORTED);
return 0;
}
/**
- * @testcase utc_connection_profile_set_dns_config_type_p
- * @since_tizen 4.0
- * @type Positive
- * @description Sets DNS configuration type
- * @scenario Invoking connection_profile_set_dns_config_typ with valid parameter.
+ * @testcase utc_connection_profile_set_dns_config_type_p
+ * @since_tizen 4.0
+ * @type Positive
+ * @description Sets DNS configuration type
+ * @scenario Invoking connection_profile_set_dns_config_typ with valid parameter.
*/
int utc_connection_profile_set_dns_config_type_p(void)
{
/**
* @testcase utc_connection_profile_set_dns_config_type_n
- * @since_tizen 4.0
- * @type Negative
+ * @since_tizen 4.0
+ * @type Negative
* @description connection_profile_set_dns_config_typ should be failed with invalid parameter.
- * @scenario Verify connection_profile_get_dns_config_typ by passing invalid parameter.
+ * @scenario Verify connection_profile_get_dns_config_typ by passing invalid parameter.
*/
int utc_connection_profile_set_dns_config_type_n(void)
{
/**
* @testcase utc_connection_profile_get_internet_state_p
- * @since_tizen 5.5
+ * @since_tizen 5.5
* @type Positive
* @description Gets internet state.
- * @scenario Verify connection_profile_get_internet_state by passing valid parameter.
+ * @scenario Verify connection_profile_get_internet_state by passing valid parameter.
*/
int utc_connection_profile_get_internet_state_p(void)
{
/**
* @testcase utc_connection_profile_get_internet_state_n1
- * @since_tizen 5.5
+ * @since_tizen 5.5
* @type Negative
* @description connection_profile_get_internet_state should be failed with invalid parameter.
- * @scenario Verify connection_profile_get_internet_state by passing profile as NULL.
+ * @scenario Verify connection_profile_get_internet_state by passing profile as NULL.
*/
int utc_connection_profile_get_internet_state_n1(void)
{
/**
* @testcase utc_connection_profile_get_internet_state_n2
- * @since_tizen 5.5
+ * @since_tizen 5.5
* @type Negative
* @description connection_profile_get_internet_state should be failed with invalid parameter.
- * @scenario Verify connection_profile_get_internet_state by passing invalid parameter.
+ * @scenario Verify connection_profile_get_internet_state by passing invalid parameter.
*/
int utc_connection_profile_get_internet_state_n2(void)
{
/**
* @testcase utc_connection_profile_destroy_p
- * @since_tizen 2.3
+ * @since_tizen 2.3
* @type Positive
* @description Destroys a profile handle.
- * @scenario Invoking connection_profile_destroy with valid parameter.
+ * @scenario Invoking connection_profile_destroy with valid parameter.
*/
int utc_connection_profile_destroy_p(void)
{
/**
* @testcase utc_connection_profile_destroy_n
- * @since_tizen 2.3
+ * @since_tizen 2.3
* @type Negative
* @description connection_profile_destroy should fail with invalid parameter.
- * @scenario Verify connection_profile_destroy by passing invalid parameter.
+ * @scenario Verify connection_profile_destroy by passing invalid parameter.
*/
int utc_connection_profile_destroy_n(void)
{
int ret = connection_profile_destroy(NULL);
- if (all_features_not_supported) {
+ if (all_features_not_supported)
CHECK_RETURN("connection_profile_destroy", ret, CONNECTION_ERROR_NOT_SUPPORTED);
- } else {
+ else
CHECK_RETURN("connection_profile_destroy", ret, CONNECTION_ERROR_INVALID_PARAMETER);
- }
-
return 0;
}
/**
* @testcase utc_connection_create_p
- * @since_tizen 2.3
+ * @since_tizen 2.3
* @type Positive
* @description Creates a handle for managing data connections.
- * @scenario Invoking connection_create with valid parameter.Destroy and create Connection.
+ * @scenario Invoking connection_create with valid parameter.Destroy and create Connection.
*/
int utc_connection_create_p(void)
{
/**
* @testcase utc_connection_create_n
- * @since_tizen 2.3
+ * @since_tizen 2.3
* @type Negative
* @description connection_create should fail with invalid parameter.
- * @scenario Verify connection_create by passing NULL parameter.
+ * @scenario Verify connection_create by passing NULL parameter.
*/
int utc_connection_create_n(void)
{
/**
* @testcase utc_connection_get_ip_address_p
- * @since_tizen 2.3
+ * @since_tizen 2.3
* @type Positive
* @description Gets the IP address of the current connection.
- * @scenario Invoking connection_get_ip_address with valid parameter.
+ * @scenario Invoking connection_get_ip_address with valid parameter.
*/
int utc_connection_get_ip_address_p(void)
{
int ret = connection_get_ip_address(connection, CONNECTION_ADDRESS_FAMILY_IPV4, &ip_address);
FREE_RESOURCE(ip_address);
- if (all_features_not_supported) {
+ if (all_features_not_supported)
CHECK_RETURN("connection_get_ip_address", ret, CONNECTION_ERROR_NOT_SUPPORTED);
- } else {
+ else
CHECK_RETURN("connection_get_ip_address", ret, CONNECTION_ERROR_NONE);
- }
-
ret = connection_get_ip_address(connection, CONNECTION_ADDRESS_FAMILY_IPV6, &ip_address);
FREE_RESOURCE(ip_address);
- if (all_features_not_supported) {
+ if (all_features_not_supported)
CHECK_RETURN("connection_get_ip_address", ret, CONNECTION_ERROR_NOT_SUPPORTED);
- } else {
+ else
CHECK_RETURN("connection_get_ip_address", ret, CONNECTION_ERROR_NONE);
- }
-
return 0;
}
/**
* @testcase utc_connection_get_ip_address_n
- * @since_tizen 2.3
+ * @since_tizen 2.3
* @type Negative
* @description connection_get_ip_address should fail with invalid parameter.
- * @scenario Verify connection_get_ip_address by passing invalid parameter.
+ * @scenario Verify connection_get_ip_address by passing invalid parameter.
*/
int utc_connection_get_ip_address_n(void)
{
/**
* @testcase utc_connection_get_proxy_p
- * @since_tizen 2.3
+ * @since_tizen 2.3
* @type Positive
* @description Gets the proxy address of the current connection.
- * @scenario Invoking connection_get_proxy with valid parameter.
+ * @scenario Invoking connection_get_proxy with valid parameter.
*/
int utc_connection_get_proxy_p(void)
{
int ret = connection_get_proxy(connection, CONNECTION_ADDRESS_FAMILY_IPV4, &proxy);
FREE_RESOURCE(proxy);
-
- if (all_features_not_supported) {
+ if (all_features_not_supported)
CHECK_RETURN("connection_get_proxy", ret, CONNECTION_ERROR_NOT_SUPPORTED);
- } else {
+ else
CHECK_RETURN("connection_get_proxy", ret, CONNECTION_ERROR_NONE);
- }
-
return 0;
}
/**
* @testcase utc_connection_get_proxy_n
- * @since_tizen 2.3
+ * @since_tizen 2.3
* @type Negative
* @description connection_get_proxy should fail with invalid parameter.
- * @scenario Verify connection_get_proxy by passing invalid parameter.
+ * @scenario Verify connection_get_proxy by passing invalid parameter.
*/
int utc_connection_get_proxy_n(void)
{
/**
* @testcase utc_connection_get_type_n
- * @since_tizen 2.3
+ * @since_tizen 2.3
* @type Negative
* @description connection_get_type should fail with invalid parameter.
- * @scenario Verify connection_get_type by passing invalid parameter.
+ * @scenario Verify connection_get_type by passing invalid parameter.
*/
int utc_connection_get_type_n(void)
{
/**
* @testcase utc_connection_get_type_p
- * @since_tizen 2.3
+ * @since_tizen 2.3
* @type Positive
* @description Gets the type of the current profile for data connection.
- * @scenario Invoking connection_get_type with valid parameter.
+ * @scenario Invoking connection_get_type with valid parameter.
*/
int utc_connection_get_type_p(void)
{
int ret = connection_get_type(connection, &state);
- if (all_features_not_supported) {
+ if (all_features_not_supported)
CHECK_RETURN("connection_get_type", ret, CONNECTION_ERROR_NOT_SUPPORTED);
- } else {
+ else
CHECK_RETURN("connection_get_type", ret, CONNECTION_ERROR_NONE);
- }
-
return 0;
}
/**
* @testcase utc_connection_is_metered_network_n
- * @since_tizen 4.0
+ * @since_tizen 4.0
* @type Negative
* @description connection_is_metered_network should fail with invalid parameter.
- * @scenario Verify utc_connection_is_metered_network_n by passing invalid parameter.
+ * @scenario Verify utc_connection_is_metered_network_n by passing invalid parameter.
*/
int utc_connection_is_metered_network_n(void)
{
/**
* @testcase utc_connection_is_metered_network_p
- * @since_tizen 4.0
+ * @since_tizen 4.0
* @type Positive
* @description Gets if the current connection is metered.
- * @scenario Invoking utc_connection_is_metered_network_p with valid parameter.
+ * @scenario Invoking utc_connection_is_metered_network_p with valid parameter.
*/
int utc_connection_is_metered_network_p(void)
{
int ret = connection_is_metered_network(connection, &state);
connection_get_type(connection, &type);
- if (all_features_not_supported) {
+ if (all_features_not_supported)
CHECK_RETURN("connection_is_metered_network", ret, CONNECTION_ERROR_NOT_SUPPORTED);
- } else if (state) {
+ else if (state)
CHECK_RETURN("connection_is_metered_network", type, CONNECTION_TYPE_CELLULAR);
- } else {
+ else
CHECK_RETURN("connection_is_metered_network", ret, CONNECTION_ERROR_NONE);
- }
-
return 0;
}
/**
* @testcase utc_connection_get_cellular_state_n
- * @since_tizen 2.3
+ * @since_tizen 2.3
* @type Negative
* @description connection_get_cellular_state should fail with invalid parameter.
- * @scenario Verify connection_get_cellular_state by passing invalid parameter.
+ * @scenario Verify connection_get_cellular_state by passing invalid parameter.
*/
int utc_connection_get_cellular_state_n(void)
{
/**
* @testcase utc_connection_get_cellular_state_p
- * @since_tizen 2.3
+ * @since_tizen 2.3
* @type Positive
* @description Gets the state of cellular connection.
- * @scenario Invoking connection_get_cellular_state with valid parameter.
+ * @scenario Invoking connection_get_cellular_state with valid parameter.
*/
int utc_connection_get_cellular_state_p(void)
{
/**
* @testcase utc_connection_get_ethernet_state_n
- * @since_tizen 2.4
+ * @since_tizen 2.4
* @type Negative
* @description connection_get_ethernet_state should fail with invalid parameter.
- * @scenario Verify connection_get_ethernet_state by passing invalid parameter.
+ * @scenario Verify connection_get_ethernet_state by passing invalid parameter.
*/
int utc_connection_get_ethernet_state_n(void)
{
/**
* @testcase utc_connection_get_ethernet_state_p
- * @since_tizen 2.4
+ * @since_tizen 2.4
* @type Positive
* @description Gets the state of the Ethernet.
- * @scenario Invoking connection_get_ethernet_state with valid parameter.
+ * @scenario Invoking connection_get_ethernet_state with valid parameter.
*/
int utc_connection_get_ethernet_state_p(void)
{
/**
* @testcase utc_connection_get_wifi_state_n
- * @since_tizen 2.3
+ * @since_tizen 2.3
* @type Negative
* @description connection_get_wifi_state should fail with invalid parameter.
- * @scenario Verify connection_get_wifi_state by passing invalid parameter.
+ * @scenario Verify connection_get_wifi_state by passing invalid parameter.
*/
int utc_connection_get_wifi_state_n(void)
{
/**
* @testcase utc_connection_get_wifi_state_p
- * @since_tizen 2.3
+ * @since_tizen 2.3
* @type Positive
* @description Gets the state of the Wi-Fi.
- * @scenario Invoking connection_get_wifi_state with valid parameter.
+ * @scenario Invoking connection_get_wifi_state with valid parameter.
*/
int utc_connection_get_wifi_state_p(void)
{
/**
* @testcase utc_connection_get_bt_state_n
- * @since_tizen 2.3
+ * @since_tizen 2.3
* @type Negative
* @description connection_get_bt_state should fail with invalid parameter.
- * @scenario Verify connection_get_bt_state by passing invalid parameter.
+ * @scenario Verify connection_get_bt_state by passing invalid parameter.
*/
int utc_connection_get_bt_state_n(void)
{
/**
* @testcase utc_connection_get_bt_state_p
- * @since_tizen 2.3
+ * @since_tizen 2.3
* @type Positive
* @description Gets the state of the bluetooth.The returned state is for the bluetooth connection state.
- * @scenario Invoking connection_get_bt_state with valid parameter.
+ * @scenario Invoking connection_get_bt_state with valid parameter.
*/
int utc_connection_get_bt_state_p(void)
{
/**
* @testcase utc_connection_get_mac_address_n
- * @since_tizen 2.4
+ * @since_tizen 2.4
* @type Negative
* @description connection_get_mac_address should fail with invalid parameter.
- * @scenario Verify connection_get_mac_address by passing invalid parameter.
+ * @scenario Verify connection_get_mac_address by passing invalid parameter.
*/
int utc_connection_get_mac_address_n(void)
{
/**
* @testcase utc_connection_get_mac_address_p
- * @since_tizen 2.4
+ * @since_tizen 2.4
* @type Positive
* @description Gets the MAC address of the Wi-Fi or ethernet.
- * @scenario Invoking connection_get_mac_address with valid parameter.
+ * @scenario Invoking connection_get_mac_address with valid parameter.
*/
int utc_connection_get_mac_address_p(void)
{
ret = connection_get_mac_address(connection, CONNECTION_TYPE_WIFI, &mac_addr);
assert(mac_addr); FREE_RESOURCE(mac_addr);
CHECK_RETURN("connection_get_mac_address", ret, CONNECTION_ERROR_NONE);
- } else if(ethernet_supported) {
+ } else if (ethernet_supported) {
ret = connection_get_mac_address(connection, CONNECTION_TYPE_ETHERNET, &mac_addr);
assert(mac_addr); FREE_RESOURCE(mac_addr);
CHECK_RETURN("connection_get_mac_address", ret, CONNECTION_ERROR_NONE);
/**
* @testcase utc_connection_set_ethernet_cable_state_chaged_cb_n
- * @since_tizen 2.4
+ * @since_tizen 2.4
* @type Negative
* @description connection_set_ethernet_cable_state_chaged_cb should fail with invalid parameter.
- * @scenario Verify connection_set_ethernet_cable_state_chaged_cb by passing invalid parameter.
+ * @scenario Verify connection_set_ethernet_cable_state_chaged_cb by passing invalid parameter.
*/
int utc_connection_set_ethernet_cable_state_chaged_cb_n(void)
{
/**
* @testcase utc_connection_unset_ethernet_cable_state_chaged_cb_n
- * @since_tizen 2.4
+ * @since_tizen 2.4
* @type Negative
* @description connection_unset_ethernet_cable_state_chaged_cb should fail with invalid parameter.
- * @scenario Verify connection_unset_ethernet_cable_state_chaged_cb by passing invalid parameter.
+ * @scenario Verify connection_unset_ethernet_cable_state_chaged_cb by passing invalid parameter.
*/
int utc_connection_unset_ethernet_cable_state_chaged_cb_n(void)
{
int ret;
ret = connection_unset_ethernet_cable_state_chaged_cb(NULL);
- if (ethernet_supported == false) {
+ if (ethernet_supported == false)
CHECK_RETURN("connection_unset_ethernet_cable_state_chaged_cb", ret, CONNECTION_ERROR_NOT_SUPPORTED);
- } else {
+ else
CHECK_RETURN("connection_unset_ethernet_cable_state_chaged_cb", ret, CONNECTION_ERROR_INVALID_PARAMETER);
- }
+
return 0;
}
{
int ret;
ret = connection_unset_ethernet_cable_state_chaged_cb(connection);
-
- if (ethernet_supported == false) {
+ if (ethernet_supported == false)
CHECK_RETURN("connection_unset_ethernet_cable_state_chaged_cb", ret, CONNECTION_ERROR_NOT_SUPPORTED);
- } else {
+ else
CHECK_RETURN("connection_unset_ethernet_cable_state_chaged_cb", ret, CONNECTION_ERROR_NONE);
- }
-
return 0;
}
/**
* @testcase utc_connection_get_ethernet_cable_state_n
- * @since_tizen 2.4
+ * @since_tizen 2.4
* @type Negative
* @description connection_get_ethernet_cable_state should fail with invalid parameter.
- * @scenario Verify connection_get_ethernet_cable_state by passing invalid parameter.
+ * @scenario Verify connection_get_ethernet_cable_state by passing invalid parameter.
*/
int utc_connection_get_ethernet_cable_state_n(void)
{
/**
* @testcase utc_connection_get_ethernet_cable_state_p
- * @since_tizen 2.4
+ * @since_tizen 2.4
* @type Positive
* @description Checks for ethernet cable is attached or not.
- * @scenario Invoking connection_get_ethernet_cable_state with valid parameter.
+ * @scenario Invoking connection_get_ethernet_cable_state with valid parameter.
*/
int utc_connection_get_ethernet_cable_state_p(void)
{
connection_ethernet_cable_state_e cable_state;
ret = connection_get_ethernet_cable_state(connection, &cable_state);
- if (ethernet_supported == false) {
+ if (ethernet_supported == false)
CHECK_RETURN("connection_get_ethernet_cable_state", ret, CONNECTION_ERROR_NOT_SUPPORTED);
- } else {
+ else
CHECK_RETURN("connection_get_ethernet_cable_state", ret, CONNECTION_ERROR_NONE);
- }
-
return 0;
}
/**
* @testcase utc_connection_get_current_profile_p
- * @since_tizen 2.3
+ * @since_tizen 2.3
* @type Positive
* @description Gets the name of the default profile.
- * @scenario Invoking connection_get_current_profile with valid parameter.
+ * @scenario Invoking connection_get_current_profile with valid parameter.
*/
int utc_connection_get_current_profile_p(void)
{
int ret = connection_get_current_profile(connection, &profile_temp);
- if (all_features_not_supported) {
+ if (all_features_not_supported)
CHECK_RETURN("connection_get_current_profile", ret, CONNECTION_ERROR_NOT_SUPPORTED);
- } else {
+ else
CHECK_RETURN("connection_get_current_profile", ret, CONNECTION_ERROR_NONE);
- }
-
return 0;
}
/**
* @testcase utc_connection_get_current_profile_n
- * @since_tizen 2.3
+ * @since_tizen 2.3
* @type Negative
* @description connection_get_current_profile should fail with invalid parameter.
- * @scenario Verify connection_get_current_profile by passing invalid parameter.
+ * @scenario Verify connection_get_current_profile by passing invalid parameter.
*/
int utc_connection_get_current_profile_n(void)
{
/**
* @testcase utc_connection_get_default_cellular_service_profile_p
- * @since_tizen 2.3
+ * @since_tizen 2.3
* @type Positive
* @description Gets the default profile which provides the given cellular service.
- * @scenario Invoking connection_get_default_cellular_service_profile with valid parameter.
+ * @scenario Invoking connection_get_default_cellular_service_profile with valid parameter.
*/
int utc_connection_get_default_cellular_service_profile_p(void)
{
connection_profile_h profile = NULL;
- if(!telephony_supported) {
+ if (!telephony_supported) {
int ret = connection_get_default_cellular_service_profile(connection, CONNECTION_CELLULAR_SERVICE_TYPE_INTERNET, &profile);
CHECK_RETURN("connection_get_default_cellular_service_profile", ret, CONNECTION_ERROR_NOT_SUPPORTED);
return 0;
/**
* @testcase utc_connection_get_default_cellular_service_profile_n
- * @since_tizen 2.3
+ * @since_tizen 2.3
* @type Negative
* @description connection_get_default_cellular_service_profile should fail with invalid parameter.
- * @scenario Verify connection_get_default_cellular_service_profile by passing invalid parameter.
+ * @scenario Verify connection_get_default_cellular_service_profile by passing invalid parameter.
*/
int utc_connection_get_default_cellular_service_profile_n(void)
{
/**
* @testcase utc_connection_set_default_cellular_service_profile_p
- * @since_tizen 2.3
+ * @since_tizen 2.3
* @type Positive
* @description Sets the default profile which provides the given cellular service.
- * @scenario Invoking connection_set_default_cellular_service_profile with valid parameter.
+ * @scenario Invoking connection_set_default_cellular_service_profile with valid parameter.
*/
int utc_connection_set_default_cellular_service_profile_p(void)
{
/**
* @testcase utc_connection_set_default_cellular_service_profile_n
- * @since_tizen 2.3
+ * @since_tizen 2.3
* @type Negative
* @description connection_set_default_cellular_service_profile should fail with invalid parameter.
- * @scenario Verify connection_set_default_cellular_service_profile by passing invalid parameter.
+ * @scenario Verify connection_set_default_cellular_service_profile by passing invalid parameter.
*/
int utc_connection_set_default_cellular_service_profile_n(void)
{
/**
* @testcase utc_connection_set_default_cellular_service_profile_async_p
- * @since_tizen 2.3
+ * @since_tizen 2.3
* @type Positive
* @description Sets the default profile which provides the given cellular service, asynchronously.
- * @scenario Invoking connection_set_default_cellular_service_profile_async with valid parameter.
+ * @scenario Invoking connection_set_default_cellular_service_profile_async with valid parameter.
*/
int utc_connection_set_default_cellular_service_profile_async_p(void)
{
/**
* @testcase utc_connection_set_default_cellular_service_profile_async_n
- * @since_tizen 2.3
+ * @since_tizen 2.3
* @type Negative
* @description connection_set_default_cellular_service_profile_async should fail with invalid parameter.
- * @scenario Verify connection_set_default_cellular_service_profile_async by passing invalid parameter.
+ * @scenario Verify connection_set_default_cellular_service_profile_async by passing invalid parameter.
*/
int utc_connection_set_default_cellular_service_profile_async_n(void)
{
/**
* @testcase utc_connection_set_type_changed_cb_n
- * @since_tizen 2.3
+ * @since_tizen 2.3
* @type Negative
* @description connection_set_type_changed_cb should fail with invalid parameter.
- * @scenario Verify connection_set_type_changed_cb by passing invalid parameter.
+ * @scenario Verify connection_set_type_changed_cb by passing invalid parameter.
*/
int utc_connection_set_type_changed_cb_n(void)
{
/**
* @testcase utc_connection_set_type_changed_cb_p
- * @since_tizen 2.3
+ * @since_tizen 2.3
* @type Positive
* @description Registers the callback that is called when the type of the current connection is changed.
- * @scenario Invoking connection_set_type_changed_cb with valid parameter.
+ * @scenario Invoking connection_set_type_changed_cb with valid parameter.
*/
int utc_connection_set_type_changed_cb_p(void)
{
/**
* @testcase utc_connection_unset_type_changed_cb_n
- * @since_tizen 2.3
+ * @since_tizen 2.3
* @type Negative
* @description connection_unset_type_changed_cb should fail with invalid parameter.
- * @scenario Verify connection_unset_type_changed_cb by passing invalid parameter.
+ * @scenario Verify connection_unset_type_changed_cb by passing invalid parameter.
*/
int utc_connection_unset_type_changed_cb_n(void)
{
int ret = connection_unset_type_changed_cb(NULL);
- if (all_features_not_supported) {
+ if (all_features_not_supported)
CHECK_RETURN("connection_unset_type_changed_cb", ret, CONNECTION_ERROR_NOT_SUPPORTED);
- } else {
+ else
CHECK_RETURN("connection_unset_type_changed_cb", ret, CONNECTION_ERROR_INVALID_PARAMETER);
- }
-
return 0;
}
/**
* @testcase utc_connection_unset_type_changed_cb_p
- * @since_tizen 2.3
+ * @since_tizen 2.3
* @type Positive
* @description Unregisters the callback that is called when the type of current connection is changed.
- * @scenario Invoking connection_unset_type_changed_cb with valid parameter.
+ * @scenario Invoking connection_unset_type_changed_cb with valid parameter.
*/
int utc_connection_unset_type_changed_cb_p(void)
{
int ret = connection_unset_type_changed_cb(connection);
- if (all_features_not_supported) {
+ if (all_features_not_supported)
CHECK_RETURN("connection_unset_type_changed_cb", ret, CONNECTION_ERROR_NOT_SUPPORTED);
- } else {
+ else
CHECK_RETURN("connection_unset_type_changed_cb", ret, CONNECTION_ERROR_NONE);
- }
-
return 0;
}
/**
* @testcase utc_connection_set_ip_address_changed_cb_n
- * @since_tizen 2.3
+ * @since_tizen 2.3
* @type Negative
* @description connection_set_ip_address_changed_cb should fail with invalid parameter.
- * @scenario Verify connection_set_ip_address_changed_cb by passing invalid parameter.
+ * @scenario Verify connection_set_ip_address_changed_cb by passing invalid parameter.
*/
int utc_connection_set_ip_address_changed_cb_n(void)
{
/**
* @testcase utc_connection_set_ip_address_changed_cb_p
- * @since_tizen 2.3
+ * @since_tizen 2.3
* @type Positive
* @description Registers the callback that is called when the IP address is changed.
- * @scenario Invoking connection_set_ip_address_changed_cb with valid parameter.
+ * @scenario Invoking connection_set_ip_address_changed_cb with valid parameter.
*/
int utc_connection_set_ip_address_changed_cb_p(void)
{
/**
* @testcase utc_connection_unset_ip_address_changed_cb_n
- * @since_tizen 2.3
+ * @since_tizen 2.3
* @type Negative
* @description connection_unset_ip_address_changed_cb should fail with invalid parameter.
- * @scenario Verify connection_unset_ip_address_changed_cb by passing invalid parameter.
+ * @scenario Verify connection_unset_ip_address_changed_cb by passing invalid parameter.
*/
int utc_connection_unset_ip_address_changed_cb_n(void)
{
int ret = connection_unset_ip_address_changed_cb(NULL);
- if (all_features_not_supported) {
+ if (all_features_not_supported)
CHECK_RETURN("connection_set_ip_address_changed_cb", ret, CONNECTION_ERROR_NOT_SUPPORTED);
- } else {
+ else
CHECK_RETURN("connection_set_ip_address_changed_cb", ret, CONNECTION_ERROR_INVALID_PARAMETER);
- }
-
return 0;
}
/**
* @testcase utc_connection_unset_ip_address_changed_cb_p
- * @since_tizen 2.3
+ * @since_tizen 2.3
* @type Positive
* @description Unregisters the callback that is called when the IP address is changed.
- * @scenario Invoking connection_unset_ip_address_changed_cb with valid parameter.
+ * @scenario Invoking connection_unset_ip_address_changed_cb with valid parameter.
*/
int utc_connection_unset_ip_address_changed_cb_p(void)
{
int ret = connection_unset_ip_address_changed_cb(connection);
- if (all_features_not_supported) {
+ if (all_features_not_supported)
CHECK_RETURN("connection_unset_ip_address_changed_cb", ret, CONNECTION_ERROR_NOT_SUPPORTED);
- } else {
+ else
CHECK_RETURN("connection_unset_ip_address_changed_cb", ret, CONNECTION_ERROR_NONE);
- }
-
return 0;
}
/**
* @testcase utc_connection_set_proxy_address_changed_cb_n
- * @since_tizen 2.3
+ * @since_tizen 2.3
* @type Negative
* @description connection_set_proxy_address_changed_cb should fail with invalid parameter.
- * @scenario Verify connection_set_proxy_address_changed_cb by passing invalid parameter.
+ * @scenario Verify connection_set_proxy_address_changed_cb by passing invalid parameter.
*/
int utc_connection_set_proxy_address_changed_cb_n(void)
{
/**
* @testcase utc_connection_set_proxy_address_changed_cb_p
- * @since_tizen 2.3
+ * @since_tizen 2.3
* @type Positive
* @description Registers the callback that is called when the proxy address is changed.
- * @scenario Invoking connection_set_proxy_address_changed_cb with valid parameter.
+ * @scenario Invoking connection_set_proxy_address_changed_cb with valid parameter.
*/
int utc_connection_set_proxy_address_changed_cb_p(void)
{
/**
* @testcase utc_connection_unset_proxy_address_changed_cb_n
- * @since_tizen 2.3
+ * @since_tizen 2.3
* @type Negative
* @description connection_unset_proxy_address_changed_cb should fail with invalid parameter.
- * @scenario Verify connection_unset_proxy_address_changed_cb by passing invalid parameter.
+ * @scenario Verify connection_unset_proxy_address_changed_cb by passing invalid parameter.
*/
int utc_connection_unset_proxy_address_changed_cb_n(void)
{
- int ret = connection_unset_proxy_address_changed_cb(NULL);
+ int ret = connection_unset_proxy_address_changed_cb(NULL);
- if (all_features_not_supported) {
+ if (all_features_not_supported)
CHECK_RETURN("connection_unset_proxy_address_changed_cb", ret, CONNECTION_ERROR_NOT_SUPPORTED);
- } else {
+ else
CHECK_RETURN("connection_unset_proxy_address_changed_cb", ret, CONNECTION_ERROR_INVALID_PARAMETER);
- }
-
- return 0;
+ return 0;
}
/**
* @testcase utc_connection_unset_proxy_address_changed_cb_p
- * @since_tizen 2.3
+ * @since_tizen 2.3
* @type Positive
* @description Unregisters the callback that is called when the proxy address is changed.
- * @scenario Invoking connection_unset_proxy_address_changed_cb with valid parameter.
+ * @scenario Invoking connection_unset_proxy_address_changed_cb with valid parameter.
*/
int utc_connection_unset_proxy_address_changed_cb_p(void)
{
int ret = connection_unset_proxy_address_changed_cb(connection);
- if (all_features_not_supported) {
+ if (all_features_not_supported)
CHECK_RETURN("connection_unset_proxy_address_changed_cb", ret, CONNECTION_ERROR_NOT_SUPPORTED);
- } else {
+ else
CHECK_RETURN("connection_unset_proxy_address_changed_cb", ret, CONNECTION_ERROR_NONE);
- }
-
return 0;
}
/**
* @testcase utc_connection_get_statistics_p
- * @since_tizen 2.3
+ * @since_tizen 2.3
* @type Positive
* @description Gets the statistics information.
- * @scenario Invoking connection_get_statistics with valid parameter.
+ * @scenario Invoking connection_get_statistics with valid parameter.
*/
int utc_connection_get_statistics_p(void)
{
/**
* @testcase utc_connection_get_statistics_n
- * @since_tizen 2.3
+ * @since_tizen 2.3
* @type Negative
* @description connection_get_statistics should fail with invalid parameter.
- * @scenario Verify connection_get_statistics by passing invalid parameter.
+ * @scenario Verify connection_get_statistics by passing invalid parameter.
*/
int utc_connection_get_statistics_n(void)
{
int ret;
long long stat;
- if (telephony_supported == false && wifi_supported == false){
+ if (telephony_supported == false && wifi_supported == false) {
ret = connection_get_statistics(NULL, -1, -1, NULL);
CHECK_RETURN("connection_get_statistics", ret, CONNECTION_ERROR_NOT_SUPPORTED);
return 0;
/**
* @testcase utc_connection_reset_statistics_p
- * @since_tizen 2.3
+ * @since_tizen 2.3
* @type Positive
* @description Resets the statistics information.
- * @scenario Invoking connection_reset_statistics with valid parameter.
+ * @scenario Invoking connection_reset_statistics with valid parameter.
*/
int utc_connection_reset_statistics_p(void)
{
/**
* @testcase utc_connection_reset_statistics_n
- * @since_tizen 2.3
+ * @since_tizen 2.3
* @type Negative
* @description connection_reset_statistics should fail with invalid parameter.
- * @scenario Verify connection_reset_statistics by passing invalid parameter.
+ * @scenario Verify connection_reset_statistics by passing invalid parameter.
*/
int utc_connection_reset_statistics_n(void)
{
/**
* @testcase utc_connection_add_route_n
- * @since_tizen 2.3
+ * @since_tizen 2.3
* @type Negative
* @description connection_add_route should fail with invalid parameter.
- * @scenario Verify connection_add_route by passing invalid parameter.
+ * @scenario Verify connection_add_route by passing invalid parameter.
*/
int utc_connection_add_route_n(void)
{
/**
* @testcase utc_connection_add_route_p
- * @since_tizen 2.3
+ * @since_tizen 2.3
* @type Positive
* @description Adds a IPv4 route to the routing table.You can get the @a interface_name from connection_profile_get_network_interface_name() of opened profile.
- * @scenario Invoking connection_add_route with valid parameter.
+ * @scenario Invoking connection_add_route with valid parameter.
*/
int utc_connection_add_route_p(void)
{
/**
* @testcase utc_connection_remove_route_n
- * @since_tizen 2.3
+ * @since_tizen 2.3
* @type Negative
* @description connection_remove_route should fail with invalid parameter.
- * @scenario Verify connection_remove_route by passing invalid parameter.
+ * @scenario Verify connection_remove_route by passing invalid parameter.
*/
int utc_connection_remove_route_n(void)
{
/**
* @testcase utc_connection_remove_route_p
- * @since_tizen 2.3
+ * @since_tizen 2.3
* @type Positive
* @description Removes a IPv4 route from the routing table.get the @a interface_name from connection_profile_get_network_interface_name() of opened profile.
- * @scenario Invoking connection_remove_route with valid parameter.
+ * @scenario Invoking connection_remove_route with valid parameter.
*/
int utc_connection_remove_route_p(void)
{
/**
* @testcase utc_connection_add_route_ipv6_n
- * @since_tizen 2.3.1
+ * @since_tizen 2.3.1
* @type Negative
* @description connection_add_route_ipv6 should fail with invalid parameter.
- * @scenario Verify connection_add_route_ipv6 by passing invalid parameter.
+ * @scenario Verify connection_add_route_ipv6 by passing invalid parameter.
*/
int utc_connection_add_route_ipv6_n(void)
{
/**
* @testcase utc_connection_add_route_ipv6_p
- * @since_tizen 2.3.1
+ * @since_tizen 2.3.1
* @type Positive
* @description Adds a IPv6 route to the routing table.
- * @scenario Invoking connection_add_route_ipv6 with valid parameter.
+ * @scenario Invoking connection_add_route_ipv6 with valid parameter.
*/
int utc_connection_add_route_ipv6_p(void)
{
/**
* @testcase utc_connection_remove_route_ipv6_n
- * @since_tizen 2.3.1
+ * @since_tizen 2.3.1
* @type Negative
* @description connection_add_route_ipv6 should fail with invalid parameter.
- * @scenario Verify connection_add_route_ipv6 by passing invalid parameter.
+ * @scenario Verify connection_add_route_ipv6 by passing invalid parameter.
*/
int utc_connection_remove_route_ipv6_n(void)
{
/**
* @testcase utc_connection_remove_route_ipv6_p
- * @since_tizen 2.3.1
+ * @since_tizen 2.3.1
* @type Positive
* @description Removes a IPV6 route from the routing table.
- * @scenario Invoking connection_remove_route_ipv6 with valid parameter.
+ * @scenario Invoking connection_remove_route_ipv6 with valid parameter.
*/
int utc_connection_remove_route_ipv6_p(void)
{
}
/**
- * @testcase utc_connection_add_route_entry_n
- * @since_tizen 4.0
- * @type Negative
- * @description connection_add_route_entry should fail with invalid parameter.
- * @scenario Verify connection_add_route_entry by passing invalid parameter.
+ * @testcase utc_connection_add_route_entry_n
+ * @since_tizen 4.0
+ * @type Negative
+ * @description connection_add_route_entry should fail with invalid parameter.
+ * @scenario Verify connection_add_route_entry by passing invalid parameter.
*/
int utc_connection_add_route_entry_n(void)
{
}
/**
- * @testcase utc_connection_add_route_entry_p
- * @since_tizen 4.0
- * @type Positive
- * @description Adds a route to the routing table.
- * @scenario Invoking connection_add_route_entry with valid parameter.
+ * @testcase utc_connection_add_route_entry_p
+ * @since_tizen 4.0
+ * @type Positive
+ * @description Adds a route to the routing table.
+ * @scenario Invoking connection_add_route_entry with valid parameter.
*/
int utc_connection_add_route_entry_p(void)
{
}
/**
- * @testcase utc_connection_remove_route_entry_n
- * @since_tizen 4.0
- * @type Negative
- * @description connection_add_route_entry should fail with invalid parameter.
- * @scenario Verify connection_add_route_entry by passing invalid parameter.
+ * @testcase utc_connection_remove_route_entry_n
+ * @since_tizen 4.0
+ * @type Negative
+ * @description connection_add_route_entry should fail with invalid parameter.
+ * @scenario Verify connection_add_route_entry by passing invalid parameter.
*/
int utc_connection_remove_route_entry_n(void)
{
}
/**
- * @testcase utc_connection_remove_route_entry_p
- * @since_tizen 4.0
- * @type Positive
- * @description Removes a route from the routing table.
- * @scenario Invoking connection_remove_route_entry with valid parameter.
+ * @testcase utc_connection_remove_route_entry_p
+ * @since_tizen 4.0
+ * @type Positive
+ * @description Removes a route from the routing table.
+ * @scenario Invoking connection_remove_route_entry with valid parameter.
*/
int utc_connection_remove_route_entry_p(void)
{
/**
* @testcase utc_connection_get_profile_iterator_n
- * @since_tizen 2.3
+ * @since_tizen 2.3
* @type Negative
* @description connection_get_profile_iterator should fail with invalid parameter.
- * @scenario Verify connection_get_profile_iterator by passing invalid parameter.
+ * @scenario Verify connection_get_profile_iterator by passing invalid parameter.
*/
int utc_connection_get_profile_iterator_n(void)
{
/**
* @testcase utc_connection_get_profile_iterator_p
- * @since_tizen 2.3
+ * @since_tizen 2.3
* @type Positive
* @description Gets a profiles iterator.
- * @scenario Invoking connection_get_profile_iterator with valid parameter.
+ * @scenario Invoking connection_get_profile_iterator with valid parameter.
*/
int utc_connection_get_profile_iterator_p(void)
{
/**
* @testcase utc_connection_destroy_profile_iterator_n
- * @since_tizen 2.3
+ * @since_tizen 2.3
* @type Negative
* @description connection_destroy_profile_iterator should fail with invalid parameter.
- * @scenario Verify connection_destroy_profile_iterator by passing invalid parameter.
+ * @scenario Verify connection_destroy_profile_iterator by passing invalid parameter.
*/
int utc_connection_destroy_profile_iterator_n(void)
{
int ret = connection_destroy_profile_iterator(NULL);
- if (all_features_not_supported) {
+ if (all_features_not_supported)
CHECK_RETURN("connection_destroy_profile_iterator", ret, CONNECTION_ERROR_NOT_SUPPORTED);
- } else {
+ else
CHECK_RETURN("connection_destroy_profile_iterator", ret, CONNECTION_ERROR_INVALID_PARAMETER);
- }
-
return 0;
}
/**
* @testcase utc_connection_destroy_profile_iterator_p
- * @since_tizen 2.3
+ * @since_tizen 2.3
* @type Positive
* @description Destroys a profiles iterator.
- * @scenario Invoking connection_destroy_profile_iterator with valid parameter.
+ * @scenario Invoking connection_destroy_profile_iterator with valid parameter.
*/
int utc_connection_destroy_profile_iterator_p(void)
{
/**
* @testcase utc_connection_profile_iterator_has_next_n
- * @since_tizen 2.3
+ * @since_tizen 2.3
* @type Negative
* @description connection_profile_iterator_has_next should fail with invalid parameter.
- * @scenario Verify connection_profile_iterator_has_next by passing invalid parameter.
+ * @scenario Verify connection_profile_iterator_has_next by passing invalid parameter.
*/
int utc_connection_profile_iterator_has_next_n(void)
{
int ret = connection_profile_iterator_has_next(NULL);
- if (all_features_not_supported) {
+ if (all_features_not_supported)
CHECK_RETURN("connection_profile_iterator_has_next", get_last_result(), CONNECTION_ERROR_NOT_SUPPORTED);
- } else {
+ else
CHECK_RETURN("connection_profile_iterator_has_next", ret, false);
- }
-
return 0;
}
/**
* @testcase utc_connection_profile_iterator_has_next_p
- * @since_tizen 2.3
+ * @since_tizen 2.3
* @type Positive
* @description Checks whether the next element of a profile iterator exists or not.
- * @scenario Invoking connection_profile_iterator_has_next with valid parameter.
+ * @scenario Invoking connection_profile_iterator_has_next with valid parameter.
*/
int utc_connection_profile_iterator_has_next_p(void)
{
/**
* @testcase utc_connection_profile_iterator_next_n
- * @since_tizen 2.3
+ * @since_tizen 2.3
* @type Negative
* @description connection_profile_iterator_next should fail with invalid parameter.
- * @scenario Verify connection_profile_iterator_next by passing invalid parameter.
+ * @scenario Verify connection_profile_iterator_next by passing invalid parameter.
*/
int utc_connection_profile_iterator_next_n(void)
{
int ret = connection_profile_iterator_next(NULL, &profile_h);
- if (all_features_not_supported) {
+ if (all_features_not_supported)
CHECK_RETURN("connection_profile_iterator_next", ret, CONNECTION_ERROR_NOT_SUPPORTED);
- } else {
+ else
CHECK_RETURN("connection_profile_iterator_next", ret, CONNECTION_ERROR_INVALID_PARAMETER);
- }
-
return 0;
}
/**
* @testcase utc_connection_profile_iterator_next_p
- * @since_tizen 2.3
+ * @since_tizen 2.3
* @type Positive
* @description Moves the profile iterator to the next position and gets a profile handle.
- * @scenario Invoking connection_profile_iterator_next with valid parameter.
+ * @scenario Invoking connection_profile_iterator_next with valid parameter.
*/
int utc_connection_profile_iterator_next_p(void)
{
/**
* @testcase utc_connection_add_profile_p
- * @since_tizen 2.3
+ * @since_tizen 2.3
* @type Positive
* @description Creates a profile handle.The profile name, which you get from connection_profile_get_name(), will include the keyword you set.
- * @scenario Invoking connection_profile_create with valid parameter.
+ * @scenario Invoking connection_profile_create with valid parameter.
*/
int utc_connection_add_profile_p(void)
{
- if (telephony_supported) {
- int ret = connection_profile_create(CONNECTION_PROFILE_TYPE_CELLULAR, CUSTOM_PROFILE_NAME, &profile_cellular);
- PRINT_RETURN("connection_profile_create", ret);
- ret = connection_profile_set_cellular_service_type(profile_cellular, CONNECTION_CELLULAR_SERVICE_TYPE_APPLICATION);
- PRINT_RETURN("connection_profile_set_cellular_service_type", ret);
+ if (telephony_supported) {
+ int ret = connection_profile_create(CONNECTION_PROFILE_TYPE_CELLULAR, CUSTOM_PROFILE_NAME, &profile_cellular);
+ PRINT_RETURN("connection_profile_create", ret);
+ ret = connection_profile_set_cellular_service_type(profile_cellular, CONNECTION_CELLULAR_SERVICE_TYPE_APPLICATION);
+ PRINT_RETURN("connection_profile_set_cellular_service_type", ret);
connection_cellular_state_e state;
ret = connection_get_cellular_state(connection, &state);
- PRINT_RETURN("connection_get_cellular_state", ret);
+ PRINT_RETURN("connection_get_cellular_state", ret);
- ret = connection_add_profile(connection, profile_cellular);
- CHECK_RETURN("connection_add_profile", ret, CONNECTION_ERROR_NONE);
- } else {
- int ret = connection_add_profile(connection, profile_cellular);
- CHECK_RETURN("connection_add_profile", ret, CONNECTION_ERROR_NOT_SUPPORTED);
- }
+ ret = connection_add_profile(connection, profile_cellular);
+ CHECK_RETURN("connection_add_profile", ret, CONNECTION_ERROR_NONE);
+ } else {
+ int ret = connection_add_profile(connection, profile_cellular);
+ CHECK_RETURN("connection_add_profile", ret, CONNECTION_ERROR_NOT_SUPPORTED);
+ }
- return 0;
+ return 0;
}
/**
* @testcase utc_connection_add_profile_n
- * @since_tizen 2.3
+ * @since_tizen 2.3
* @type Negative
* @description connection_add_profile should fail with invalid parameter.
- * @scenario Verify connection_add_profile by passing invalid parameter.
+ * @scenario Verify connection_add_profile by passing invalid parameter.
*/
int utc_connection_add_profile_n(void)
{
- connection_profile_h profile = NULL;
+ connection_profile_h profile = NULL;
- if (telephony_supported) {
- int ret = connection_add_profile(NULL, NULL);
- CHECK_RETURN("connection_add_profile", ret, CONNECTION_ERROR_INVALID_PARAMETER);
- ret = connection_add_profile(NULL, &profile);
- CHECK_RETURN("connection_add_profile", ret, CONNECTION_ERROR_INVALID_PARAMETER);
- ret = connection_add_profile(connection, NULL);
- CHECK_RETURN("connection_add_profile", ret, CONNECTION_ERROR_INVALID_PARAMETER);
- } else {
- int ret = connection_add_profile(NULL, NULL);
- CHECK_RETURN("connection_add_profile", ret, CONNECTION_ERROR_NOT_SUPPORTED);
- }
- return 0;
+ if (telephony_supported) {
+ int ret = connection_add_profile(NULL, NULL);
+ CHECK_RETURN("connection_add_profile", ret, CONNECTION_ERROR_INVALID_PARAMETER);
+ ret = connection_add_profile(NULL, &profile);
+ CHECK_RETURN("connection_add_profile", ret, CONNECTION_ERROR_INVALID_PARAMETER);
+ ret = connection_add_profile(connection, NULL);
+ CHECK_RETURN("connection_add_profile", ret, CONNECTION_ERROR_INVALID_PARAMETER);
+ } else {
+ int ret = connection_add_profile(NULL, NULL);
+ CHECK_RETURN("connection_add_profile", ret, CONNECTION_ERROR_NOT_SUPPORTED);
+ }
+ return 0;
}
/**
* @testcase utc_connection_close_profile_p
- * @since_tizen 2.3
+ * @since_tizen 2.3
* @type Positive
* @description Closes a connection of profile.
- * @scenario Invoking connection_close_profile with valid parameter.
+ * @scenario Invoking connection_close_profile with valid parameter.
*/
int utc_connection_close_profile_p(void)
{
/**
* @testcase utc_connection_close_profile_n
- * @since_tizen 2.3
+ * @since_tizen 2.3
* @type Negative
* @description connection_close_profile should fail with invalid parameter.
- * @scenario Verify connection_close_profile by passing invalid parameter.
+ * @scenario Verify connection_close_profile by passing invalid parameter.
*/
int utc_connection_close_profile_n(void)
{
/**
* @testcase utc_connection_remove_profile_p
- * @since_tizen 2.3
+ * @since_tizen 2.3
* @type Positive
* @description Removes an existing profile.
- * @scenario Invoking connection_remove_profile with valid parameter.
+ * @scenario Invoking connection_remove_profile with valid parameter.
*/
int utc_connection_remove_profile_p(void)
{
/**
* @testcase utc_connection_remove_profile_n
- * @since_tizen 2.3
+ * @since_tizen 2.3
* @type Negative
* @description connection_remove_profile should fail with invalid parameter.
- * @scenario Verify connection_remove_profile by passing invalid parameter.
+ * @scenario Verify connection_remove_profile by passing invalid parameter.
*/
int utc_connection_remove_profile_n(void)
{
/**
* @testcase utc_connection_update_profile_p
- * @since_tizen 2.3
+ * @since_tizen 2.3
* @type Positive
* @description Updates an existing profile.
- * @scenario Invoking connection_update_profile with valid parameter.
+ * @scenario Invoking connection_update_profile with valid parameter.
*/
int utc_connection_update_profile_p(void)
{
/**
* @testcase utc_connection_update_profile_n
- * @since_tizen 2.3
+ * @since_tizen 2.3
* @type Negative
* @description connection_update_profile should fail with invalid parameter.
- * @scenario Verify connection_update_profile by passing invalid parameter.
+ * @scenario Verify connection_update_profile by passing invalid parameter.
*/
int utc_connection_update_profile_n(void)
{
/**
* @testcase utc_connection_open_profile_p
- * @since_tizen 2.3
+ * @since_tizen 2.3
* @type Positive
* @description Opens a connection of profile, asynchronously.
- * @scenario Invoking connection_open_profile with valid parameter.
+ * @scenario Invoking connection_open_profile with valid parameter.
*/
int utc_connection_open_profile_p(void)
{
/**
* @testcase utc_connection_open_profile_n
- * @since_tizen 2.3
+ * @since_tizen 2.3
* @type Negative
* @description connection_open_profile should fail with invalid parameter.
- * @scenario Verify connection_open_profile by passing invalid parameter.
+ * @scenario Verify connection_open_profile by passing invalid parameter.
*/
int utc_connection_open_profile_n(void)
{
/**
* @testcase utc_connection_reset_profile_p
- * @since_tizen 2.3
+ * @since_tizen 2.3
* @type Positive
* @description Resets the cellular profile.
- * @scenario Invoking connection_reset_profile with valid parameter.
+ * @scenario Invoking connection_reset_profile with valid parameter.
*/
int utc_connection_reset_profile_p(void)
{
/**
* @testcase utc_connection_reset_profile_n
- * @since_tizen 2.3
+ * @since_tizen 2.3
* @type Negative
* @description connection_reset_profile should fail with invalid parameter.
- * @scenario Verify connection_reset_profile by passing invalid parameter.
+ * @scenario Verify connection_reset_profile by passing invalid parameter.
*/
int utc_connection_reset_profile_n(void)
{
0, test_connection_reset_profile_callback, NULL);
CHECK_RETURN("connection_reset_profile", ret, CONNECTION_ERROR_NOT_SUPPORTED);
}
-
- return 0;
+ return 0;
}
/**
- * @testcase utc_connection_foreach_ipv6_address_p
- * @since_tizen 4.0
- * @type Positive
- * @description Gets IPv6 addresses
- * @scenario Invoking connection_foreach_ipv6_address with valid parameter.
+ * @testcase utc_connection_foreach_ipv6_address_p
+ * @since_tizen 4.0
+ * @type Positive
+ * @description Gets IPv6 addresses
+ * @scenario Invoking connection_foreach_ipv6_address with valid parameter.
*/
int utc_connection_foreach_ipv6_address_p(void)
{
CHECK_RETURN("connection_foreach_ipv6_address", ret, CONNECTION_ERROR_NOT_SUPPORTED);
}
- return 0;
+ return 0;
}
/**
- * @testcase utc_connection_foreach_ipv6_address_n
- * @since_tizen 4.0
- * @type Negative
- * @description connection_foreach_ipv6_address should fail with invalid parameter.
- * @scenario Verify connection_foreach_ipv6_address by passing invalid parameter.
+ * @testcase utc_connection_foreach_ipv6_address_n
+ * @since_tizen 4.0
+ * @type Negative
+ * @description connection_foreach_ipv6_address should fail with invalid parameter.
+ * @scenario Verify connection_foreach_ipv6_address by passing invalid parameter.
*/
int utc_connection_foreach_ipv6_address_n(void)
{
}
/**
- * @testcase utc_connection_set_ethernet_cable_state_changed_cb_n
- * @since_tizen 4.0
- * @type Negative
- * @description connection_set_ethernet_cable_state_changed_cb should fail with invalid parameter.
- * @scenario Verify connection_set_ethernet_cable_state_changed_cb by passing invalid parameter.
+ * @testcase utc_connection_set_ethernet_cable_state_changed_cb_n
+ * @since_tizen 4.0
+ * @type Negative
+ * @description connection_set_ethernet_cable_state_changed_cb should fail with invalid parameter.
+ * @scenario Verify connection_set_ethernet_cable_state_changed_cb by passing invalid parameter.
*/
int utc_connection_set_ethernet_cable_state_changed_cb_n(void)
{
}
/**
- * @testcase utc_connection_unset_ethernet_cable_state_changed_cb_n
- * @since_tizen 4.0
- * @type Negative
- * @description connection_unset_ethernet_cable_state_changed_cb should fail with invalid parameter.
- * @scenario Verify connection_unset_ethernet_cable_state_changed_cb by passing invalid parameter.
+ * @testcase utc_connection_unset_ethernet_cable_state_changed_cb_n
+ * @since_tizen 4.0
+ * @type Negative
+ * @description connection_unset_ethernet_cable_state_changed_cb should fail with invalid parameter.
+ * @scenario Verify connection_unset_ethernet_cable_state_changed_cb by passing invalid parameter.
*/
int utc_connection_unset_ethernet_cable_state_changed_cb_n(void)
{
int ret;
ret = connection_unset_ethernet_cable_state_changed_cb(NULL);
- if (ethernet_supported == false) {
+ if (ethernet_supported == false)
CHECK_RETURN("connection_unset_ethernet_cable_state_changed_cb", ret, CONNECTION_ERROR_NOT_SUPPORTED);
- } else {
+ else
CHECK_RETURN("connection_unset_ethernet_cable_state_changed_cb", ret, CONNECTION_ERROR_INVALID_PARAMETER);
- }
-
return 0;
}
int ret;
ret = connection_unset_ethernet_cable_state_changed_cb(connection);
- if (ethernet_supported == false) {
+ if (ethernet_supported == false)
CHECK_RETURN("connection_unset_ethernet_cable_state_changed_cb", ret, CONNECTION_ERROR_NOT_SUPPORTED);
- } else {
+ else
CHECK_RETURN("connection_unset_ethernet_cable_state_changed_cb", ret, CONNECTION_ERROR_NONE);
- }
-
return 0;
}
/**
- * @testcase utc_connection_set_internet_state_changed_cb_p
- * @since_tizen 5.5
- * @type Positive
- * @description Set internet state changed callback.
- * @scenario Verify connection_set_internet_state_changed_cb by passing valid parameter.
+ * @testcase utc_connection_set_internet_state_changed_cb_p
+ * @since_tizen 5.5
+ * @type Positive
+ * @description Set internet state changed callback.
+ * @scenario Verify connection_set_internet_state_changed_cb by passing valid parameter.
*/
int utc_connection_set_internet_state_changed_cb_p(void)
{
}
/**
- * @testcase utc_connection_set_internet_state_changed_cb_n1
- * @since_tizen 5.5
- * @type Negative
- * @description connection_set_internet_state_changed_cb should fail when connection is NULL.
- * @scenario Verify connection_set_internet_state_changed_cb by passing connection as NULL.
+ * @testcase utc_connection_set_internet_state_changed_cb_n1
+ * @since_tizen 5.5
+ * @type Negative
+ * @description connection_set_internet_state_changed_cb should fail when connection is NULL.
+ * @scenario Verify connection_set_internet_state_changed_cb by passing connection as NULL.
*/
int utc_connection_set_internet_state_changed_cb_n1(void)
{
}
/**
- * @testcase utc_connection_set_internet_state_changed_cb_n2
- * @since_tizen 5.5
- * @type Negative
- * @description connection_set_internet_state_changed_cb should fail when callback is NULL.
- * @scenario Verify connection_set_internet_state_changed_cb by passing callback as NULL.
+ * @testcase utc_connection_set_internet_state_changed_cb_n2
+ * @since_tizen 5.5
+ * @type Negative
+ * @description connection_set_internet_state_changed_cb should fail when callback is NULL.
+ * @scenario Verify connection_set_internet_state_changed_cb by passing callback as NULL.
*/
int utc_connection_set_internet_state_changed_cb_n2(void)
{
}
/**
- * @testcase utc_connection_unset_internet_state_changed_cb_p
- * @since_tizen 5.5
- * @type Positive
- * @description Unset internet state changed callback.
- * @scenario Verify connection_unset_internet_state_changed_cb by passing valid parameter.
+ * @testcase utc_connection_unset_internet_state_changed_cb_p
+ * @since_tizen 5.5
+ * @type Positive
+ * @description Unset internet state changed callback.
+ * @scenario Verify connection_unset_internet_state_changed_cb by passing valid parameter.
*/
int utc_connection_unset_internet_state_changed_cb_p(void)
{
}
/**
- * @testcase utc_connection_unset_internet_state_changed_cb_n
- * @since_tizen 5.5
- * @type Negative
- * @description connection_unset_internet_state_changed_cb should fail when connection is NULL.
- * @scenario Verify connection_unset_internet_state_changed_cb by passing connection as NULL.
+ * @testcase utc_connection_unset_internet_state_changed_cb_n
+ * @since_tizen 5.5
+ * @type Negative
+ * @description connection_unset_internet_state_changed_cb should fail when connection is NULL.
+ * @scenario Verify connection_unset_internet_state_changed_cb by passing connection as NULL.
*/
int utc_connection_unset_internet_state_changed_cb_n(void)
{
/**
* @testcase utc_connection_destroy_p
- * @since_tizen 2.3
+ * @since_tizen 2.3
* @type Positive
* @description Destroys the connection handle.
- * @scenario Invoking connection_destroy with valid parameter.
+ * @scenario Invoking connection_destroy with valid parameter.
*/
int utc_connection_destroy_p(void)
{
int ret = connection_destroy(connection);
- if (all_features_not_supported) {
+ if (all_features_not_supported)
CHECK_RETURN("connection_destroy", ret, CONNECTION_ERROR_NOT_SUPPORTED);
- } else {
+ else
CHECK_RETURN("connection_destroy", ret, CONNECTION_ERROR_NONE);
- }
-
return 0;
}
/**
* @testcase utc_connection_destroy_n
- * @since_tizen 2.3
+ * @since_tizen 2.3
* @type Negative
* @description connection_destroy should fail with invalid parameter.
- * @scenario Verify connection_destroy by passing invalid parameter.
+ * @scenario Verify connection_destroy by passing invalid parameter.
*/
int utc_connection_destroy_n(void)
{
int ret = connection_destroy(NULL);
- if (all_features_not_supported) {
+ if (all_features_not_supported)
CHECK_RETURN("connection_destroy", ret, CONNECTION_ERROR_NOT_SUPPORTED);
- } else {
+ else
CHECK_RETURN("connection_destroy", ret, CONNECTION_ERROR_INVALID_PARAMETER);
- }
-
return 0;
}