зеркало из https://github.com/Azure/azure-umqtt-c.git
match function decl and fix leak
This commit is contained in:
Родитель
6e09740312
Коммит
4b5d8dc540
|
@ -48,7 +48,7 @@ typedef void(*ON_MQTT_ERROR_CALLBACK)(MQTT_CLIENT_HANDLE handle, MQTT_CLIENT_EVE
|
|||
typedef void(*ON_MQTT_MESSAGE_RECV_CALLBACK)(MQTT_MESSAGE_HANDLE msgHandle, void* callbackCtx);
|
||||
typedef void(*ON_MQTT_DISCONNECTED_CALLBACK)(void* callbackCtx);
|
||||
|
||||
MOCKABLE_FUNCTION(, void, mqtt_client_clear_xio, MQTT_CLIENT_HANDLE, mqtt_client);
|
||||
MOCKABLE_FUNCTION(, void, mqtt_client_clear_xio, MQTT_CLIENT_HANDLE, handle);
|
||||
MOCKABLE_FUNCTION(, MQTT_CLIENT_HANDLE, mqtt_client_init, ON_MQTT_MESSAGE_RECV_CALLBACK, msgRecv, ON_MQTT_OPERATION_CALLBACK, opCallback, void*, opCallbackCtx, ON_MQTT_ERROR_CALLBACK, onErrorCallBack, void*, errorCBCtx);
|
||||
MOCKABLE_FUNCTION(, void, mqtt_client_deinit, MQTT_CLIENT_HANDLE, handle);
|
||||
|
||||
|
|
|
@ -833,6 +833,9 @@ TEST_FUNCTION(mqtt_client_clear_xio_succeeds)
|
|||
|
||||
// assert
|
||||
ASSERT_ARE_EQUAL(char_ptr, umock_c_get_expected_calls(), umock_c_get_actual_calls());
|
||||
|
||||
// cleanup
|
||||
mqtt_client_deinit(mqttHandle);
|
||||
}
|
||||
|
||||
TEST_FUNCTION(mqtt_client_clear_xio_after_connect_and_do_work_succeeds)
|
||||
|
|
Загрузка…
Ссылка в новой задаче