Following a mmi_client_set_result_cb's error type is more clear than NOT_SUPPORTED error type.
So, changed it's return value following it on source code and test, too.
Change-Id: Id66f763de1904034ed321e22cbe52ad454a9c9df
ret = mmi_client_set_result_cb(input_event_type, callback, user_data);
if(ret != MMI_ERROR_NONE) {
LOGE("Fail to set result cb(%d)", ret);
- return MMI_ERROR_NOT_SUPPORTED;
+ return ret;
}
return MMI_ERROR_NONE;
EXPECT_EQ(res, MMI_ERROR_NONE);
res = mmi_set_result_cb(input_event_type, NULL, NULL);
- EXPECT_EQ(res, MMI_ERROR_NOT_SUPPORTED);
+ EXPECT_EQ(res, MMI_ERROR_INVALID_PARAMETER);
mmi_shutdown();
}