How to fill structure with a mocked function using GoogleMock? – Debian
I have a function for example: int accept(int sockfd, struct sockaddr *addr, socklen_t *addrlen); The man page tell me "The argument addr is a pointer to a sockaddr structure. This structure is filled in with the address of the peer…