From: Yu Jiung Date: Tue, 21 Jun 2016 04:14:25 +0000 (+0900) Subject: [UTC][wifi-direct][ACR-616][Add testcase for new APIs] X-Git-Tag: Beta_RC10~18^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=79b4e22b0fb8e17b8ecab1b2a30fceef485ca46f;p=test%2Ftct%2Fnative%2Fapi.git [UTC][wifi-direct][ACR-616][Add testcase for new APIs] Change-Id: Idfc78a0e6ca0b020b4924a75e7593990718ec640 --- diff --git a/src/utc/wifi-direct/tct-wifi-direct-core_common_iot.h b/src/utc/wifi-direct/tct-wifi-direct-core_common_iot.h index 16f2c3e..435c0df 100755 --- a/src/utc/wifi-direct/tct-wifi-direct-core_common_iot.h +++ b/src/utc/wifi-direct/tct-wifi-direct-core_common_iot.h @@ -54,6 +54,8 @@ extern int utc_wifi_direct_cancel_connection_n(void); extern int utc_wifi_direct_activate_pushbutton_n(void); extern int utc_wifi_direct_connect_p(void); extern int utc_wifi_direct_set_wps_pin_p(void); +extern int utc_wifi_direct_set_session_timer_n(void); +extern int utc_wifi_direct_get_session_timer_n(void); extern int utc_wifi_direct_get_ssid_n(void); extern int utc_wifi_direct_get_mac_address_n(void); extern int utc_wifi_direct_get_state_n(void); @@ -74,6 +76,8 @@ extern int utc_wifi_direct_set_device_name_n(void); extern int utc_wifi_direct_foreach_supported_wps_types_n(void); extern int utc_wifi_direct_get_supported_wps_mode_n(void); extern int utc_wifi_direct_activate_p(void); +extern int utc_wifi_direct_set_session_timer_p(void); +extern int utc_wifi_direct_get_session_timer_p(void); extern int utc_wifi_direct_get_ssid_p(void); extern int utc_wifi_direct_get_mac_address_p(void); extern int utc_wifi_direct_get_state_p(void); @@ -116,6 +120,7 @@ extern int utc_wifi_direct_get_req_wps_type_p(void); extern int utc_wifi_direct_is_discoverable_p(void); extern int utc_wifi_direct_is_listening_only_p(void); extern int utc_wifi_direct_start_discovery_specific_channel_p(void); +extern int utc_wifi_direct_set_auto_group_removal_n(void); extern int utc_wifi_direct_create_group_n(void); extern int utc_wifi_direct_destroy_group_n(void); extern int utc_wifi_direct_is_group_owner_n(void); @@ -135,6 +140,7 @@ extern int utc_wifi_direct_get_ip_address_n(void); extern int utc_wifi_direct_get_gateway_address_n(void); extern int utc_wifi_direct_get_network_interface_name_n(void); extern int utc_wifi_direct_remove_persistent_group_n(void); +extern int utc_wifi_direct_set_auto_group_removal_p(void); extern int utc_wifi_direct_create_group_p(void); extern int utc_wifi_direct_destroy_group_p(void); extern int utc_wifi_direct_is_group_owner_p(void); @@ -200,6 +206,8 @@ testcase tc_array[] = { {"utc_wifi_direct_activate_pushbutton_n", utc_wifi_direct_activate_pushbutton_n, utc_wifi_direct_connection_negative_startup, utc_wifi_direct_connection_negative_cleanup}, {"utc_wifi_direct_connect_p", utc_wifi_direct_connect_p, utc_wifi_direct_connection_positive_startup, utc_wifi_direct_connection_positive_cleanup}, {"utc_wifi_direct_set_wps_pin_p", utc_wifi_direct_set_wps_pin_p, utc_wifi_direct_connection_positive_startup, utc_wifi_direct_connection_positive_cleanup}, + {"utc_wifi_direct_get_session_timer_n", utc_wifi_direct_get_ssid_n, utc_wifi_direct_device_negative_startup, utc_wifi_direct_device_negative_cleanup}, + {"utc_wifi_direct_set_session_timer_n", utc_wifi_direct_set_session_timer_n, utc_wifi_direct_device_negative_startup, utc_wifi_direct_device_negative_cleanup}, {"utc_wifi_direct_get_ssid_n", utc_wifi_direct_get_ssid_n, utc_wifi_direct_device_negative_startup, utc_wifi_direct_device_negative_cleanup}, {"utc_wifi_direct_get_mac_address_n", utc_wifi_direct_get_mac_address_n, utc_wifi_direct_device_negative_startup, utc_wifi_direct_device_negative_cleanup}, {"utc_wifi_direct_get_state_n", utc_wifi_direct_get_state_n, utc_wifi_direct_device_negative_startup, utc_wifi_direct_device_negative_cleanup}, @@ -220,6 +228,8 @@ testcase tc_array[] = { {"utc_wifi_direct_foreach_supported_wps_types_n", utc_wifi_direct_foreach_supported_wps_types_n, utc_wifi_direct_device_negative_startup, utc_wifi_direct_device_negative_cleanup}, {"utc_wifi_direct_get_supported_wps_mode_n", utc_wifi_direct_get_supported_wps_mode_n, utc_wifi_direct_device_negative_startup, utc_wifi_direct_device_negative_cleanup}, {"utc_wifi_direct_activate_p", utc_wifi_direct_activate_p, utc_wifi_direct_device_positive_startup, utc_wifi_direct_device_positive_cleanup}, + {"utc_wifi_direct_get_session_timer_p", utc_wifi_direct_get_session_timer_p, utc_wifi_direct_device_positive_startup, utc_wifi_direct_device_positive_cleanup}, + {"utc_wifi_direct_set_session_timer_p", utc_wifi_direct_set_session_timer_p, utc_wifi_direct_device_positive_startup, utc_wifi_direct_device_positive_cleanup}, {"utc_wifi_direct_get_ssid_p", utc_wifi_direct_get_ssid_p, utc_wifi_direct_device_positive_startup, utc_wifi_direct_device_positive_cleanup}, {"utc_wifi_direct_get_mac_address_p", utc_wifi_direct_get_mac_address_p, utc_wifi_direct_device_positive_startup, utc_wifi_direct_device_positive_cleanup}, {"utc_wifi_direct_get_state_p", utc_wifi_direct_get_state_p, utc_wifi_direct_device_positive_startup, utc_wifi_direct_device_positive_cleanup}, @@ -262,6 +272,7 @@ testcase tc_array[] = { {"utc_wifi_direct_is_discoverable_p", utc_wifi_direct_is_discoverable_p, utc_wifi_direct_discovery_positive_startup, utc_wifi_direct_discovery_positive_cleanup}, {"utc_wifi_direct_is_listening_only_p", utc_wifi_direct_is_listening_only_p, utc_wifi_direct_discovery_positive_startup, utc_wifi_direct_discovery_positive_cleanup}, {"utc_wifi_direct_start_discovery_specific_channel_p", utc_wifi_direct_start_discovery_specific_channel_p, utc_wifi_direct_discovery_positive_startup, utc_wifi_direct_discovery_positive_cleanup}, + {"utc_wifi_direct_set_auto_group_removal_n", utc_wifi_direct_set_auto_group_removal_n, utc_wifi_direct_group_negative_startup, utc_wifi_direct_group_negative_cleanup}, {"utc_wifi_direct_create_group_n", utc_wifi_direct_create_group_n, utc_wifi_direct_group_negative_startup, utc_wifi_direct_group_negative_cleanup}, {"utc_wifi_direct_destroy_group_n", utc_wifi_direct_destroy_group_n, utc_wifi_direct_group_negative_startup, utc_wifi_direct_group_negative_cleanup}, {"utc_wifi_direct_is_group_owner_n", utc_wifi_direct_is_group_owner_n, utc_wifi_direct_group_negative_startup, utc_wifi_direct_group_negative_cleanup}, @@ -281,6 +292,7 @@ testcase tc_array[] = { {"utc_wifi_direct_get_gateway_address_n", utc_wifi_direct_get_gateway_address_n, utc_wifi_direct_group_negative_startup, utc_wifi_direct_group_negative_cleanup}, {"utc_wifi_direct_get_network_interface_name_n", utc_wifi_direct_get_network_interface_name_n, utc_wifi_direct_group_negative_startup, utc_wifi_direct_group_negative_cleanup}, {"utc_wifi_direct_remove_persistent_group_n", utc_wifi_direct_remove_persistent_group_n, utc_wifi_direct_group_negative_startup, utc_wifi_direct_group_negative_cleanup}, + {"utc_wifi_direct_set_auto_group_removal_p", utc_wifi_direct_set_auto_group_removal_p, utc_wifi_direct_group_positive_startup, utc_wifi_direct_group_positive_cleanup}, {"utc_wifi_direct_create_group_p", utc_wifi_direct_create_group_p, utc_wifi_direct_group_positive_startup, utc_wifi_direct_group_positive_cleanup}, {"utc_wifi_direct_destroy_group_p", utc_wifi_direct_destroy_group_p, utc_wifi_direct_group_positive_startup, utc_wifi_direct_group_positive_cleanup}, {"utc_wifi_direct_is_group_owner_p", utc_wifi_direct_is_group_owner_p, utc_wifi_direct_group_positive_startup, utc_wifi_direct_group_positive_cleanup}, diff --git a/src/utc/wifi-direct/tct-wifi-direct-core_mobile.h b/src/utc/wifi-direct/tct-wifi-direct-core_mobile.h index 16f2c3e..435c0df 100755 --- a/src/utc/wifi-direct/tct-wifi-direct-core_mobile.h +++ b/src/utc/wifi-direct/tct-wifi-direct-core_mobile.h @@ -54,6 +54,8 @@ extern int utc_wifi_direct_cancel_connection_n(void); extern int utc_wifi_direct_activate_pushbutton_n(void); extern int utc_wifi_direct_connect_p(void); extern int utc_wifi_direct_set_wps_pin_p(void); +extern int utc_wifi_direct_set_session_timer_n(void); +extern int utc_wifi_direct_get_session_timer_n(void); extern int utc_wifi_direct_get_ssid_n(void); extern int utc_wifi_direct_get_mac_address_n(void); extern int utc_wifi_direct_get_state_n(void); @@ -74,6 +76,8 @@ extern int utc_wifi_direct_set_device_name_n(void); extern int utc_wifi_direct_foreach_supported_wps_types_n(void); extern int utc_wifi_direct_get_supported_wps_mode_n(void); extern int utc_wifi_direct_activate_p(void); +extern int utc_wifi_direct_set_session_timer_p(void); +extern int utc_wifi_direct_get_session_timer_p(void); extern int utc_wifi_direct_get_ssid_p(void); extern int utc_wifi_direct_get_mac_address_p(void); extern int utc_wifi_direct_get_state_p(void); @@ -116,6 +120,7 @@ extern int utc_wifi_direct_get_req_wps_type_p(void); extern int utc_wifi_direct_is_discoverable_p(void); extern int utc_wifi_direct_is_listening_only_p(void); extern int utc_wifi_direct_start_discovery_specific_channel_p(void); +extern int utc_wifi_direct_set_auto_group_removal_n(void); extern int utc_wifi_direct_create_group_n(void); extern int utc_wifi_direct_destroy_group_n(void); extern int utc_wifi_direct_is_group_owner_n(void); @@ -135,6 +140,7 @@ extern int utc_wifi_direct_get_ip_address_n(void); extern int utc_wifi_direct_get_gateway_address_n(void); extern int utc_wifi_direct_get_network_interface_name_n(void); extern int utc_wifi_direct_remove_persistent_group_n(void); +extern int utc_wifi_direct_set_auto_group_removal_p(void); extern int utc_wifi_direct_create_group_p(void); extern int utc_wifi_direct_destroy_group_p(void); extern int utc_wifi_direct_is_group_owner_p(void); @@ -200,6 +206,8 @@ testcase tc_array[] = { {"utc_wifi_direct_activate_pushbutton_n", utc_wifi_direct_activate_pushbutton_n, utc_wifi_direct_connection_negative_startup, utc_wifi_direct_connection_negative_cleanup}, {"utc_wifi_direct_connect_p", utc_wifi_direct_connect_p, utc_wifi_direct_connection_positive_startup, utc_wifi_direct_connection_positive_cleanup}, {"utc_wifi_direct_set_wps_pin_p", utc_wifi_direct_set_wps_pin_p, utc_wifi_direct_connection_positive_startup, utc_wifi_direct_connection_positive_cleanup}, + {"utc_wifi_direct_get_session_timer_n", utc_wifi_direct_get_ssid_n, utc_wifi_direct_device_negative_startup, utc_wifi_direct_device_negative_cleanup}, + {"utc_wifi_direct_set_session_timer_n", utc_wifi_direct_set_session_timer_n, utc_wifi_direct_device_negative_startup, utc_wifi_direct_device_negative_cleanup}, {"utc_wifi_direct_get_ssid_n", utc_wifi_direct_get_ssid_n, utc_wifi_direct_device_negative_startup, utc_wifi_direct_device_negative_cleanup}, {"utc_wifi_direct_get_mac_address_n", utc_wifi_direct_get_mac_address_n, utc_wifi_direct_device_negative_startup, utc_wifi_direct_device_negative_cleanup}, {"utc_wifi_direct_get_state_n", utc_wifi_direct_get_state_n, utc_wifi_direct_device_negative_startup, utc_wifi_direct_device_negative_cleanup}, @@ -220,6 +228,8 @@ testcase tc_array[] = { {"utc_wifi_direct_foreach_supported_wps_types_n", utc_wifi_direct_foreach_supported_wps_types_n, utc_wifi_direct_device_negative_startup, utc_wifi_direct_device_negative_cleanup}, {"utc_wifi_direct_get_supported_wps_mode_n", utc_wifi_direct_get_supported_wps_mode_n, utc_wifi_direct_device_negative_startup, utc_wifi_direct_device_negative_cleanup}, {"utc_wifi_direct_activate_p", utc_wifi_direct_activate_p, utc_wifi_direct_device_positive_startup, utc_wifi_direct_device_positive_cleanup}, + {"utc_wifi_direct_get_session_timer_p", utc_wifi_direct_get_session_timer_p, utc_wifi_direct_device_positive_startup, utc_wifi_direct_device_positive_cleanup}, + {"utc_wifi_direct_set_session_timer_p", utc_wifi_direct_set_session_timer_p, utc_wifi_direct_device_positive_startup, utc_wifi_direct_device_positive_cleanup}, {"utc_wifi_direct_get_ssid_p", utc_wifi_direct_get_ssid_p, utc_wifi_direct_device_positive_startup, utc_wifi_direct_device_positive_cleanup}, {"utc_wifi_direct_get_mac_address_p", utc_wifi_direct_get_mac_address_p, utc_wifi_direct_device_positive_startup, utc_wifi_direct_device_positive_cleanup}, {"utc_wifi_direct_get_state_p", utc_wifi_direct_get_state_p, utc_wifi_direct_device_positive_startup, utc_wifi_direct_device_positive_cleanup}, @@ -262,6 +272,7 @@ testcase tc_array[] = { {"utc_wifi_direct_is_discoverable_p", utc_wifi_direct_is_discoverable_p, utc_wifi_direct_discovery_positive_startup, utc_wifi_direct_discovery_positive_cleanup}, {"utc_wifi_direct_is_listening_only_p", utc_wifi_direct_is_listening_only_p, utc_wifi_direct_discovery_positive_startup, utc_wifi_direct_discovery_positive_cleanup}, {"utc_wifi_direct_start_discovery_specific_channel_p", utc_wifi_direct_start_discovery_specific_channel_p, utc_wifi_direct_discovery_positive_startup, utc_wifi_direct_discovery_positive_cleanup}, + {"utc_wifi_direct_set_auto_group_removal_n", utc_wifi_direct_set_auto_group_removal_n, utc_wifi_direct_group_negative_startup, utc_wifi_direct_group_negative_cleanup}, {"utc_wifi_direct_create_group_n", utc_wifi_direct_create_group_n, utc_wifi_direct_group_negative_startup, utc_wifi_direct_group_negative_cleanup}, {"utc_wifi_direct_destroy_group_n", utc_wifi_direct_destroy_group_n, utc_wifi_direct_group_negative_startup, utc_wifi_direct_group_negative_cleanup}, {"utc_wifi_direct_is_group_owner_n", utc_wifi_direct_is_group_owner_n, utc_wifi_direct_group_negative_startup, utc_wifi_direct_group_negative_cleanup}, @@ -281,6 +292,7 @@ testcase tc_array[] = { {"utc_wifi_direct_get_gateway_address_n", utc_wifi_direct_get_gateway_address_n, utc_wifi_direct_group_negative_startup, utc_wifi_direct_group_negative_cleanup}, {"utc_wifi_direct_get_network_interface_name_n", utc_wifi_direct_get_network_interface_name_n, utc_wifi_direct_group_negative_startup, utc_wifi_direct_group_negative_cleanup}, {"utc_wifi_direct_remove_persistent_group_n", utc_wifi_direct_remove_persistent_group_n, utc_wifi_direct_group_negative_startup, utc_wifi_direct_group_negative_cleanup}, + {"utc_wifi_direct_set_auto_group_removal_p", utc_wifi_direct_set_auto_group_removal_p, utc_wifi_direct_group_positive_startup, utc_wifi_direct_group_positive_cleanup}, {"utc_wifi_direct_create_group_p", utc_wifi_direct_create_group_p, utc_wifi_direct_group_positive_startup, utc_wifi_direct_group_positive_cleanup}, {"utc_wifi_direct_destroy_group_p", utc_wifi_direct_destroy_group_p, utc_wifi_direct_group_positive_startup, utc_wifi_direct_group_positive_cleanup}, {"utc_wifi_direct_is_group_owner_p", utc_wifi_direct_is_group_owner_p, utc_wifi_direct_group_positive_startup, utc_wifi_direct_group_positive_cleanup}, diff --git a/src/utc/wifi-direct/tct-wifi-direct-core_tv.h b/src/utc/wifi-direct/tct-wifi-direct-core_tv.h index 16f2c3e..435c0df 100755 --- a/src/utc/wifi-direct/tct-wifi-direct-core_tv.h +++ b/src/utc/wifi-direct/tct-wifi-direct-core_tv.h @@ -54,6 +54,8 @@ extern int utc_wifi_direct_cancel_connection_n(void); extern int utc_wifi_direct_activate_pushbutton_n(void); extern int utc_wifi_direct_connect_p(void); extern int utc_wifi_direct_set_wps_pin_p(void); +extern int utc_wifi_direct_set_session_timer_n(void); +extern int utc_wifi_direct_get_session_timer_n(void); extern int utc_wifi_direct_get_ssid_n(void); extern int utc_wifi_direct_get_mac_address_n(void); extern int utc_wifi_direct_get_state_n(void); @@ -74,6 +76,8 @@ extern int utc_wifi_direct_set_device_name_n(void); extern int utc_wifi_direct_foreach_supported_wps_types_n(void); extern int utc_wifi_direct_get_supported_wps_mode_n(void); extern int utc_wifi_direct_activate_p(void); +extern int utc_wifi_direct_set_session_timer_p(void); +extern int utc_wifi_direct_get_session_timer_p(void); extern int utc_wifi_direct_get_ssid_p(void); extern int utc_wifi_direct_get_mac_address_p(void); extern int utc_wifi_direct_get_state_p(void); @@ -116,6 +120,7 @@ extern int utc_wifi_direct_get_req_wps_type_p(void); extern int utc_wifi_direct_is_discoverable_p(void); extern int utc_wifi_direct_is_listening_only_p(void); extern int utc_wifi_direct_start_discovery_specific_channel_p(void); +extern int utc_wifi_direct_set_auto_group_removal_n(void); extern int utc_wifi_direct_create_group_n(void); extern int utc_wifi_direct_destroy_group_n(void); extern int utc_wifi_direct_is_group_owner_n(void); @@ -135,6 +140,7 @@ extern int utc_wifi_direct_get_ip_address_n(void); extern int utc_wifi_direct_get_gateway_address_n(void); extern int utc_wifi_direct_get_network_interface_name_n(void); extern int utc_wifi_direct_remove_persistent_group_n(void); +extern int utc_wifi_direct_set_auto_group_removal_p(void); extern int utc_wifi_direct_create_group_p(void); extern int utc_wifi_direct_destroy_group_p(void); extern int utc_wifi_direct_is_group_owner_p(void); @@ -200,6 +206,8 @@ testcase tc_array[] = { {"utc_wifi_direct_activate_pushbutton_n", utc_wifi_direct_activate_pushbutton_n, utc_wifi_direct_connection_negative_startup, utc_wifi_direct_connection_negative_cleanup}, {"utc_wifi_direct_connect_p", utc_wifi_direct_connect_p, utc_wifi_direct_connection_positive_startup, utc_wifi_direct_connection_positive_cleanup}, {"utc_wifi_direct_set_wps_pin_p", utc_wifi_direct_set_wps_pin_p, utc_wifi_direct_connection_positive_startup, utc_wifi_direct_connection_positive_cleanup}, + {"utc_wifi_direct_get_session_timer_n", utc_wifi_direct_get_ssid_n, utc_wifi_direct_device_negative_startup, utc_wifi_direct_device_negative_cleanup}, + {"utc_wifi_direct_set_session_timer_n", utc_wifi_direct_set_session_timer_n, utc_wifi_direct_device_negative_startup, utc_wifi_direct_device_negative_cleanup}, {"utc_wifi_direct_get_ssid_n", utc_wifi_direct_get_ssid_n, utc_wifi_direct_device_negative_startup, utc_wifi_direct_device_negative_cleanup}, {"utc_wifi_direct_get_mac_address_n", utc_wifi_direct_get_mac_address_n, utc_wifi_direct_device_negative_startup, utc_wifi_direct_device_negative_cleanup}, {"utc_wifi_direct_get_state_n", utc_wifi_direct_get_state_n, utc_wifi_direct_device_negative_startup, utc_wifi_direct_device_negative_cleanup}, @@ -220,6 +228,8 @@ testcase tc_array[] = { {"utc_wifi_direct_foreach_supported_wps_types_n", utc_wifi_direct_foreach_supported_wps_types_n, utc_wifi_direct_device_negative_startup, utc_wifi_direct_device_negative_cleanup}, {"utc_wifi_direct_get_supported_wps_mode_n", utc_wifi_direct_get_supported_wps_mode_n, utc_wifi_direct_device_negative_startup, utc_wifi_direct_device_negative_cleanup}, {"utc_wifi_direct_activate_p", utc_wifi_direct_activate_p, utc_wifi_direct_device_positive_startup, utc_wifi_direct_device_positive_cleanup}, + {"utc_wifi_direct_get_session_timer_p", utc_wifi_direct_get_session_timer_p, utc_wifi_direct_device_positive_startup, utc_wifi_direct_device_positive_cleanup}, + {"utc_wifi_direct_set_session_timer_p", utc_wifi_direct_set_session_timer_p, utc_wifi_direct_device_positive_startup, utc_wifi_direct_device_positive_cleanup}, {"utc_wifi_direct_get_ssid_p", utc_wifi_direct_get_ssid_p, utc_wifi_direct_device_positive_startup, utc_wifi_direct_device_positive_cleanup}, {"utc_wifi_direct_get_mac_address_p", utc_wifi_direct_get_mac_address_p, utc_wifi_direct_device_positive_startup, utc_wifi_direct_device_positive_cleanup}, {"utc_wifi_direct_get_state_p", utc_wifi_direct_get_state_p, utc_wifi_direct_device_positive_startup, utc_wifi_direct_device_positive_cleanup}, @@ -262,6 +272,7 @@ testcase tc_array[] = { {"utc_wifi_direct_is_discoverable_p", utc_wifi_direct_is_discoverable_p, utc_wifi_direct_discovery_positive_startup, utc_wifi_direct_discovery_positive_cleanup}, {"utc_wifi_direct_is_listening_only_p", utc_wifi_direct_is_listening_only_p, utc_wifi_direct_discovery_positive_startup, utc_wifi_direct_discovery_positive_cleanup}, {"utc_wifi_direct_start_discovery_specific_channel_p", utc_wifi_direct_start_discovery_specific_channel_p, utc_wifi_direct_discovery_positive_startup, utc_wifi_direct_discovery_positive_cleanup}, + {"utc_wifi_direct_set_auto_group_removal_n", utc_wifi_direct_set_auto_group_removal_n, utc_wifi_direct_group_negative_startup, utc_wifi_direct_group_negative_cleanup}, {"utc_wifi_direct_create_group_n", utc_wifi_direct_create_group_n, utc_wifi_direct_group_negative_startup, utc_wifi_direct_group_negative_cleanup}, {"utc_wifi_direct_destroy_group_n", utc_wifi_direct_destroy_group_n, utc_wifi_direct_group_negative_startup, utc_wifi_direct_group_negative_cleanup}, {"utc_wifi_direct_is_group_owner_n", utc_wifi_direct_is_group_owner_n, utc_wifi_direct_group_negative_startup, utc_wifi_direct_group_negative_cleanup}, @@ -281,6 +292,7 @@ testcase tc_array[] = { {"utc_wifi_direct_get_gateway_address_n", utc_wifi_direct_get_gateway_address_n, utc_wifi_direct_group_negative_startup, utc_wifi_direct_group_negative_cleanup}, {"utc_wifi_direct_get_network_interface_name_n", utc_wifi_direct_get_network_interface_name_n, utc_wifi_direct_group_negative_startup, utc_wifi_direct_group_negative_cleanup}, {"utc_wifi_direct_remove_persistent_group_n", utc_wifi_direct_remove_persistent_group_n, utc_wifi_direct_group_negative_startup, utc_wifi_direct_group_negative_cleanup}, + {"utc_wifi_direct_set_auto_group_removal_p", utc_wifi_direct_set_auto_group_removal_p, utc_wifi_direct_group_positive_startup, utc_wifi_direct_group_positive_cleanup}, {"utc_wifi_direct_create_group_p", utc_wifi_direct_create_group_p, utc_wifi_direct_group_positive_startup, utc_wifi_direct_group_positive_cleanup}, {"utc_wifi_direct_destroy_group_p", utc_wifi_direct_destroy_group_p, utc_wifi_direct_group_positive_startup, utc_wifi_direct_group_positive_cleanup}, {"utc_wifi_direct_is_group_owner_p", utc_wifi_direct_is_group_owner_p, utc_wifi_direct_group_positive_startup, utc_wifi_direct_group_positive_cleanup}, diff --git a/src/utc/wifi-direct/utc-wifi-direct-device-negative.c b/src/utc/wifi-direct/utc-wifi-direct-device-negative.c index f959a5e..f26fd7e 100755 --- a/src/utc/wifi-direct/utc-wifi-direct-device-negative.c +++ b/src/utc/wifi-direct/utc-wifi-direct-device-negative.c @@ -46,6 +46,53 @@ void utc_wifi_direct_device_negative_cleanup(void) } /** + * @testcase utc_wifi_direct_set_session_timer_n + * @since_tizen 3.0 + * @type negative + * @description wifi_direct_set_session_timer should fail on invalid parameters. + * @scenario Verify wifi_direct_set_session_timer by passing negative value parameter. + */ +int utc_wifi_direct_set_session_timer_n(void) +{ + int ret = WIFI_DIRECT_ERROR_NONE; + if(g_wd_supported_device_n == false) { + ret = wifi_direct_set_session_timer(120); + assert_eq(ret, WIFI_DIRECT_ERROR_NOT_SUPPORTED); + return 0; + } + + ret = wifi_direct_set_session_timer(-120); + + assert_eq(ret, WIFI_DIRECT_ERROR_INVALID_PARAMETER); + + return 0; +} + +/** + * @testcase utc_wifi_direct_get_session_timer_n + * @since_tizen 3.0 + * @type negative + * @description wifi_direct_set_session_timer should fail on invalid parameters. + * @scenario Verify wifi_direct_set_session_timer by passing negative value parameter. + */ +int utc_wifi_direct_get_session_timer_n(void) +{ + int ret = WIFI_DIRECT_ERROR_NONE; + + if(g_wd_supported_device_n == false) { + ret = wifi_direct_get_session_timer(NULL); + assert_eq(ret, WIFI_DIRECT_ERROR_NOT_SUPPORTED); + return 0; + } + + ret = wifi_direct_get_session_timer(NULL); + + assert_eq(ret, WIFI_DIRECT_ERROR_INVALID_PARAMETER); + + return 0; +} + +/** * @testcase utc_wifi_direct_get_ssid_n * @since_tizen 2.3 * @type Negative diff --git a/src/utc/wifi-direct/utc-wifi-direct-device-positive.c b/src/utc/wifi-direct/utc-wifi-direct-device-positive.c index a63fd0e..7860e30 100755 --- a/src/utc/wifi-direct/utc-wifi-direct-device-positive.c +++ b/src/utc/wifi-direct/utc-wifi-direct-device-positive.c @@ -106,6 +106,54 @@ static bool foreach_supported_wps_impl_cb(wifi_direct_wps_type_e type, void* use } /** + * @testcase utc_wifi_direct_set_session_timer_p + * @since_tizen 3.0 + * @type positive + * @description Sets session timer of a local device. + * @scenario Verify wifi_direct_set_session_timer. + */ +int utc_wifi_direct_set_session_timer_p(void) +{ + int ret = WIFI_DIRECT_ERROR_NONE; + if(g_wd_supported_device_p == false) { + ret = wifi_direct_set_session_timer(120); + assert_eq(ret, WIFI_DIRECT_ERROR_NOT_SUPPORTED); + return 0; + } + + ret = wifi_direct_set_session_timer(120); + + assert_eq(ret, WIFI_DIRECT_ERROR_NONE); + + return 0; +} + +/** + * @testcase utc_wifi_direct_get_session_timer_p + * @since_tizen 3.0 + * @type positive + * @description Gets session timer of a local device. + * @scenario Verify wifi_direct_get_session_timer. + */ +int utc_wifi_direct_get_session_timer_p(void) +{ + int ret = WIFI_DIRECT_ERROR_NONE; + int seconds = 0; + + if(g_wd_supported_device_p == false) { + ret = wifi_direct_get_session_timer(&seconds); + assert_eq(ret, WIFI_DIRECT_ERROR_NOT_SUPPORTED); + return 0; + } + + ret = wifi_direct_get_session_timer(&seconds); + + assert_eq(ret, WIFI_DIRECT_ERROR_NONE); + + return 0; +} + +/** * @testcase utc_wifi_direct_activate_p * @since_tizen 2.3 * @type positive diff --git a/src/utc/wifi-direct/utc-wifi-direct-group-negative.c b/src/utc/wifi-direct/utc-wifi-direct-group-negative.c index c2655ec..035a7ff 100755 --- a/src/utc/wifi-direct/utc-wifi-direct-group-negative.c +++ b/src/utc/wifi-direct/utc-wifi-direct-group-negative.c @@ -46,6 +46,29 @@ void utc_wifi_direct_group_negative_cleanup(void) } /** + * @testcase utc_wifi_direct_set_auto_group_removal_n + * @since_tizen 3.0 + * @type Negative + * @description wifi_direct_set_auto_group_removal should fail on invalid invocation. + * @scenario Invoke wifi_direct_set_auto_group_removal when it is not permitted. + */ +int utc_wifi_direct_set_auto_group_removal_n(void) +{ + int ret = WIFI_DIRECT_ERROR_NONE; + if(g_wd_supported_group_n == false) { + ret = wifi_direct_set_auto_group_removal(false); + assert_eq(ret, WIFI_DIRECT_ERROR_NOT_SUPPORTED); + return 0; + } + + ret = wifi_direct_set_auto_group_removal(false); + + assert_eq(ret, WIFI_DIRECT_ERROR_NOT_PERMITTED); + + return 0; +} + +/** * @testcase utc_wifi_direct_create_group_n * @since_tizen 2.3 * @type Negative diff --git a/src/utc/wifi-direct/utc-wifi-direct-group-positive.c b/src/utc/wifi-direct/utc-wifi-direct-group-positive.c index 2c60c98..f1d9eb6 100755 --- a/src/utc/wifi-direct/utc-wifi-direct-group-positive.c +++ b/src/utc/wifi-direct/utc-wifi-direct-group-positive.c @@ -173,6 +173,31 @@ static bool _wifi_direct_persistent_group_cb(const char* mac_address, const char } /** + * @testcase utc_wifi_direct_set_auto_group_removal_p + * @since_tizen 3.0 + * @type positive + * @description Sets auto group removal flags on P2P daemon. + * @scenario wifi_direct_set_auto_group_removal should sets flag on P2P daemon. + */ +int utc_wifi_direct_set_auto_group_removal_p(void) +{ + int ret = WIFI_DIRECT_ERROR_NONE; + if(g_wd_supported_group_p == false) { + ret = wifi_direct_set_auto_group_removal(true); + assert_eq(ret, WIFI_DIRECT_ERROR_NOT_SUPPORTED); + return 0; + } + + ret = wait_for_activate_callback(); + assert_eq(ret, WIFI_DIRECT_ERROR_NONE); + + ret = wifi_direct_set_auto_group_removal(true); + assert_eq(ret, WIFI_DIRECT_ERROR_NONE); + + return 0; +} + +/** * @testcase utc_wifi_direct_create_group_p * @since_tizen 2.3 * @type positive