Lines Matching refs:xBindAddress

542     struct freertos_sockaddr xBindAddress;  in test_vSocketBind_CatchAssert1()  local
546 catch_assert( vSocketBind( NULL, &xBindAddress, uxAddressLength, xInternal ) ); in test_vSocketBind_CatchAssert1()
556 struct freertos_sockaddr xBindAddress; in test_vSocketBind_CatchAssert2() local
560 … catch_assert( vSocketBind( FREERTOS_INVALID_SOCKET, &xBindAddress, uxAddressLength, xInternal ) ); in test_vSocketBind_CatchAssert2()
570 struct freertos_sockaddr xBindAddress; in test_vSocketBind_TCP() local
574 memset( &xBindAddress, 0xFC, sizeof( xBindAddress ) ); in test_vSocketBind_TCP()
581 listSET_LIST_ITEM_VALUE_Expect( &( xSocket.xBoundSocketListItem ), xBindAddress.sin_port ); in test_vSocketBind_TCP()
586 xReturn = vSocketBind( &xSocket, &xBindAddress, uxAddressLength, xInternal ); in test_vSocketBind_TCP()
598 struct freertos_sockaddr xBindAddress; in test_vSocketBind_TCPNULLAddress() local
602 memset( &xBindAddress, 0xFC, sizeof( xBindAddress ) ); in test_vSocketBind_TCPNULLAddress()
620 struct freertos_sockaddr xBindAddress; in test_vSocketBind_RNGFails() local
624 memset( &xBindAddress, 0xFC, sizeof( xBindAddress ) ); in test_vSocketBind_RNGFails()
627 xBindAddress.sin_port = 0; in test_vSocketBind_RNGFails()
633 xReturn = vSocketBind( &xSocket, &xBindAddress, uxAddressLength, xInternal ); in test_vSocketBind_RNGFails()
645 struct freertos_sockaddr xBindAddress; in test_vSocketBind_NonZeroPortNumber() local
649 memset( &xBindAddress, 0xFC, sizeof( xBindAddress ) ); in test_vSocketBind_NonZeroPortNumber()
652 xBindAddress.sin_port = 0x12; in test_vSocketBind_NonZeroPortNumber()
658 listSET_LIST_ITEM_VALUE_Expect( &( xSocket.xBoundSocketListItem ), xBindAddress.sin_port ); in test_vSocketBind_NonZeroPortNumber()
663 xReturn = vSocketBind( &xSocket, &xBindAddress, uxAddressLength, xInternal ); in test_vSocketBind_NonZeroPortNumber()
675 struct freertos_sockaddr xBindAddress; in test_vSocketBind_GotNULLItem() local
681 memset( &xBindAddress, 0xFC, sizeof( xBindAddress ) ); in test_vSocketBind_GotNULLItem()
694 listGET_LIST_ITEM_VALUE_ExpectAndReturn( xListStart, xBindAddress.sin_port ); in test_vSocketBind_GotNULLItem()
696 listSET_LIST_ITEM_VALUE_Expect( &( xSocket.xBoundSocketListItem ), xBindAddress.sin_port ); in test_vSocketBind_GotNULLItem()
701 xReturn = vSocketBind( &xSocket, &xBindAddress, uxAddressLength, xInternal ); in test_vSocketBind_GotNULLItem()
704 TEST_ASSERT_EQUAL( FreeRTOS_ntohs( xBindAddress.sin_port ), xSocket.usLocalPort ); in test_vSocketBind_GotNULLItem()
714 struct freertos_sockaddr xBindAddress; in test_vSocketBind_GotANonNULLValue() local
720 memset( &xBindAddress, 0xFC, sizeof( xBindAddress ) ); in test_vSocketBind_GotANonNULLValue()
733 listGET_LIST_ITEM_VALUE_ExpectAndReturn( xListStart, xBindAddress.sin_port ); in test_vSocketBind_GotANonNULLValue()
735 xReturn = vSocketBind( &xSocket, &xBindAddress, uxAddressLength, xInternal ); in test_vSocketBind_GotANonNULLValue()
748 struct freertos_sockaddr xBindAddress; in test_vSocketBind_TCPGotAProperValue() local
754 memset( &xBindAddress, 0xFC, sizeof( xBindAddress ) ); in test_vSocketBind_TCPGotAProperValue()
759 listSET_LIST_ITEM_VALUE_Expect( &( xSocket.xBoundSocketListItem ), xBindAddress.sin_port ); in test_vSocketBind_TCPGotAProperValue()
764 xReturn = vSocketBind( &xSocket, &xBindAddress, uxAddressLength, xInternal ); in test_vSocketBind_TCPGotAProperValue()
767 TEST_ASSERT_EQUAL( FreeRTOS_ntohs( xBindAddress.sin_port ), xSocket.usLocalPort ); in test_vSocketBind_TCPGotAProperValue()
777 struct freertos_sockaddr xBindAddress; in test_vSocketBind_TCPGotAProperValuePortZero() local
784 memset( &xBindAddress, 0xFC, sizeof( xBindAddress ) ); in test_vSocketBind_TCPGotAProperValuePortZero()
787 xBindAddress.sin_port = 0; in test_vSocketBind_TCPGotAProperValuePortZero()
802 xReturn = vSocketBind( &xSocket, &xBindAddress, uxAddressLength, xInternal ); in test_vSocketBind_TCPGotAProperValuePortZero()
805 TEST_ASSERT_EQUAL( FreeRTOS_ntohs( xBindAddress.sin_port ), xSocket.usLocalPort ); in test_vSocketBind_TCPGotAProperValuePortZero()