#include "xmlrpcpp/XmlRpcDispatch.h"
#include "xmlrpcpp/XmlRpcSource.h"
#include "xmlrpcpp/XmlRpcSocket.h"
#include "mock_socket.h"
#include <fcntl.h>
#include <netinet/in.h>
#include <poll.h>
#include <stdlib.h>
#include <sys/socket.h>
#include <sys/types.h>
#include <unistd.h>
#include <time.h>
#include <errno.h>
#include <iostream>
#include <functional>
#include <gtest/gtest.h>
Go to the source code of this file.
|
| int | __wrap_poll (struct pollfd *fds, nfds_t nfds, int timeout) |
| |
| void | Expect_poll (std::vector< pollfd > fds, int timeout, int _errno, int ret) |
| |
| int | main (int argc, char **argv) |
| |
| int | mock_poll (struct pollfd *fds, nfds_t nfds, int timeout) |
| |
| | TEST_F (MockSourceTest, ReadEvent) |
| |
| | TEST_F (MockSourceTest, WriteEvent) |
| |
| | TEST_F (MockSourceTest, NonWriteable) |
| |
| | TEST_F (MockSourceTest, WriteClose) |
| |
| | TEST_F (MockSourceTest, Exception) |
| |
| | TEST_F (MockSourceTest, LargeFd) |
| |
| #define EXPECT_CLOSE_CALLS |
( |
|
n | ) |
|
Value:do { \
EXPECT_EQ(m.close_calls, n); \
m.close_calls = 0; \
} while (0)
Definition at line 139 of file test_dispatch.cpp.
| #define EXPECT_EVENT |
( |
|
event | ) |
|
Value:do { \
EXPECT_EQ(m.last_event, event); \
EXPECT_EQ(m.handleEvent_calls, 1); \
m.handleEvent_calls = 0; \
} while (0)
Definition at line 151 of file test_dispatch.cpp.
| #define EXPECT_EVENTS |
( |
|
n | ) |
|
Value:do { \
EXPECT_EQ(m.handleEvent_calls, n); \
m.handleEvent_calls = 0; \
} while (0)
Definition at line 145 of file test_dispatch.cpp.
| int __wrap_poll |
( |
struct pollfd * |
fds, |
|
|
nfds_t |
nfds, |
|
|
int |
timeout |
|
) |
| |
| void Expect_poll |
( |
std::vector< pollfd > |
fds, |
|
|
int |
timeout, |
|
|
int |
_errno, |
|
|
int |
ret |
|
) |
| |
| int main |
( |
int |
argc, |
|
|
char ** |
argv |
|
) |
| |
| int mock_poll |
( |
struct pollfd * |
fds, |
|
|
nfds_t |
nfds, |
|
|
int |
timeout |
|
) |
| |
| int(* fake_poll) (struct pollfd *, nfds_t, int)=0 |
| std::vector<pollfd> poll_fds |
xmlrpcpp
Author(s): Chris Morley, Konstantin Pilipchuk, Morgan Quigley, Austin Hendrix
autogenerated on Sun Feb 3 2019 03:29:51