Lines Matching refs:command
554 MQTTAgentCommand_t command = { 0 }; in test_MQTTAgent_ResumeSession_session_present_no_publish_found() local
560 mqttAgentContext.pPendingAcks[ 0 ].pOriginalCommand = &command; in test_MQTTAgent_ResumeSession_session_present_no_publish_found()
626 MQTTAgentCommand_t command = { 0 }; in test_MQTTAgent_ResumeSession_failed_publish() local
631 command.pArgs = &args; in test_MQTTAgent_ResumeSession_failed_publish()
633 mqttAgentContext.pPendingAcks[ 0 ].pOriginalCommand = &command; in test_MQTTAgent_ResumeSession_failed_publish()
646 MQTTAgentCommand_t command = { 0 }; in test_MQTTAgent_ResumeSession_publish_resend_success() local
652 command.pArgs = &args; in test_MQTTAgent_ResumeSession_publish_resend_success()
655 ackInfo.pOriginalCommand = &command; in test_MQTTAgent_ResumeSession_publish_resend_success()
671 MQTTAgentCommand_t command = { 0 }; in test_MQTTAgent_ResumeSession_no_session_present() local
675 command.pCommandCompleteCallback = NULL; in test_MQTTAgent_ResumeSession_no_session_present()
677 mqttAgentContext.pPendingAcks[ 1 ].pOriginalCommand = &command; in test_MQTTAgent_ResumeSession_no_session_present()
684 command.pCommandCompleteCallback = stubCompletionCallback; in test_MQTTAgent_ResumeSession_no_session_present()
686 mqttAgentContext.pPendingAcks[ 1 ].pOriginalCommand = &command; in test_MQTTAgent_ResumeSession_no_session_present()
719 MQTTAgentCommand_t command = { 0 }; in test_MQTTAgent_Ping_Command_Send_Failure() local
723 pCommandToReturn = &command; in test_MQTTAgent_Ping_Command_Send_Failure()
730 TEST_ASSERT_EQUAL( PING, command.commandType ); in test_MQTTAgent_Ping_Command_Send_Failure()
743 MQTTAgentCommand_t command = { 0 }; in test_MQTTAgent_Subscribe_No_Ack_Space() local
749 pCommandToReturn = &command; in test_MQTTAgent_Subscribe_No_Ack_Space()
771 MQTTAgentCommand_t command = { 0 }; in test_MQTTAgent_Subscribe_Invalid_Parameters() local
776 pCommandToReturn = &command; in test_MQTTAgent_Subscribe_Invalid_Parameters()
806 MQTTAgentCommand_t command = { 0 }; in test_MQTTAgent_Subscribe_success() local
811 pCommandToReturn = &command; in test_MQTTAgent_Subscribe_success()
818 TEST_ASSERT_EQUAL_PTR( &command, globalMessageContext.pSentCommand ); in test_MQTTAgent_Subscribe_success()
819 TEST_ASSERT_EQUAL( SUBSCRIBE, command.commandType ); in test_MQTTAgent_Subscribe_success()
820 TEST_ASSERT_EQUAL_PTR( &subscribeArgs, command.pArgs ); in test_MQTTAgent_Subscribe_success()
821 TEST_ASSERT_NULL( command.pCommandCompleteCallback ); in test_MQTTAgent_Subscribe_success()
832 MQTTAgentCommand_t command = { 0 }; in test_MQTTAgent_Unsubscribe_Invalid_Parameters() local
837 pCommandToReturn = &command; in test_MQTTAgent_Unsubscribe_Invalid_Parameters()
867 MQTTAgentCommand_t command = { 0 }; in test_MQTTAgent_Unsubscribe_success() local
872 pCommandToReturn = &command; in test_MQTTAgent_Unsubscribe_success()
880 TEST_ASSERT_EQUAL_PTR( &command, globalMessageContext.pSentCommand ); in test_MQTTAgent_Unsubscribe_success()
881 TEST_ASSERT_EQUAL( UNSUBSCRIBE, command.commandType ); in test_MQTTAgent_Unsubscribe_success()
882 TEST_ASSERT_EQUAL_PTR( &subscribeArgs, command.pArgs ); in test_MQTTAgent_Unsubscribe_success()
883 TEST_ASSERT_EQUAL_PTR( stubCompletionCallback, command.pCommandCompleteCallback ); in test_MQTTAgent_Unsubscribe_success()
896 MQTTAgentCommand_t command = { 0 }; in test_MQTTAgent_Publish_Invalid_Parameters() local
900 pCommandToReturn = &command; in test_MQTTAgent_Publish_Invalid_Parameters()
938 MQTTAgentCommand_t command = { 0 }; in test_MQTTAgent_Publish_No_Ack_Space() local
943 pCommandToReturn = &command; in test_MQTTAgent_Publish_No_Ack_Space()
977 MQTTAgentCommand_t command = { 0 }; in test_MQTTAgent_Publish_success() local
981 pCommandToReturn = &command; in test_MQTTAgent_Publish_success()
997 TEST_ASSERT_EQUAL_PTR( &command, globalMessageContext.pSentCommand ); in test_MQTTAgent_Publish_success()
998 TEST_ASSERT_EQUAL( PUBLISH, command.commandType ); in test_MQTTAgent_Publish_success()
999 TEST_ASSERT_EQUAL_PTR( &publishInfo, command.pArgs ); in test_MQTTAgent_Publish_success()
1000 TEST_ASSERT_EQUAL_PTR( stubCompletionCallback, command.pCommandCompleteCallback ); in test_MQTTAgent_Publish_success()
1013 MQTTAgentCommand_t command = { 0 }; in test_MQTTAgent_Connect_Invalid_Parameters() local
1018 pCommandToReturn = &command; in test_MQTTAgent_Connect_Invalid_Parameters()
1046 MQTTAgentCommand_t command = { 0 }; in test_MQTTAgent_Connect_success() local
1051 pCommandToReturn = &command; in test_MQTTAgent_Connect_success()
1058 TEST_ASSERT_EQUAL_PTR( &command, globalMessageContext.pSentCommand ); in test_MQTTAgent_Connect_success()
1059 TEST_ASSERT_EQUAL( CONNECT, command.commandType ); in test_MQTTAgent_Connect_success()
1060 TEST_ASSERT_EQUAL_PTR( &connectArgs, command.pArgs ); in test_MQTTAgent_Connect_success()
1061 TEST_ASSERT_EQUAL_PTR( stubCompletionCallback, command.pCommandCompleteCallback ); in test_MQTTAgent_Connect_success()
1083 MQTTAgentCommand_t command = { 0 }; in test_MQTTAgent_ProcessLoop_success() local
1086 pCommandToReturn = &command; in test_MQTTAgent_ProcessLoop_success()
1091 TEST_ASSERT_EQUAL_PTR( &command, globalMessageContext.pSentCommand ); in test_MQTTAgent_ProcessLoop_success()
1092 TEST_ASSERT_EQUAL( PROCESSLOOP, command.commandType ); in test_MQTTAgent_ProcessLoop_success()
1093 TEST_ASSERT_NULL( command.pArgs ); in test_MQTTAgent_ProcessLoop_success()
1094 TEST_ASSERT_NULL( command.pCommandCompleteCallback ); in test_MQTTAgent_ProcessLoop_success()
1116 MQTTAgentCommand_t command = { 0 }; in test_MQTTAgent_Disconnect_success() local
1119 pCommandToReturn = &command; in test_MQTTAgent_Disconnect_success()
1125 TEST_ASSERT_EQUAL_PTR( &command, globalMessageContext.pSentCommand ); in test_MQTTAgent_Disconnect_success()
1126 TEST_ASSERT_EQUAL( DISCONNECT, command.commandType ); in test_MQTTAgent_Disconnect_success()
1127 TEST_ASSERT_NULL( command.pArgs ); in test_MQTTAgent_Disconnect_success()
1128 TEST_ASSERT_EQUAL_PTR( stubCompletionCallback, command.pCommandCompleteCallback ); in test_MQTTAgent_Disconnect_success()
1150 MQTTAgentCommand_t command = { 0 }; in test_MQTTAgent_Ping_success() local
1153 pCommandToReturn = &command; in test_MQTTAgent_Ping_success()
1159 TEST_ASSERT_EQUAL_PTR( &command, globalMessageContext.pSentCommand ); in test_MQTTAgent_Ping_success()
1160 TEST_ASSERT_EQUAL( PING, command.commandType ); in test_MQTTAgent_Ping_success()
1161 TEST_ASSERT_NULL( command.pArgs ); in test_MQTTAgent_Ping_success()
1162 TEST_ASSERT_EQUAL_PTR( stubCompletionCallback, command.pCommandCompleteCallback ); in test_MQTTAgent_Ping_success()
1184 MQTTAgentCommand_t command = { 0 }; in test_MQTTAgent_Terminate_success() local
1187 pCommandToReturn = &command; in test_MQTTAgent_Terminate_success()
1193 TEST_ASSERT_EQUAL_PTR( &command, globalMessageContext.pSentCommand ); in test_MQTTAgent_Terminate_success()
1194 TEST_ASSERT_EQUAL( TERMINATE, command.commandType ); in test_MQTTAgent_Terminate_success()
1195 TEST_ASSERT_NULL( command.pArgs ); in test_MQTTAgent_Terminate_success()
1196 TEST_ASSERT_EQUAL_PTR( stubCompletionCallback, command.pCommandCompleteCallback ); in test_MQTTAgent_Terminate_success()
1398 MQTTAgentCommand_t command = { 0 }; in test_MQTTAgent_CommandLoop_add_acknowledgment_invalid_id() local
1412 command.commandType = PUBLISH; in test_MQTTAgent_CommandLoop_add_acknowledgment_invalid_id()
1413 command.pCommandCompleteCallback = stubCompletionCallback; in test_MQTTAgent_CommandLoop_add_acknowledgment_invalid_id()
1414 command.pCmdContext = NULL; in test_MQTTAgent_CommandLoop_add_acknowledgment_invalid_id()
1415 command.pArgs = NULL; in test_MQTTAgent_CommandLoop_add_acknowledgment_invalid_id()
1417 globalMessageContext.pSentCommand = &command; in test_MQTTAgent_CommandLoop_add_acknowledgment_invalid_id()
1438 MQTTAgentCommand_t command = { 0 }, commandToSend = { 0 }; in test_MQTTAgent_CommandLoop_with_eventCallback() local
1492 command.pCommandCompleteCallback = stubCompletionCallback; in test_MQTTAgent_CommandLoop_with_eventCallback()
1493 mqttAgentContext.pPendingAcks[ 0 ].pOriginalCommand = &command; in test_MQTTAgent_CommandLoop_with_eventCallback()
1526 command.pCommandCompleteCallback = stubCompletionCallback; in test_MQTTAgent_CommandLoop_with_eventCallback()
1527 mqttAgentContext.pPendingAcks[ 0 ].pOriginalCommand = &command; in test_MQTTAgent_CommandLoop_with_eventCallback()
1558 command.pCommandCompleteCallback = NULL; in test_MQTTAgent_CommandLoop_with_eventCallback()
1559 mqttAgentContext.pPendingAcks[ 0 ].pOriginalCommand = &command; in test_MQTTAgent_CommandLoop_with_eventCallback()
1680 MQTTAgentCommand_t command = { 0 }; in test_MQTTAgent_CancelAll() local
1685 command.pCommandCompleteCallback = stubCompletionCallback; in test_MQTTAgent_CancelAll()
1686 command.pCmdContext = &commandContext; in test_MQTTAgent_CancelAll()
1687 globalMessageContext.pSentCommand = &command; in test_MQTTAgent_CancelAll()
1690 mqttAgentContext.pPendingAcks[ 0 ].pOriginalCommand = &command; in test_MQTTAgent_CancelAll()
1708 TEST_ASSERT_EQUAL( MQTTRecvFailed, command.pCmdContext->returnStatus ); in test_MQTTAgent_CancelAll()
1722 command.pCommandCompleteCallback = NULL; in test_MQTTAgent_CancelAll()
1723 mqttAgentContext.agentInterface.pMsgCtx->pSentCommand = &command; in test_MQTTAgent_CancelAll()
1725 mqttAgentContext.pPendingAcks[ 0 ].pOriginalCommand = &command; in test_MQTTAgent_CancelAll()