Namespaces | Macros | Functions | Variables
test_client.cpp File Reference
#include "xmlrpcpp/XmlRpcClient.h"
#include "xmlrpcpp/XmlRpcValue.h"
#include "mock_socket.h"
#include <errno.h>
#include <gtest/gtest.h>
Include dependency graph for test_client.cpp:

Go to the source code of this file.

Namespaces

 XmlRpc
 

Macros

#define protected   public
 
#define TEST_STATE(state)   EXPECT_STREQ(#state, XmlRpcClient::connectionStateStr(XmlRpcClient::state))
 

Functions

int main (int argc, char **argv)
 
void XmlRpc::PrintTo (const XmlRpcClient::ClientConnectionState &state,::std::ostream *os)
 
bool sourceInList (XmlRpc::XmlRpcSource *source, const XmlRpc::XmlRpcDispatch::SourceList &list)
 
 TEST (XmlRpcClient, connectionStateStr)
 
 TEST (XmlRpcClient, generateRequest)
 
 TEST (XmlRpcClient, generateHeader)
 
 TEST_F (MockSocketTest, constructor)
 
 TEST_F (MockSocketTest, close_invalid_fd)
 
 TEST_F (MockSocketTest, close_valid_fd)
 
 TEST_F (MockSocketTest, close_destructor)
 
 TEST_F (MockSocketTest, setupConnection)
 
 TEST_F (MockSocketTest, setupConnection_eof)
 
 TEST_F (MockSocketTest, setupConnection_close)
 
 TEST_F (MockSocketTest, setupConnection_err)
 
 TEST_F (MockSocketTest, setupConnection_eor_reopen)
 
 TEST_F (MockSocketTest, doConnect)
 
 TEST_F (MockSocketTest, doConnect_socketerr)
 
 TEST_F (MockSocketTest, doConnect_nonBlockErr)
 
 TEST_F (MockSocketTest, doConnect_connectErr)
 
 TEST_F (MockSocketTest, writeRequest)
 
 TEST_F (MockSocketTest, writeRequest_partial)
 
 TEST_F (MockSocketTest, writeRequest_partial_error)
 
 TEST_F (MockSocketTest, writeRequest_error)
 
 TEST_F (MockSocketTest, readHeader)
 
 TEST_F (MockSocketTest, readHeader2)
 
 TEST_F (MockSocketTest, readHeader_only)
 
 TEST_F (MockSocketTest, readHeader_partial)
 
 TEST_F (MockSocketTest, readHeader_err)
 
 TEST_F (MockSocketTest, readHeader_eof)
 
 TEST_F (MockSocketTest, readHeader_partial_err)
 
 TEST_F (MockSocketTest, readResponse_noop)
 
 TEST_F (MockSocketTest, readResponse)
 
 TEST_F (MockSocketTest, readResponse_partial)
 
 TEST_F (MockSocketTest, readResponse_err)
 
 TEST_F (MockSocketTest, readResponse_eof)
 

Variables

const std::string header
 
const std::string header2
 
const std::string response
 

Macro Definition Documentation

#define protected   public

Definition at line 24 of file test_client.cpp.

#define TEST_STATE (   state)    EXPECT_STREQ(#state, XmlRpcClient::connectionStateStr(XmlRpcClient::state))

Function Documentation

int main ( int  argc,
char **  argv 
)

Definition at line 1076 of file test_client.cpp.

bool sourceInList ( XmlRpc::XmlRpcSource source,
const XmlRpc::XmlRpcDispatch::SourceList list 
)

Definition at line 45 of file test_client.cpp.

TEST ( XmlRpcClient  ,
connectionStateStr   
)

Definition at line 59 of file test_client.cpp.

TEST ( XmlRpcClient  ,
generateRequest   
)

Definition at line 383 of file test_client.cpp.

TEST ( XmlRpcClient  ,
generateHeader   
)

Definition at line 473 of file test_client.cpp.

TEST_F ( MockSocketTest  ,
constructor   
)

Definition at line 71 of file test_client.cpp.

TEST_F ( MockSocketTest  ,
close_invalid_fd   
)

Definition at line 97 of file test_client.cpp.

TEST_F ( MockSocketTest  ,
close_valid_fd   
)

Definition at line 109 of file test_client.cpp.

TEST_F ( MockSocketTest  ,
close_destructor   
)

Definition at line 126 of file test_client.cpp.

TEST_F ( MockSocketTest  ,
setupConnection   
)

Definition at line 154 of file test_client.cpp.

TEST_F ( MockSocketTest  ,
setupConnection_eof   
)

Definition at line 180 of file test_client.cpp.

TEST_F ( MockSocketTest  ,
setupConnection_close   
)

Definition at line 209 of file test_client.cpp.

TEST_F ( MockSocketTest  ,
setupConnection_err   
)

Definition at line 239 of file test_client.cpp.

TEST_F ( MockSocketTest  ,
setupConnection_eor_reopen   
)

Definition at line 265 of file test_client.cpp.

TEST_F ( MockSocketTest  ,
doConnect   
)

Definition at line 315 of file test_client.cpp.

TEST_F ( MockSocketTest  ,
doConnect_socketerr   
)

Definition at line 336 of file test_client.cpp.

TEST_F ( MockSocketTest  ,
doConnect_nonBlockErr   
)

Definition at line 348 of file test_client.cpp.

TEST_F ( MockSocketTest  ,
doConnect_connectErr   
)

Definition at line 364 of file test_client.cpp.

TEST_F ( MockSocketTest  ,
writeRequest   
)

Definition at line 495 of file test_client.cpp.

TEST_F ( MockSocketTest  ,
writeRequest_partial   
)

Definition at line 522 of file test_client.cpp.

TEST_F ( MockSocketTest  ,
writeRequest_partial_error   
)

Definition at line 555 of file test_client.cpp.

TEST_F ( MockSocketTest  ,
writeRequest_error   
)

Definition at line 589 of file test_client.cpp.

TEST_F ( MockSocketTest  ,
readHeader   
)

Definition at line 641 of file test_client.cpp.

TEST_F ( MockSocketTest  ,
readHeader2   
)

Definition at line 670 of file test_client.cpp.

TEST_F ( MockSocketTest  ,
readHeader_only   
)

Definition at line 700 of file test_client.cpp.

TEST_F ( MockSocketTest  ,
readHeader_partial   
)

Definition at line 728 of file test_client.cpp.

TEST_F ( MockSocketTest  ,
readHeader_err   
)

Definition at line 766 of file test_client.cpp.

TEST_F ( MockSocketTest  ,
readHeader_eof   
)

Definition at line 812 of file test_client.cpp.

TEST_F ( MockSocketTest  ,
readHeader_partial_err   
)

Definition at line 858 of file test_client.cpp.

TEST_F ( MockSocketTest  ,
readResponse_noop   
)

Definition at line 906 of file test_client.cpp.

TEST_F ( MockSocketTest  ,
readResponse   
)

Definition at line 936 of file test_client.cpp.

TEST_F ( MockSocketTest  ,
readResponse_partial   
)

Definition at line 966 of file test_client.cpp.

TEST_F ( MockSocketTest  ,
readResponse_err   
)

Definition at line 1013 of file test_client.cpp.

TEST_F ( MockSocketTest  ,
readResponse_eof   
)

Definition at line 1041 of file test_client.cpp.

Variable Documentation

const std::string header
Initial value:
= "HTTP/1.1 200 OK\r\n"
"Server: XMLRPC++ 0.7\r\n"
"Content-Type: text/xml\r\n"
"Content-length: 114\r\n\r\n"

Definition at line 614 of file test_client.cpp.

const std::string header2
Initial value:
= "HTTP/1.0 200 OK\r\n"
"Server: BaseHTTP/0.3 Python/2.7.6\r\n"
"Date: Mon, 30 Oct 2017 22:28:12 GMT\r\n"
"Content-type: text/xml\r\n"
"Content-length: 114\r\n\r\n"

Definition at line 619 of file test_client.cpp.

const std::string response
Initial value:
= "<?xml version=\"1.0\"?>\r\n"
"<methodResponse><params><param>\r\n"
"<value>Hello</value>\r\n"
"</param></params></methodResponse>\r\n"

Definition at line 625 of file test_client.cpp.



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