From: Abhay Agarwal Date: Wed, 21 Jul 2021 16:18:59 +0000 (+0530) Subject: [UTC][capi-network-ua][Non-ACR] [TC Removal] X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=afd038e431c20e7be234811f9d6130f57cc7652c;p=test%2Ftct%2Fnative%2Fapi.git [UTC][capi-network-ua][Non-ACR] [TC Removal] This patch remove below TC since these require manual device addition - Removed utc_ua_monitor_start_scan_p - Removed utc_ua_monitor_stop_scan_p Change-Id: I3809d97a825225ca3438de12f6141cae847b8704 Signed-off-by: Abhay Agarwal --- diff --git a/src/utc/ua/tct-ua-core_mobile.h b/src/utc/ua/tct-ua-core_mobile.h index 1b3b0b048..56d532d19 100755 --- a/src/utc/ua/tct-ua-core_mobile.h +++ b/src/utc/ua/tct-ua-core_mobile.h @@ -49,9 +49,7 @@ extern int utc_ua_monitor_set_sensor_status_changed_cb_p(void); extern int utc_ua_monitor_set_sensor_status_changed_cb_n(void); extern int utc_ua_monitor_unset_sensor_status_changed_cb_p(void); extern int utc_ua_monitor_unset_sensor_status_changed_cb_n(void); -extern int utc_ua_monitor_start_scan_p(void); extern int utc_ua_monitor_start_scan_n(void); -extern int utc_ua_monitor_stop_scan_p(void); extern int utc_ua_monitor_stop_scan_n(void); extern int utc_ua_monitor_start_presence_detection_p(void); extern int utc_ua_monitor_start_presence_detection_n(void); @@ -166,9 +164,7 @@ testcase tc_array[] = { {"utc_ua_monitor_set_sensor_status_changed_cb_n", utc_ua_monitor_set_sensor_status_changed_cb_n, utc_ua_startup, utc_ua_cleanup}, {"utc_ua_monitor_unset_sensor_status_changed_cb_p", utc_ua_monitor_unset_sensor_status_changed_cb_p, utc_ua_startup, utc_ua_cleanup}, {"utc_ua_monitor_unset_sensor_status_changed_cb_n", utc_ua_monitor_unset_sensor_status_changed_cb_n, utc_ua_startup, utc_ua_cleanup}, - {"utc_ua_monitor_start_scan_p", utc_ua_monitor_start_scan_p, utc_ua_startup, utc_ua_cleanup}, {"utc_ua_monitor_start_scan_n", utc_ua_monitor_start_scan_n, utc_ua_startup, utc_ua_cleanup}, - {"utc_ua_monitor_stop_scan_p", utc_ua_monitor_stop_scan_p, utc_ua_startup, utc_ua_cleanup}, {"utc_ua_monitor_stop_scan_n", utc_ua_monitor_stop_scan_n, utc_ua_startup, utc_ua_cleanup}, {"utc_ua_monitor_start_presence_detection_p", utc_ua_monitor_start_presence_detection_p, utc_ua_startup, utc_ua_cleanup}, {"utc_ua_monitor_start_presence_detection_n", utc_ua_monitor_start_presence_detection_n, utc_ua_startup, utc_ua_cleanup}, diff --git a/src/utc/ua/tct-ua-core_tizeniot.h b/src/utc/ua/tct-ua-core_tizeniot.h index 1b3b0b048..56d532d19 100755 --- a/src/utc/ua/tct-ua-core_tizeniot.h +++ b/src/utc/ua/tct-ua-core_tizeniot.h @@ -49,9 +49,7 @@ extern int utc_ua_monitor_set_sensor_status_changed_cb_p(void); extern int utc_ua_monitor_set_sensor_status_changed_cb_n(void); extern int utc_ua_monitor_unset_sensor_status_changed_cb_p(void); extern int utc_ua_monitor_unset_sensor_status_changed_cb_n(void); -extern int utc_ua_monitor_start_scan_p(void); extern int utc_ua_monitor_start_scan_n(void); -extern int utc_ua_monitor_stop_scan_p(void); extern int utc_ua_monitor_stop_scan_n(void); extern int utc_ua_monitor_start_presence_detection_p(void); extern int utc_ua_monitor_start_presence_detection_n(void); @@ -166,9 +164,7 @@ testcase tc_array[] = { {"utc_ua_monitor_set_sensor_status_changed_cb_n", utc_ua_monitor_set_sensor_status_changed_cb_n, utc_ua_startup, utc_ua_cleanup}, {"utc_ua_monitor_unset_sensor_status_changed_cb_p", utc_ua_monitor_unset_sensor_status_changed_cb_p, utc_ua_startup, utc_ua_cleanup}, {"utc_ua_monitor_unset_sensor_status_changed_cb_n", utc_ua_monitor_unset_sensor_status_changed_cb_n, utc_ua_startup, utc_ua_cleanup}, - {"utc_ua_monitor_start_scan_p", utc_ua_monitor_start_scan_p, utc_ua_startup, utc_ua_cleanup}, {"utc_ua_monitor_start_scan_n", utc_ua_monitor_start_scan_n, utc_ua_startup, utc_ua_cleanup}, - {"utc_ua_monitor_stop_scan_p", utc_ua_monitor_stop_scan_p, utc_ua_startup, utc_ua_cleanup}, {"utc_ua_monitor_stop_scan_n", utc_ua_monitor_stop_scan_n, utc_ua_startup, utc_ua_cleanup}, {"utc_ua_monitor_start_presence_detection_p", utc_ua_monitor_start_presence_detection_p, utc_ua_startup, utc_ua_cleanup}, {"utc_ua_monitor_start_presence_detection_n", utc_ua_monitor_start_presence_detection_n, utc_ua_startup, utc_ua_cleanup}, diff --git a/src/utc/ua/tct-ua-core_tv.h b/src/utc/ua/tct-ua-core_tv.h index 1b3b0b048..56d532d19 100755 --- a/src/utc/ua/tct-ua-core_tv.h +++ b/src/utc/ua/tct-ua-core_tv.h @@ -49,9 +49,7 @@ extern int utc_ua_monitor_set_sensor_status_changed_cb_p(void); extern int utc_ua_monitor_set_sensor_status_changed_cb_n(void); extern int utc_ua_monitor_unset_sensor_status_changed_cb_p(void); extern int utc_ua_monitor_unset_sensor_status_changed_cb_n(void); -extern int utc_ua_monitor_start_scan_p(void); extern int utc_ua_monitor_start_scan_n(void); -extern int utc_ua_monitor_stop_scan_p(void); extern int utc_ua_monitor_stop_scan_n(void); extern int utc_ua_monitor_start_presence_detection_p(void); extern int utc_ua_monitor_start_presence_detection_n(void); @@ -166,9 +164,7 @@ testcase tc_array[] = { {"utc_ua_monitor_set_sensor_status_changed_cb_n", utc_ua_monitor_set_sensor_status_changed_cb_n, utc_ua_startup, utc_ua_cleanup}, {"utc_ua_monitor_unset_sensor_status_changed_cb_p", utc_ua_monitor_unset_sensor_status_changed_cb_p, utc_ua_startup, utc_ua_cleanup}, {"utc_ua_monitor_unset_sensor_status_changed_cb_n", utc_ua_monitor_unset_sensor_status_changed_cb_n, utc_ua_startup, utc_ua_cleanup}, - {"utc_ua_monitor_start_scan_p", utc_ua_monitor_start_scan_p, utc_ua_startup, utc_ua_cleanup}, {"utc_ua_monitor_start_scan_n", utc_ua_monitor_start_scan_n, utc_ua_startup, utc_ua_cleanup}, - {"utc_ua_monitor_stop_scan_p", utc_ua_monitor_stop_scan_p, utc_ua_startup, utc_ua_cleanup}, {"utc_ua_monitor_stop_scan_n", utc_ua_monitor_stop_scan_n, utc_ua_startup, utc_ua_cleanup}, {"utc_ua_monitor_start_presence_detection_p", utc_ua_monitor_start_presence_detection_p, utc_ua_startup, utc_ua_cleanup}, {"utc_ua_monitor_start_presence_detection_n", utc_ua_monitor_start_presence_detection_n, utc_ua_startup, utc_ua_cleanup}, diff --git a/src/utc/ua/tct-ua-core_wearable.h b/src/utc/ua/tct-ua-core_wearable.h index 1b3b0b048..56d532d19 100755 --- a/src/utc/ua/tct-ua-core_wearable.h +++ b/src/utc/ua/tct-ua-core_wearable.h @@ -49,9 +49,7 @@ extern int utc_ua_monitor_set_sensor_status_changed_cb_p(void); extern int utc_ua_monitor_set_sensor_status_changed_cb_n(void); extern int utc_ua_monitor_unset_sensor_status_changed_cb_p(void); extern int utc_ua_monitor_unset_sensor_status_changed_cb_n(void); -extern int utc_ua_monitor_start_scan_p(void); extern int utc_ua_monitor_start_scan_n(void); -extern int utc_ua_monitor_stop_scan_p(void); extern int utc_ua_monitor_stop_scan_n(void); extern int utc_ua_monitor_start_presence_detection_p(void); extern int utc_ua_monitor_start_presence_detection_n(void); @@ -166,9 +164,7 @@ testcase tc_array[] = { {"utc_ua_monitor_set_sensor_status_changed_cb_n", utc_ua_monitor_set_sensor_status_changed_cb_n, utc_ua_startup, utc_ua_cleanup}, {"utc_ua_monitor_unset_sensor_status_changed_cb_p", utc_ua_monitor_unset_sensor_status_changed_cb_p, utc_ua_startup, utc_ua_cleanup}, {"utc_ua_monitor_unset_sensor_status_changed_cb_n", utc_ua_monitor_unset_sensor_status_changed_cb_n, utc_ua_startup, utc_ua_cleanup}, - {"utc_ua_monitor_start_scan_p", utc_ua_monitor_start_scan_p, utc_ua_startup, utc_ua_cleanup}, {"utc_ua_monitor_start_scan_n", utc_ua_monitor_start_scan_n, utc_ua_startup, utc_ua_cleanup}, - {"utc_ua_monitor_stop_scan_p", utc_ua_monitor_stop_scan_p, utc_ua_startup, utc_ua_cleanup}, {"utc_ua_monitor_stop_scan_n", utc_ua_monitor_stop_scan_n, utc_ua_startup, utc_ua_cleanup}, {"utc_ua_monitor_start_presence_detection_p", utc_ua_monitor_start_presence_detection_p, utc_ua_startup, utc_ua_cleanup}, {"utc_ua_monitor_start_presence_detection_n", utc_ua_monitor_start_presence_detection_n, utc_ua_startup, utc_ua_cleanup}, diff --git a/src/utc/ua/utc-ua-monitor.c b/src/utc/ua/utc-ua-monitor.c index 0c92ac9c8..d8f1b44ba 100755 --- a/src/utc/ua/utc-ua-monitor.c +++ b/src/utc/ua/utc-ua-monitor.c @@ -383,40 +383,6 @@ int utc_ua_monitor_unset_sensor_status_changed_cb_n(void) return 0; } -int utc_ua_monitor_start_scan_p(void) -{ - int ret = UA_ERROR_NONE; - ua_monitor_h ua_mon_h = NULL; - - CHECK_INIT_RETURN(); - - if (!ua_is_feature_supported()) { - ret = ua_monitor_start_scan(NULL, 0, NULL, NULL); - CHECK_RETURN("ua_monitor_start_scan", ret, UA_ERROR_NOT_SUPPORTED); - return 0; - } - - ret = ua_monitor_create(&ua_mon_h); - CHECK_RETURN("ua_monitor_create", ret, UA_ERROR_NONE); - - ret = ua_monitor_add_sensor(ua_mon_h, UA_SENSOR_WIFI); - CHECK_RETURN("ua_monitor_add_sensor", ret, UA_ERROR_NONE); - - ret = ua_monitor_start_scan(ua_mon_h, 1, __ua_monitor_scan_completed_cb, NULL); - CHECK_RETURN("ua_monitor_start_scan", ret, UA_ERROR_NONE); - - ret = ua_monitor_stop_scan(ua_mon_h); - CHECK_RETURN("ua_monitor_stop_scan", ret, UA_ERROR_NONE); - - ret = ua_monitor_remove_sensor(ua_mon_h, UA_SENSOR_WIFI); - CHECK_RETURN("ua_monitor_remove_sensor", ret, UA_ERROR_NONE); - - ret = ua_monitor_destroy(ua_mon_h); - CHECK_RETURN("ua_monitor_destroy", ret, UA_ERROR_NONE); - - return 0; -} - int utc_ua_monitor_start_scan_n(void) { int ret = UA_ERROR_NONE; @@ -433,40 +399,6 @@ int utc_ua_monitor_start_scan_n(void) return 0; } -int utc_ua_monitor_stop_scan_p(void) -{ - int ret = UA_ERROR_NONE; - ua_monitor_h ua_mon_h = NULL; - - CHECK_INIT_RETURN(); - - if (!ua_is_feature_supported()) { - ret = ua_monitor_stop_scan(NULL); - CHECK_RETURN("ua_monitor_stop_scan", ret, UA_ERROR_NOT_SUPPORTED); - return 0; - } - - ret = ua_monitor_create(&ua_mon_h); - CHECK_RETURN("ua_monitor_create", ret, UA_ERROR_NONE); - - ret = ua_monitor_add_sensor(ua_mon_h, UA_SENSOR_WIFI); - CHECK_RETURN("ua_monitor_add_sensor", ret, UA_ERROR_NONE); - - ret = ua_monitor_start_scan(ua_mon_h, 1, __ua_monitor_scan_completed_cb, NULL); - CHECK_RETURN("ua_monitor_start_scan", ret, UA_ERROR_NONE); - - ret = ua_monitor_stop_scan(ua_mon_h); - CHECK_RETURN("ua_monitor_stop_scan", ret, UA_ERROR_NONE); - - ret = ua_monitor_remove_sensor(ua_mon_h, UA_SENSOR_WIFI); - CHECK_RETURN("ua_monitor_remove_sensor", ret, UA_ERROR_NONE); - - ret = ua_monitor_destroy(ua_mon_h); - CHECK_RETURN("ua_monitor_destroy", ret, UA_ERROR_NONE); - - return 0; -} - int utc_ua_monitor_stop_scan_n(void) { int ret = UA_ERROR_NONE;