mirror of
https://github.com/openappsec/attachment.git
synced 2025-06-28 16:41:03 +03:00
23 lines
387 B
C++
23 lines
387 B
C++
#ifndef __MOCK_NANO_POLL_H__
|
|
#define __MOCK_NANO_POLL_H__
|
|
|
|
#include "cmock.h"
|
|
|
|
extern "C" {
|
|
#include <poll.h>
|
|
}
|
|
|
|
class NanoPollMocker : public CMockMocker<NanoPollMocker>
|
|
{
|
|
public:
|
|
MOCK_METHOD3(poll, int(pollfd *fds, nfds_t nfds, int timeout));
|
|
};
|
|
|
|
CMOCK_MOCK_FUNCTION3(
|
|
NanoPollMocker,
|
|
poll,
|
|
int(pollfd *fds, nfds_t nfds, int timeout)
|
|
);
|
|
|
|
#endif // __MOCK_NANO_POLL_H__
|