// File: /workspace/github_c_makefile_star2_O0/connycommy[P]atCmdDevice/src/test/TestProductionCode.c
// Function: test_modem_SocketGetRecv
void test_modem_SocketGetRecv(){
    char bufferRecv[CM_BUFFER_LEN_DEF] ;


    cmError_t retValue = CM_FAIL;
    cellModemConfig_t config =CELLMODEMCONFIG_INITIALIZER;
    socketData_t configSocket =SOCKETDATA_INITIALIZER;
    configSocket.msgRecv = bufferRecv;
    configSocket.buffRcvLen = CM_BUFFER_LEN_DEF;
   MockResponseExpected = CM_CMD_MOCK_QIRD_RESPONSE;

    configSocket.connectId = config.connectId = 3;
    retValue = cellModem_SocketGetRecv(&cmData,&configSocket);
    TEST_ASSERT_EQUAL_INT32(CM_OK,retValue);
    TEST_ASSERT_EQUAL_INT32(6, configSocket.msgLen);
    TEST_ASSERT_EQUAL_STRING("julian",configSocket.msgRecv);

  
   // memset(bufferRecv,0,sizeof(bufferRecv));
    MockResponseExpected = CM_CMD_MOCK_QIRD_RESPONSE_LONG;

    configSocket.connectId = config.connectId = 11;
    
    retValue = cellModem_SocketGetRecv(&cmData,&configSocket);
    TEST_ASSERT_EQUAL_INT32(CM_OK,retValue);
    TEST_ASSERT_EQUAL_INT32(112, configSocket.msgLen);
    TEST_ASSERT_EQUAL_STRING("7EA036610330A166E6E7006128A109060760857405080102A203020101A305A10302010DBE0F040D0800065F04001802201388FA0074EA7E",configSocket.msgRecv);

    MockResponseExpected = CM_CMD_MOCK_QIRD_RESPONSE_EMPTY_BUFF;

    configSocket.connectId = config.connectId = 3;
    retValue = cellModem_SocketGetRecv(&cmData,&configSocket);
    TEST_ASSERT_EQUAL_INT32(CM_OK,retValue);
    TEST_ASSERT_EQUAL_INT32(0, configSocket.msgLen);
    //TEST_ASSERT_EQUAL_STRING(" ",configSocket.msgRecv);

    MockResponseExpected = CM_CMD_MOCK_QIRD_RESPONSE_ECHO;
    configSocket.connectId = config.connectId = 3;
    retValue = cellModem_SocketGetRecv(&cmData,&configSocket);
    TEST_ASSERT_EQUAL_INT32(CM_OK,retValue);
    TEST_ASSERT_EQUAL_INT32(6, configSocket.msgLen);
    TEST_ASSERT_EQUAL_STRING("julian",configSocket.msgRecv);

    MockResponseExpected = CM_CMD_MOCK_QIRD_RESPONSE_STR;
    configSocket.connectId = config.connectId = 3;
    retValue = cellModem_SocketGetRecv(&cmData,&configSocket);
    TEST_ASSERT_EQUAL_INT32(CM_OK,retValue);
    TEST_ASSERT_EQUAL_INT32(246, configSocket.msgLen);
    TEST_ASSERT_EQUAL_STRING("Buenas a todos! Estaba chusmeando el proyecto. Los navigation devices esten teniendo un conjunto de posiciones, que se espera hacer con eso? Ponemos todas las posiciones en el mapa, hacemos un calculo en el front, que representan esas posiciones?",configSocket.msgRecv);
    
  
   }

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x4b0, %rsp            # imm = 0x4B0
movl $0xffffffff, -0x404(%rbp) # imm = 0xFFFFFFFF
leaq -0x440(%rbp), %rdi
xorl %esi, %esi
movl $0x38, %edx
callq 0x10a0
leaq -0x4b0(%rbp), %rdi
xorl %esi, %esi
movl $0x70, %edx
callq 0x10a0
leaq -0x400(%rbp), %rax
movq %rax, -0x480(%rbp)
movq $0x400, -0x470(%rbp) # imm = 0x400
leaq 0x5272(%rip), %rax      # 0xaf6d
movq %rax, 0x948e(%rip)      # 0xf190
movl $0x3, -0x428(%rbp)
movl $0x3, -0x464(%rbp)
leaq 0x9403(%rip), %rdi      # 0xf120
leaq -0x4b0(%rbp), %rsi
callq 0x3790
movl %eax, -0x404(%rbp)
movslq -0x404(%rbp), %rsi
xorl %eax, %eax
movl %eax, %edx
movl $0x1c6, %ecx            # imm = 0x1C6
movl $0x14, %r8d
movq %rdx, %rdi
callq 0x7460
movq -0x478(%rbp), %rax
movslq %eax, %rsi
movl $0x6, %edi
xorl %eax, %eax
movl %eax, %edx
movl $0x1c7, %ecx            # imm = 0x1C7
movl $0x14, %r8d
callq 0x7460
movq -0x480(%rbp), %rsi
leaq 0x50cd(%rip), %rdi      # 0xae4b
xorl %eax, %eax
movl %eax, %edx
movl $0x1c8, %ecx            # imm = 0x1C8
callq 0x8680
leaq 0x50bf(%rip), %rax      # 0xae52
movq %rax, 0x93f6(%rip)      # 0xf190
movl $0xb, -0x428(%rbp)
movl $0xb, -0x464(%rbp)
leaq 0x936b(%rip), %rdi      # 0xf120
leaq -0x4b0(%rbp), %rsi
callq 0x3790
movl %eax, -0x404(%rbp)
movslq -0x404(%rbp), %rsi
xorl %eax, %eax
movl %eax, %edx
movl $0x1d1, %ecx            # imm = 0x1D1
movl $0x14, %r8d
movq %rdx, %rdi
callq 0x7460
movq -0x478(%rbp), %rax
movslq %eax, %rsi
movl $0x70, %edi
xorl %eax, %eax
movl %eax, %edx
movl $0x1d2, %ecx            # imm = 0x1D2
movl $0x14, %r8d
callq 0x7460
movq -0x480(%rbp), %rsi
leaq 0x50c3(%rip), %rdi      # 0xaed9
xorl %eax, %eax
movl %eax, %edx
movl $0x1d3, %ecx            # imm = 0x1D3
callq 0x8680
leaq 0x511f(%rip), %rax      # 0xaf4a
movq %rax, 0x935e(%rip)      # 0xf190
movl $0x3, -0x428(%rbp)
movl $0x3, -0x464(%rbp)
leaq 0x92d3(%rip), %rdi      # 0xf120
leaq -0x4b0(%rbp), %rsi
callq 0x3790
movl %eax, -0x404(%rbp)
movslq -0x404(%rbp), %rsi
xorl %eax, %eax
movl %eax, %edx
movl $0x1d9, %ecx            # imm = 0x1D9
movl $0x14, %r8d
movq %rdx, %rdi
callq 0x7460
movq -0x478(%rbp), %rax
movslq %eax, %rsi
xorl %eax, %eax
movl %eax, %edx
movl $0x1da, %ecx            # imm = 0x1DA
movl $0x14, %r8d
movq %rdx, %rdi
callq 0x7460
leaq 0x50b8(%rip), %rax      # 0xaf5d
movq %rax, 0x92e4(%rip)      # 0xf190
movl $0x3, -0x428(%rbp)
movl $0x3, -0x464(%rbp)
leaq 0x9259(%rip), %rdi      # 0xf120
leaq -0x4b0(%rbp), %rsi
callq 0x3790
movl %eax, -0x404(%rbp)
movslq -0x404(%rbp), %rsi
xorl %eax, %eax
movl %eax, %edx
movl $0x1e0, %ecx            # imm = 0x1E0
movl $0x14, %r8d
movq %rdx, %rdi
callq 0x7460
movq -0x478(%rbp), %rax
movslq %eax, %rsi
movl $0x6, %edi
xorl %eax, %eax
movl %eax, %edx
movl $0x1e1, %ecx            # imm = 0x1E1
movl $0x14, %r8d
callq 0x7460
movq -0x480(%rbp), %rsi
leaq 0x4f23(%rip), %rdi      # 0xae4b
xorl %eax, %eax
movl %eax, %edx
movl $0x1e2, %ecx            # imm = 0x1E2
callq 0x8680
leaq 0x504b(%rip), %rax      # 0xaf88
movq %rax, 0x924c(%rip)      # 0xf190
movl $0x3, -0x428(%rbp)
movl $0x3, -0x464(%rbp)
leaq 0x91c1(%rip), %rdi      # 0xf120
leaq -0x4b0(%rbp), %rsi
callq 0x3790
movl %eax, -0x404(%rbp)
movslq -0x404(%rbp), %rsi
xorl %eax, %eax
movl %eax, %edx
movl $0x1e7, %ecx            # imm = 0x1E7
movl $0x14, %r8d
movq %rdx, %rdi
callq 0x7460
movq -0x478(%rbp), %rax
movslq %eax, %rsi
movl $0xf6, %edi
xorl %eax, %eax
movl %eax, %edx
movl $0x1e8, %ecx            # imm = 0x1E8
movl $0x14, %r8d
callq 0x7460
movq -0x480(%rbp), %rsi
leaq 0x50d5(%rip), %rdi      # 0xb095
xorl %eax, %eax
movl %eax, %edx
movl $0x1e9, %ecx            # imm = 0x1E9
callq 0x8680
addq $0x4b0, %rsp            # imm = 0x4B0
popq %rbp
retq
nopw (%rax,%rax)