+ res = mmi_client_set_result_cb(input_event_type, voice_touch_callback, NULL);
+ EXPECT_EQ(res, MMI_ERROR_NONE);
+
+ mmi_handle mmi_client = mmi_client_get();
+ GList* iter = NULL;
+ result_cb_s *data = NULL;
+
+ iter = g_list_first(mmi_client->result_cb_list);
+ if(NULL != iter) {
+ data = (result_cb_s*)iter->data;
+ EXPECT_NE(data->result_callback, nullptr);
+ EXPECT_EQ(data->result_callback, voice_touch_callback);
+ EXPECT_EQ(data->input_event_type, MMI_VOICE_TOUCH);
+ }
+ else {
+ EXPECT_TRUE(false);
+ }
+
+ mmi_shutdown();
+}
+
+TEST_F(MMIMainTest, MMIClientSetResultCbFail)
+{
+ int res = mmi_init();
+ mmi_input_event_type_e input_event_type = MMI_VOICE_TOUCH;
+