Macros | Variables
mock_socket.cpp File Reference
#include "xmlrpcpp/XmlRpcSocket.h"
#include "xmlrpcpp/XmlRpcUtil.h"
#include "mock_socket.h"
#include <deque>
#include <string.h>
#include <errno.h>
#include <gtest/gtest.h>
Include dependency graph for mock_socket.cpp:

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
 

Macro Definition Documentation

◆ EXPECT_PROLOGUE

#define EXPECT_PROLOGUE (   name)
Value:
EXPECT_EQ(0, name##_calls) \
<< "Test error; cannont expect " #name " more than once";

Definition at line 60 of file mock_socket.cpp.

◆ xmlrpcpp_EXPORTS

#define xmlrpcpp_EXPORTS

Definition at line 24 of file mock_socket.cpp.

Variable Documentation

◆ accept_calls

int accept_calls = 0

Definition at line 165 of file mock_socket.cpp.

◆ accept_fd

int accept_fd = 0

Definition at line 164 of file mock_socket.cpp.

◆ accept_ret

int accept_ret = 0

Definition at line 163 of file mock_socket.cpp.

◆ bind_calls

int bind_calls = 0

Definition at line 128 of file mock_socket.cpp.

◆ bind_fd

int bind_fd = 0

Definition at line 126 of file mock_socket.cpp.

◆ bind_port

int bind_port = 0

Definition at line 127 of file mock_socket.cpp.

◆ bind_ret

bool bind_ret = true

Definition at line 125 of file mock_socket.cpp.

◆ close_calls

std::deque<int> close_calls

Definition at line 64 of file mock_socket.cpp.

◆ connect_calls

int connect_calls = 0

Definition at line 183 of file mock_socket.cpp.

◆ connect_fd

int connect_fd = 0

Definition at line 180 of file mock_socket.cpp.

◆ connect_host

std::string connect_host = ""

Definition at line 181 of file mock_socket.cpp.

◆ connect_port

int connect_port = 0

Definition at line 182 of file mock_socket.cpp.

◆ connect_ret

bool connect_ret = true

Definition at line 179 of file mock_socket.cpp.

◆ get_port_calls

int get_port_calls = 0

Definition at line 269 of file mock_socket.cpp.

◆ get_port_ret

int get_port_ret = 0

Definition at line 267 of file mock_socket.cpp.

◆ get_port_socket

int get_port_socket = 0

Definition at line 268 of file mock_socket.cpp.

◆ getError_calls

int getError_calls = 0

Definition at line 255 of file mock_socket.cpp.

◆ getError_ret

int getError_ret = 0

Definition at line 254 of file mock_socket.cpp.

◆ listen_backlog

int listen_backlog = 0

Definition at line 146 of file mock_socket.cpp.

◆ listen_calls

int listen_calls = 0

Definition at line 147 of file mock_socket.cpp.

◆ listen_fd

int listen_fd = 0

Definition at line 145 of file mock_socket.cpp.

◆ listen_ret

bool listen_ret = true

Definition at line 144 of file mock_socket.cpp.

◆ nbRead_calls

int nbRead_calls = 0

Definition at line 208 of file mock_socket.cpp.

◆ nbRead_eof

bool nbRead_eof = false

Definition at line 207 of file mock_socket.cpp.

◆ nbRead_fd

int nbRead_fd = 0

Definition at line 205 of file mock_socket.cpp.

◆ nbRead_ret

bool nbRead_ret = true

Definition at line 204 of file mock_socket.cpp.

◆ nbRead_s

std::string nbRead_s = ""

Definition at line 206 of file mock_socket.cpp.

◆ nbWrite_bytes

int nbWrite_bytes = 0

Definition at line 232 of file mock_socket.cpp.

◆ nbWrite_calls

int nbWrite_calls = 0

Definition at line 233 of file mock_socket.cpp.

◆ nbWrite_fd

int nbWrite_fd = 0

Definition at line 230 of file mock_socket.cpp.

◆ nbWrite_ret

bool nbWrite_ret = true

Definition at line 229 of file mock_socket.cpp.

◆ nbWrite_s

std::string nbWrite_s = ""

Definition at line 231 of file mock_socket.cpp.

◆ setNonBlocking_calls

int setNonBlocking_calls = 0

Definition at line 94 of file mock_socket.cpp.

◆ setNonBlocking_fd

int setNonBlocking_fd = 0

Definition at line 93 of file mock_socket.cpp.

◆ setNonBlocking_ret

bool setNonBlocking_ret = true

Definition at line 92 of file mock_socket.cpp.

◆ setReuseAddr_calls

int setReuseAddr_calls = 0

Definition at line 110 of file mock_socket.cpp.

◆ setReuseAddr_fd

int setReuseAddr_fd = 0

Definition at line 109 of file mock_socket.cpp.

◆ setReuseAddr_ret

bool setReuseAddr_ret = true

Definition at line 108 of file mock_socket.cpp.

◆ socket_calls

int socket_calls = 0

Definition at line 79 of file mock_socket.cpp.

◆ socket_ret

int socket_ret = 0

Definition at line 78 of file mock_socket.cpp.



xmlrpcpp
Author(s): Chris Morley, Konstantin Pilipchuk, Morgan Quigley, Austin Hendrix
autogenerated on Wed Oct 16 2019 03:27:40