int utc_runtime_info_get_value_double_p(void)
{
//TODO: current runtime_info does not have double type value.
+ assert(1);
return 0;
}
int utc_runtime_info_get_value_string_p(void)
{
//TODO: current runtime_info does not have string type value.
+ assert(1);
return 0;
}
{
bool value;
int retcode;
+ int ret;
runtime_info_key_e key = RUNTIME_INFO_KEY_BATTERY_IS_CHARGING;
retcode = runtime_info_get_value_bool(key, &value);
return 0;
}
- return compare_retcode_with_feature_support(retcode, "http://tizen.org/feature/battery");
+ ret = compare_retcode_with_feature_support(retcode, "http://tizen.org/feature/battery");
+ assert_eq(ret, 0);
+
+ return 0;
}
int utc_runtime_info_BATTERY_IS_CHARGING_p2(void)
{
int retcode;
+ int ret;
runtime_info_key_e key = RUNTIME_INFO_KEY_BATTERY_IS_CHARGING;
retcode = runtime_info_set_changed_cb(key, runtime_info_changed, NULL);
return 0;
}
- return compare_retcode_with_feature_support(retcode, "http://tizen.org/feature/battery");
+ ret = compare_retcode_with_feature_support(retcode, "http://tizen.org/feature/battery");
+ assert_eq(ret, 0);
+
+ return 0;
}
{
bool value;
int retcode;
+ int ret;
runtime_info_key_e key = RUNTIME_INFO_KEY_BLUETOOTH_ENABLED;
retcode = runtime_info_get_value_bool(key, &value);
return 0;
}
- return compare_retcode_with_feature_support(retcode, "http://tizen.org/feature/network.bluetooth");
+ ret = compare_retcode_with_feature_support(retcode, "http://tizen.org/feature/network.bluetooth");
+ assert_eq(ret, 0);
+
+ return 0;
}
int utc_runtime_info_BLUETOOTH_ENABLED_p2(void)
{
int retcode;
+ int ret;
runtime_info_key_e key = RUNTIME_INFO_KEY_BLUETOOTH_ENABLED;
retcode = runtime_info_set_changed_cb(key, runtime_info_changed, NULL);
return 0;
}
- return compare_retcode_with_feature_support(retcode, "http://tizen.org/feature/network.bluetooth");
+ ret = compare_retcode_with_feature_support(retcode, "http://tizen.org/feature/network.bluetooth");
+ assert_eq(ret, 0);
+
+ return 0;
}
{
bool value;
int retcode;
+ int ret;
runtime_info_key_e key = RUNTIME_INFO_KEY_BLUETOOTH_TETHERING_ENABLED;
retcode = runtime_info_get_value_bool(key, &value);
- return compare_retcode_with_feature_support(retcode, "http://tizen.org/feature/network.tethering.bluetooth");
+ ret = compare_retcode_with_feature_support(retcode, "http://tizen.org/feature/network.tethering.bluetooth");
+ assert_eq(ret, 0);
+
+ return 0;
}
int utc_runtime_info_BLUETOOTH_TETHERING_ENABLED_p2(void)
{
int retcode;
+ int ret;
runtime_info_key_e key = RUNTIME_INFO_KEY_BLUETOOTH_TETHERING_ENABLED;
retcode = runtime_info_set_changed_cb(key, runtime_info_changed, NULL);
if (retcode == RUNTIME_INFO_ERROR_NONE)
runtime_info_unset_changed_cb(key);
- return compare_retcode_with_feature_support(retcode, "http://tizen.org/feature/network.tethering.bluetooth");
+ ret = compare_retcode_with_feature_support(retcode, "http://tizen.org/feature/network.tethering.bluetooth");
+ assert_eq(ret, 0);
+
+ return 0;
}
{
bool value;
int retcode;
+ int ret;
runtime_info_key_e key = RUNTIME_INFO_KEY_DATA_ROAMING_ENABLED;
retcode = runtime_info_get_value_bool(key, &value);
- return compare_retcode_with_feature_support(retcode, "http://tizen.org/feature/network.telephony");
+ ret = compare_retcode_with_feature_support(retcode, "http://tizen.org/feature/network.telephony");
+ assert_eq(ret, 0);
+
+ return 0;
}
int utc_runtime_info_DATA_ROAMING_ENABLED_p2(void)
{
int retcode;
+ int ret;
runtime_info_key_e key = RUNTIME_INFO_KEY_DATA_ROAMING_ENABLED;
retcode = runtime_info_set_changed_cb(key, runtime_info_changed, NULL);
if (retcode == RUNTIME_INFO_ERROR_NONE)
runtime_info_unset_changed_cb(key);
- return compare_retcode_with_feature_support(retcode, "http://tizen.org/feature/network.telephony");
+ ret = compare_retcode_with_feature_support(retcode, "http://tizen.org/feature/network.telephony");
+ assert_eq(ret, 0);
+
+ return 0;
}
int utc_runtime_info_GPS_STATUS_p2(void)
{
int retcode;
+ int ret;
runtime_info_key_e key = RUNTIME_INFO_KEY_GPS_STATUS;
retcode = runtime_info_set_changed_cb(key, runtime_info_changed, NULL);
return 0;
}
- return compare_retcode_with_feature_support(retcode, "http://tizen.org/feature/location.gps");
+ ret = compare_retcode_with_feature_support(retcode, "http://tizen.org/feature/location.gps");
+ assert_eq(ret, 0);
+
+ return 0;
}
{
bool value;
int retcode;
+ int ret;
runtime_info_key_e key = RUNTIME_INFO_KEY_PACKET_DATA_ENABLED;
retcode = runtime_info_get_value_bool(key, &value);
- return compare_retcode_with_feature_support(retcode, "http://tizen.org/feature/network.telephony");
+ ret = compare_retcode_with_feature_support(retcode, "http://tizen.org/feature/network.telephony");
+ assert_eq(ret, 0);
+
+ return 0;
}
int utc_runtime_info_PACKET_DATA_ENABLED_p2(void)
{
int retcode;
+ int ret;
runtime_info_key_e key = RUNTIME_INFO_KEY_PACKET_DATA_ENABLED;
retcode = runtime_info_set_changed_cb(key, runtime_info_changed, NULL);
if (retcode == RUNTIME_INFO_ERROR_NONE)
runtime_info_unset_changed_cb(key);
- return compare_retcode_with_feature_support(retcode, "http://tizen.org/feature/network.telephony");
+ ret = compare_retcode_with_feature_support(retcode, "http://tizen.org/feature/network.telephony");
+ assert_eq(ret, 0);
+
+ return 0;
}
{
bool value;
int retcode;
+ int ret;
runtime_info_key_e key = RUNTIME_INFO_KEY_AUTO_ROTATION_ENABLED;
retcode = runtime_info_get_value_bool(key, &value);
return 0;
}
- return compare_retcode_with_feature_support(retcode, "http://tizen.org/feature/screen.auto_rotation");
+ ret = compare_retcode_with_feature_support(retcode, "http://tizen.org/feature/screen.auto_rotation");
+ assert_eq(ret, 0);
+
+ return 0;
}
int utc_runtime_info_AUTO_ROTATION_ENABLED_p2(void)
{
int retcode;
+ int ret;
runtime_info_key_e key = RUNTIME_INFO_KEY_AUTO_ROTATION_ENABLED;
retcode = runtime_info_set_changed_cb(key, runtime_info_changed, NULL);
return 0;
}
- return compare_retcode_with_feature_support(retcode, "http://tizen.org/feature/screen.auto_rotation");
+ ret = compare_retcode_with_feature_support(retcode, "http://tizen.org/feature/screen.auto_rotation");
+ assert_eq(ret, 0);
+
+ return 0;
}
{
bool value;
int retcode;
+ int ret;
runtime_info_key_e key = RUNTIME_INFO_KEY_USB_TETHERING_ENABLED;
retcode = runtime_info_get_value_bool(key, &value);
- return compare_retcode_with_feature_support(retcode, "http://tizen.org/feature/network.tethering.usb");
+ ret = compare_retcode_with_feature_support(retcode, "http://tizen.org/feature/network.tethering.usb");
+ assert_eq(ret, 0);
+
+ return 0;
}
int utc_runtime_info_USB_TETHERING_ENABLED_p2(void)
{
int retcode;
+ int ret;
runtime_info_key_e key = RUNTIME_INFO_KEY_USB_TETHERING_ENABLED;
retcode = runtime_info_set_changed_cb(key, runtime_info_changed, NULL);
if (retcode == RUNTIME_INFO_ERROR_NONE)
runtime_info_unset_changed_cb(key);
- return compare_retcode_with_feature_support(retcode, "http://tizen.org/feature/network.tethering.usb");
+ ret = compare_retcode_with_feature_support(retcode, "http://tizen.org/feature/network.tethering.usb");
+ assert_eq(ret, 0);
+
+ return 0;
}
{
bool value;
int retcode;
+ int ret;
runtime_info_key_e key = RUNTIME_INFO_KEY_VIBRATION_ENABLED;
retcode = runtime_info_get_value_bool(key, &value);
- return compare_retcode_with_feature_support(retcode, "http://tizen.org/feature/feedback.vibration");
+ ret = compare_retcode_with_feature_support(retcode, "http://tizen.org/feature/feedback.vibration");
+ assert_eq(ret, 0);
+
+ return 0;
}
int utc_runtime_info_VIBRATION_ENABLED_p2(void)
{
int retcode;
+ int ret;
runtime_info_key_e key = RUNTIME_INFO_KEY_VIBRATION_ENABLED;
retcode = runtime_info_set_changed_cb(key, runtime_info_changed, NULL);
if (retcode == RUNTIME_INFO_ERROR_NONE)
runtime_info_unset_changed_cb(key);
- return compare_retcode_with_feature_support(retcode, "http://tizen.org/feature/feedback.vibration");
+ ret = compare_retcode_with_feature_support(retcode, "http://tizen.org/feature/feedback.vibration");
+ assert_eq(ret, 0);
+
+ return 0;
}
{
bool value;
int retcode;
+ int ret;
runtime_info_key_e key = RUNTIME_INFO_KEY_WIFI_HOTSPOT_ENABLED;
retcode = runtime_info_get_value_bool(key, &value);
- return compare_retcode_with_feature_support(retcode, "http://tizen.org/feature/network.tethering.wifi");
+ ret = compare_retcode_with_feature_support(retcode, "http://tizen.org/feature/network.tethering.wifi");
+ assert_eq(ret, 0);
+
+ return 0;
}
int utc_runtime_info_WIFI_HOTSPOT_ENABLED_p2(void)
{
int retcode;
+ int ret;
runtime_info_key_e key = RUNTIME_INFO_KEY_WIFI_HOTSPOT_ENABLED;
retcode = runtime_info_set_changed_cb(key, runtime_info_changed, NULL);
if (retcode == RUNTIME_INFO_ERROR_NONE)
runtime_info_unset_changed_cb(key);
- return compare_retcode_with_feature_support(retcode, "http://tizen.org/feature/network.tethering.wifi");
+ ret = compare_retcode_with_feature_support(retcode, "http://tizen.org/feature/network.tethering.wifi");
+ assert_eq(ret, 0);
+
+ return 0;
}
{
bool value;
int retcode;
+ int ret;
runtime_info_key_e key = RUNTIME_INFO_KEY_CHARGER_CONNECTED;
retcode = runtime_info_get_value_bool(key, &value);
return 0;
}
- return compare_retcode_with_feature_support(retcode, "http://tizen.org/feature/battery");
+ ret = compare_retcode_with_feature_support(retcode, "http://tizen.org/feature/battery");
+ assert_eq(ret, 0);
+
+ return 0;
}
int utc_runtime_info_CHARGER_CONNECTED_p2(void)
{
int retcode;
+ int ret;
runtime_info_key_e key = RUNTIME_INFO_KEY_CHARGER_CONNECTED;
retcode = runtime_info_set_changed_cb(key, runtime_info_changed, NULL);
return 0;
}
- return compare_retcode_with_feature_support(retcode, "http://tizen.org/feature/battery");
+ ret = compare_retcode_with_feature_support(retcode, "http://tizen.org/feature/battery");
+ assert_eq(ret, 0);
+
+ return 0;
}