Home
last modified time | relevance | path

Searched refs:__buf (Results 1 – 2 of 2) sorted by relevance

/foundation/communication/dhcp/test/services/dhcp_server/unittest/
Dsystem_func_mock.cpp150 ssize_t recvfrom(int __fd, void *__buf, size_t __n, int __flags, struct sockaddr *__addr, socklen_t… in recvfrom() argument
155 … return SystemFuncMock::GetInstance().recvfrom(__fd, __buf, __n, __flags, __addr, __addr_len); in recvfrom()
158 if (DhcpMsgManager::GetInstance().SendTotal() > 0 && __buf) { in recvfrom()
162 (void)memcpy_s(__buf, __n, &msg, sizeof(DhcpMessage)); in recvfrom()
173 return SystemFuncMock::GetInstance().recvfrom(__fd, __buf, __n, __flags, __addr, __addr_len); in recvfrom()
201 ssize_t sendto(int __fd, const void *__buf, size_t __n, int __flags, struct sockaddr *__addr, sockl… in sendto() argument
206 if (__buf == nullptr) { in sendto()
207 … return SystemFuncMock::GetInstance().sendto(__fd, __buf, __n, __flags, __addr, __addr_len); in sendto()
212 return SystemFuncMock::GetInstance().sendto(__fd, __buf, __n, __flags, __addr, __addr_len); in sendto()
Dsystem_func_mock.h39 …MOCK_METHOD6(sendto, ssize_t(int __fd, const void *__buf, size_t __n, int __flags, struct sockaddr…
41 …MOCK_METHOD6(recvfrom, ssize_t(int __fd, void *__buf, size_t __n, int __flags, struct sockaddr *__…