#include "xmlrpcpp/XmlRpcSocket.h"
#include "xmlrpcpp/XmlRpcUtil.h"
#include "mock_socket.h"
#include <deque>
#include <string.h>
#include <errno.h>
#include <gtest/gtest.h>
Go to the source code of this file.
Macros | |
#define | EXPECT_PROLOGUE(name) |
#define | xmlrpcpp_EXPORTS |
Variables | |
int | accept_calls = 0 |
int | accept_fd = 0 |
int | accept_ret = 0 |
int | bind_calls = 0 |
int | bind_fd = 0 |
int | bind_port = 0 |
bool | bind_ret = true |
std::deque< int > | close_calls |
int | connect_calls = 0 |
int | connect_fd = 0 |
std::string | connect_host = "" |
int | connect_port = 0 |
bool | connect_ret = true |
int | get_port_calls = 0 |
int | get_port_ret = 0 |
int | get_port_socket = 0 |
int | getError_calls = 0 |
int | getError_ret = 0 |
int | listen_backlog = 0 |
int | listen_calls = 0 |
int | listen_fd = 0 |
bool | listen_ret = true |
int | nbRead_calls = 0 |
bool | nbRead_eof = false |
int | nbRead_fd = 0 |
bool | nbRead_ret = true |
std::string | nbRead_s = "" |
int | nbWrite_bytes = 0 |
int | nbWrite_calls = 0 |
int | nbWrite_fd = 0 |
bool | nbWrite_ret = true |
std::string | nbWrite_s = "" |
int | setNonBlocking_calls = 0 |
int | setNonBlocking_fd = 0 |
bool | setNonBlocking_ret = true |
int | setReuseAddr_calls = 0 |
int | setReuseAddr_fd = 0 |
bool | setReuseAddr_ret = true |
int | socket_calls = 0 |
int | socket_ret = 0 |
#define EXPECT_PROLOGUE | ( | name | ) |
Definition at line 56 of file mock_socket.cpp.
#define xmlrpcpp_EXPORTS |
Definition at line 24 of file mock_socket.cpp.
int accept_calls = 0 |
Definition at line 161 of file mock_socket.cpp.
int accept_fd = 0 |
Definition at line 160 of file mock_socket.cpp.
int accept_ret = 0 |
Definition at line 159 of file mock_socket.cpp.
int bind_calls = 0 |
Definition at line 124 of file mock_socket.cpp.
int bind_fd = 0 |
Definition at line 122 of file mock_socket.cpp.
int bind_port = 0 |
Definition at line 123 of file mock_socket.cpp.
bool bind_ret = true |
Definition at line 121 of file mock_socket.cpp.
std::deque<int> close_calls |
Definition at line 60 of file mock_socket.cpp.
int connect_calls = 0 |
Definition at line 179 of file mock_socket.cpp.
int connect_fd = 0 |
Definition at line 176 of file mock_socket.cpp.
std::string connect_host = "" |
Definition at line 177 of file mock_socket.cpp.
int connect_port = 0 |
Definition at line 178 of file mock_socket.cpp.
bool connect_ret = true |
Definition at line 175 of file mock_socket.cpp.
int get_port_calls = 0 |
Definition at line 265 of file mock_socket.cpp.
int get_port_ret = 0 |
Definition at line 263 of file mock_socket.cpp.
int get_port_socket = 0 |
Definition at line 264 of file mock_socket.cpp.
int getError_calls = 0 |
Definition at line 251 of file mock_socket.cpp.
int getError_ret = 0 |
Definition at line 250 of file mock_socket.cpp.
int listen_backlog = 0 |
Definition at line 142 of file mock_socket.cpp.
int listen_calls = 0 |
Definition at line 143 of file mock_socket.cpp.
int listen_fd = 0 |
Definition at line 141 of file mock_socket.cpp.
bool listen_ret = true |
Definition at line 140 of file mock_socket.cpp.
int nbRead_calls = 0 |
Definition at line 204 of file mock_socket.cpp.
bool nbRead_eof = false |
Definition at line 203 of file mock_socket.cpp.
int nbRead_fd = 0 |
Definition at line 201 of file mock_socket.cpp.
bool nbRead_ret = true |
Definition at line 200 of file mock_socket.cpp.
std::string nbRead_s = "" |
Definition at line 202 of file mock_socket.cpp.
int nbWrite_bytes = 0 |
Definition at line 228 of file mock_socket.cpp.
int nbWrite_calls = 0 |
Definition at line 229 of file mock_socket.cpp.
int nbWrite_fd = 0 |
Definition at line 226 of file mock_socket.cpp.
bool nbWrite_ret = true |
Definition at line 225 of file mock_socket.cpp.
std::string nbWrite_s = "" |
Definition at line 227 of file mock_socket.cpp.
int setNonBlocking_calls = 0 |
Definition at line 90 of file mock_socket.cpp.
int setNonBlocking_fd = 0 |
Definition at line 89 of file mock_socket.cpp.
bool setNonBlocking_ret = true |
Definition at line 88 of file mock_socket.cpp.
int setReuseAddr_calls = 0 |
Definition at line 106 of file mock_socket.cpp.
int setReuseAddr_fd = 0 |
Definition at line 105 of file mock_socket.cpp.
bool setReuseAddr_ret = true |
Definition at line 104 of file mock_socket.cpp.
int socket_calls = 0 |
Definition at line 75 of file mock_socket.cpp.
int socket_ret = 0 |
Definition at line 74 of file mock_socket.cpp.