[ITC][UTC][device][Non-ACR]Change referred feature 93/211493/2
authorYunmi Ha <yunmi.ha@samsung.com>
Tue, 6 Aug 2019 02:19:11 +0000 (11:19 +0900)
committerYunmi Ha <yunmi.ha@samsung.com>
Tue, 6 Aug 2019 02:43:44 +0000 (11:43 +0900)
Change-Id: I19ffac0357a00987b961f983358475e7a5bbfdb7
Signed-off-by: Yunmi Ha <yunmi.ha@samsung.com>
src/itc/device/ITs-device_haptic.c
src/utc/device/utc-system-device-haptic.c

index dbf3317660e01798323acbf9b06079fbb0f13b1a..908ee11bcf4424044c13fe1a616450903620e66e 100755 (executable)
 
 
 //& set: Device
-bool bIsBATTERYFeatureSupported;
+bool bIsHAPTICFeatureSupported;
 
 //Add  related feature here
-#define BATTERY_FEATURE                                "http://tizen.org/feature/battery"
+#define HAPTIC_FEATURE         "http://tizen.org/feature/feedback.vibration"
 
 /**
 * @function            ITs_device_haptic_startup
@@ -45,8 +45,8 @@ void ITs_device_haptic_startup(void)
        FPRINTF("[Line : %d][%s] TEST SUIT start-up: ITs_Device_p\\n", __LINE__, API_NAMESPACE);
 #endif
 
-       bIsBATTERYFeatureSupported = false;
-       IS_FEATURE_SUPPORTED(BATTERY_FEATURE, bIsBATTERYFeatureSupported, API_NAMESPACE);
+       bIsHAPTICFeatureSupported = false;
+       IS_FEATURE_SUPPORTED(HAPTIC_FEATURE, bIsHAPTICFeatureSupported, API_NAMESPACE);
        return;
 }
 
@@ -97,7 +97,7 @@ int ITc_device_haptic_vibrate_stop_p(void)
        int nDeviceCount;
        haptic_device_h hHapticDevice;
 
-       if (!bIsBATTERYFeatureSupported)
+       if (!bIsHAPTICFeatureSupported)
                return 0;
 
        //Precondition
@@ -151,7 +151,7 @@ int ITc_device_haptic_get_count_p(void)
 
        int nDeviceCount;
 
-       if (!bIsBATTERYFeatureSupported)
+       if (!bIsHAPTICFeatureSupported)
                return 0;
 
        // Target API
@@ -185,7 +185,7 @@ int ITc_device_haptic_open_close_p(void)
 
        haptic_device_h hHapticDevice = NULL;
 
-       if (!bIsBATTERYFeatureSupported)
+       if (!bIsHAPTICFeatureSupported)
                return 0;
 
        //Precondition
index 6bffbb2f7da525fab4cc105f91ce3703ddcc165d..8b40bbba654dde742f3865239178cf7815f180ae 100755 (executable)
@@ -18,7 +18,7 @@
 
 
 //& set: DeviceHaptic
-#define BATTERY_FEATURE                      "http://tizen.org/feature/battery"
+#define HAPTIC_FEATURE         "http://tizen.org/feature/feedback.vibration"
 
 static bool is_supported;
 static haptic_device_h haptic_h;
@@ -33,7 +33,7 @@ void utc_system_haptic_startup(void)
 {
        int cnt, ret;
 
-       ret = system_info_get_platform_bool(BATTERY_FEATURE, &is_supported);
+       ret = system_info_get_platform_bool(HAPTIC_FEATURE, &is_supported);
        if (!is_supported)
                return;