Searched refs:CLI_MSG (Results 1 - 6 of 6) sorted by relevance
/kernel/liteos_m/components/net/test/ |
H A D | net_socket_test_003.c | 38 #define CLI_MSG "Hi, I am TCP client"
macro 86 ICUNIT_ASSERT_EQUAL(ret, strlen(CLI_MSG), 6);
in SampleTcpServer() 117 ICUNIT_ASSERT_EQUAL(ret, IOV_LENGTH * strlen(CLI_MSG), 8);
in SampleTcpServer() 175 (void)strcpy_s(g_buf, sizeof(g_buf), CLI_MSG);
in SampleTcpClient() 176 ret = send(sfd, g_buf, strlen(CLI_MSG), 0);
in SampleTcpClient() 178 ICUNIT_ASSERT_EQUAL(ret, strlen(CLI_MSG), 18);
in SampleTcpClient() 192 (void)strcpy_s(g_buf, sizeof(g_buf), CLI_MSG);
in SampleTcpClient() 198 iov[0].iov_len = strlen(CLI_MSG);
in SampleTcpClient() 200 iov[1].iov_len = strlen(CLI_MSG);
in SampleTcpClient() 203 ICUNIT_ASSERT_EQUAL(ret, 2 * strlen(CLI_MSG), 2 in SampleTcpClient() [all...] |
H A D | net_socket_test_010.c | 38 #define CLI_MSG "Hi, I am TCP client" macro 93 ICUNIT_ASSERT_EQUAL(ret, strlen(CLI_MSG), 7); in SampleTcpServer() 125 (void)strcpy_s(g_buf, sizeof(g_buf), CLI_MSG); in SampleTcpClient() 126 ret = send(sfd, g_buf, strlen(CLI_MSG), 0); in SampleTcpClient() 128 ICUNIT_ASSERT_EQUAL(ret, strlen(CLI_MSG), 12); in SampleTcpClient()
|
H A D | net_socket_test_009.c | 38 #define CLI_MSG "Hi, I am TCP client" macro
|
H A D | net_socket_test_012.c | 38 #define CLI_MSG "Hi, I am TCP client"
macro
|
/kernel/liteos_a/testsuites/unittest/net/socket/smoke/ |
H A D | net_socket_test_003.cpp | 47 #define CLI_MSG "Hi, I am TCP client" macro 102 ICUNIT_ASSERT_EQUAL(ret, strlen(CLI_MSG), ret); in SampleTcpServer() 144 ICUNIT_ASSERT_EQUAL(ret, 2 * strlen(CLI_MSG), ret); in SampleTcpServer() 204 ret = strcpy_s(gBuf, BUF_SIZE - 1, CLI_MSG); in SampleTcpClient() 207 ret = send(sfd, gBuf, strlen(CLI_MSG), 0); in SampleTcpClient() 209 ICUNIT_ASSERT_EQUAL(ret, strlen(CLI_MSG), ret); in SampleTcpClient() 228 ret = strcpy_s(gBuf, BUF_SIZE - 1, CLI_MSG); in SampleTcpClient() 236 iov[0].iov_len = strlen(CLI_MSG); in SampleTcpClient() 238 iov[1].iov_len = strlen(CLI_MSG); in SampleTcpClient() 241 ICUNIT_ASSERT_EQUAL(ret, 2 * strlen(CLI_MSG), re in SampleTcpClient() [all...] |
/kernel/liteos_m/testsuites/unittest/fuzz/src/socket/ |
H A D | net_fuzz.c | 199 #define CLI_MSG "Hi, I am TCP client" macro 264 (void)strcpy_s(buf, sizeof(buf), CLI_MSG); in SampleTcpClient() 267 send(num1, buf, strlen(CLI_MSG), num2); in SampleTcpClient()
|
Completed in 5 milliseconds