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)
 

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

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

Definition at line 57 of file mock_socket.cpp.

Variable Documentation

int accept_calls = 0

Definition at line 162 of file mock_socket.cpp.

int accept_fd = 0

Definition at line 161 of file mock_socket.cpp.

int accept_ret = 0

Definition at line 160 of file mock_socket.cpp.

int bind_calls = 0

Definition at line 125 of file mock_socket.cpp.

int bind_fd = 0

Definition at line 123 of file mock_socket.cpp.

int bind_port = 0

Definition at line 124 of file mock_socket.cpp.

bool bind_ret = true

Definition at line 122 of file mock_socket.cpp.

std::deque<int> close_calls

Definition at line 61 of file mock_socket.cpp.

int connect_calls = 0

Definition at line 180 of file mock_socket.cpp.

int connect_fd = 0

Definition at line 177 of file mock_socket.cpp.

std::string connect_host = ""

Definition at line 178 of file mock_socket.cpp.

int connect_port = 0

Definition at line 179 of file mock_socket.cpp.

bool connect_ret = true

Definition at line 176 of file mock_socket.cpp.

int get_port_calls = 0

Definition at line 266 of file mock_socket.cpp.

int get_port_ret = 0

Definition at line 264 of file mock_socket.cpp.

int get_port_socket = 0

Definition at line 265 of file mock_socket.cpp.

int getError_calls = 0

Definition at line 252 of file mock_socket.cpp.

int getError_ret = 0

Definition at line 251 of file mock_socket.cpp.

int listen_backlog = 0

Definition at line 143 of file mock_socket.cpp.

int listen_calls = 0

Definition at line 144 of file mock_socket.cpp.

int listen_fd = 0

Definition at line 142 of file mock_socket.cpp.

bool listen_ret = true

Definition at line 141 of file mock_socket.cpp.

int nbRead_calls = 0

Definition at line 205 of file mock_socket.cpp.

bool nbRead_eof = false

Definition at line 204 of file mock_socket.cpp.

int nbRead_fd = 0

Definition at line 202 of file mock_socket.cpp.

bool nbRead_ret = true

Definition at line 201 of file mock_socket.cpp.

std::string nbRead_s = ""

Definition at line 203 of file mock_socket.cpp.

int nbWrite_bytes = 0

Definition at line 229 of file mock_socket.cpp.

int nbWrite_calls = 0

Definition at line 230 of file mock_socket.cpp.

int nbWrite_fd = 0

Definition at line 227 of file mock_socket.cpp.

bool nbWrite_ret = true

Definition at line 226 of file mock_socket.cpp.

std::string nbWrite_s = ""

Definition at line 228 of file mock_socket.cpp.

int setNonBlocking_calls = 0

Definition at line 91 of file mock_socket.cpp.

int setNonBlocking_fd = 0

Definition at line 90 of file mock_socket.cpp.

bool setNonBlocking_ret = true

Definition at line 89 of file mock_socket.cpp.

int setReuseAddr_calls = 0

Definition at line 107 of file mock_socket.cpp.

int setReuseAddr_fd = 0

Definition at line 106 of file mock_socket.cpp.

bool setReuseAddr_ret = true

Definition at line 105 of file mock_socket.cpp.

int socket_calls = 0

Definition at line 76 of file mock_socket.cpp.

int socket_ret = 0

Definition at line 75 of file mock_socket.cpp.



xmlrpcpp
Author(s): Chris Morley, Konstantin Pilipchuk, Morgan Quigley, Austin Hendrix
autogenerated on Sun Feb 3 2019 03:29:51