#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 <sys/socket.h>
#include <unistd.h>
#include <stdlib.h>
#include <sys/types.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) |
|
◆ EXPECT_CLOSE_CALLS
#define EXPECT_CLOSE_CALLS |
( |
|
n | ) |
|
Value:do { \
EXPECT_EQ(m.close_calls, n); \
m.close_calls = 0; \
} while (0)
Definition at line 149 of file test_dispatch.cpp.
◆ EXPECT_EVENT
#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 161 of file test_dispatch.cpp.
◆ EXPECT_EVENTS
#define EXPECT_EVENTS |
( |
|
n | ) |
|
Value:do { \
EXPECT_EQ(m.handleEvent_calls, n); \
m.handleEvent_calls = 0; \
} while (0)
Definition at line 155 of file test_dispatch.cpp.
◆ __wrap_poll()
int __wrap_poll |
( |
struct pollfd * |
fds, |
|
|
nfds_t |
nfds, |
|
|
int |
timeout |
|
) |
| |
◆ Expect_poll()
void Expect_poll |
( |
std::vector< pollfd > |
fds, |
|
|
int |
timeout, |
|
|
int |
_errno, |
|
|
int |
ret |
|
) |
| |
◆ main()
int main |
( |
int |
argc, |
|
|
char ** |
argv |
|
) |
| |
◆ mock_poll()
int mock_poll |
( |
struct pollfd * |
fds, |
|
|
nfds_t |
nfds, |
|
|
int |
timeout |
|
) |
| |
◆ TEST_F() [1/6]
◆ TEST_F() [2/6]
◆ TEST_F() [3/6]
◆ TEST_F() [4/6]
◆ TEST_F() [5/6]
◆ TEST_F() [6/6]
◆ fake_poll
int(* fake_poll) (struct pollfd *, nfds_t, int)=0 |
◆ poll_calls
◆ poll_errno
◆ poll_fds
std::vector<pollfd> poll_fds |
◆ poll_ret
◆ poll_timeout
xmlrpcpp
Author(s): Chris Morley, Konstantin Pilipchuk, Morgan Quigley, Austin Hendrix, Dirk Thomas
autogenerated on Mon Feb 28 2022 23:33:22