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 56 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 161 of file mock_socket.cpp.

◆ accept_fd

int accept_fd = 0

Definition at line 160 of file mock_socket.cpp.

◆ accept_ret

int accept_ret = 0

Definition at line 159 of file mock_socket.cpp.

◆ bind_calls

int bind_calls = 0

Definition at line 124 of file mock_socket.cpp.

◆ bind_fd

int bind_fd = 0

Definition at line 122 of file mock_socket.cpp.

◆ bind_port

int bind_port = 0

Definition at line 123 of file mock_socket.cpp.

◆ bind_ret

bool bind_ret = true

Definition at line 121 of file mock_socket.cpp.

◆ close_calls

std::deque<int> close_calls

Definition at line 60 of file mock_socket.cpp.

◆ connect_calls

int connect_calls = 0

Definition at line 179 of file mock_socket.cpp.

◆ connect_fd

int connect_fd = 0

Definition at line 176 of file mock_socket.cpp.

◆ connect_host

std::string connect_host = ""

Definition at line 177 of file mock_socket.cpp.

◆ connect_port

int connect_port = 0

Definition at line 178 of file mock_socket.cpp.

◆ connect_ret

bool connect_ret = true

Definition at line 175 of file mock_socket.cpp.

◆ get_port_calls

int get_port_calls = 0

Definition at line 265 of file mock_socket.cpp.

◆ get_port_ret

int get_port_ret = 0

Definition at line 263 of file mock_socket.cpp.

◆ get_port_socket

int get_port_socket = 0

Definition at line 264 of file mock_socket.cpp.

◆ getError_calls

int getError_calls = 0

Definition at line 251 of file mock_socket.cpp.

◆ getError_ret

int getError_ret = 0

Definition at line 250 of file mock_socket.cpp.

◆ listen_backlog

int listen_backlog = 0

Definition at line 142 of file mock_socket.cpp.

◆ listen_calls

int listen_calls = 0

Definition at line 143 of file mock_socket.cpp.

◆ listen_fd

int listen_fd = 0

Definition at line 141 of file mock_socket.cpp.

◆ listen_ret

bool listen_ret = true

Definition at line 140 of file mock_socket.cpp.

◆ nbRead_calls

int nbRead_calls = 0

Definition at line 204 of file mock_socket.cpp.

◆ nbRead_eof

bool nbRead_eof = false

Definition at line 203 of file mock_socket.cpp.

◆ nbRead_fd

int nbRead_fd = 0

Definition at line 201 of file mock_socket.cpp.

◆ nbRead_ret

bool nbRead_ret = true

Definition at line 200 of file mock_socket.cpp.

◆ nbRead_s

std::string nbRead_s = ""

Definition at line 202 of file mock_socket.cpp.

◆ nbWrite_bytes

int nbWrite_bytes = 0

Definition at line 228 of file mock_socket.cpp.

◆ nbWrite_calls

int nbWrite_calls = 0

Definition at line 229 of file mock_socket.cpp.

◆ nbWrite_fd

int nbWrite_fd = 0

Definition at line 226 of file mock_socket.cpp.

◆ nbWrite_ret

bool nbWrite_ret = true

Definition at line 225 of file mock_socket.cpp.

◆ nbWrite_s

std::string nbWrite_s = ""

Definition at line 227 of file mock_socket.cpp.

◆ setNonBlocking_calls

int setNonBlocking_calls = 0

Definition at line 90 of file mock_socket.cpp.

◆ setNonBlocking_fd

int setNonBlocking_fd = 0

Definition at line 89 of file mock_socket.cpp.

◆ setNonBlocking_ret

bool setNonBlocking_ret = true

Definition at line 88 of file mock_socket.cpp.

◆ setReuseAddr_calls

int setReuseAddr_calls = 0

Definition at line 106 of file mock_socket.cpp.

◆ setReuseAddr_fd

int setReuseAddr_fd = 0

Definition at line 105 of file mock_socket.cpp.

◆ setReuseAddr_ret

bool setReuseAddr_ret = true

Definition at line 104 of file mock_socket.cpp.

◆ socket_calls

int socket_calls = 0

Definition at line 75 of file mock_socket.cpp.

◆ socket_ret

int socket_ret = 0

Definition at line 74 of file mock_socket.cpp.



xmlrpcpp
Author(s): Chris Morley, Konstantin Pilipchuk, Morgan Quigley, Austin Hendrix
autogenerated on Mon Aug 10 2020 03:18:36