#include "xmlrpcpp/XmlRpcClient.h"#include "xmlrpcpp/XmlRpcValue.h"#include "mock_socket.h"#include <errno.h>#include <climits>#include <gtest/gtest.h>
Go to the source code of this file.
Classes | |
| class | XmlRpcClientForTest |
Namespaces | |
| XmlRpc | |
Macros | |
| #define | TEST_STATE(state) EXPECT_STREQ(#state, XmlRpcClientForTest::connectionStateStr(XmlRpcClientForTest::state)) |
Functions | |
| int | main (int argc, char **argv) |
| void | XmlRpc::PrintTo (const XmlRpcClientForTest::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, readHeader_oversize) | |
| 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 | header3 |
| const std::string | response |
| #define TEST_STATE | ( | state | ) | EXPECT_STREQ(#state, XmlRpcClientForTest::connectionStateStr(XmlRpcClientForTest::state)) |
| int main | ( | int | argc, |
| char ** | argv | ||
| ) |
Definition at line 1131 of file test_client.cpp.
| bool sourceInList | ( | XmlRpc::XmlRpcSource * | source, |
| const XmlRpc::XmlRpcDispatch::SourceList & | list | ||
| ) |
Definition at line 72 of file test_client.cpp.
| TEST | ( | XmlRpcClient | , |
| connectionStateStr | |||
| ) |
Definition at line 86 of file test_client.cpp.
| TEST | ( | XmlRpcClient | , |
| generateRequest | |||
| ) |
Definition at line 410 of file test_client.cpp.
| TEST | ( | XmlRpcClient | , |
| generateHeader | |||
| ) |
Definition at line 500 of file test_client.cpp.
| TEST_F | ( | MockSocketTest | , |
| constructor | |||
| ) |
Definition at line 98 of file test_client.cpp.
| TEST_F | ( | MockSocketTest | , |
| close_invalid_fd | |||
| ) |
Definition at line 124 of file test_client.cpp.
| TEST_F | ( | MockSocketTest | , |
| close_valid_fd | |||
| ) |
Definition at line 136 of file test_client.cpp.
| TEST_F | ( | MockSocketTest | , |
| close_destructor | |||
| ) |
Definition at line 153 of file test_client.cpp.
| TEST_F | ( | MockSocketTest | , |
| setupConnection | |||
| ) |
Definition at line 181 of file test_client.cpp.
| TEST_F | ( | MockSocketTest | , |
| setupConnection_eof | |||
| ) |
Definition at line 207 of file test_client.cpp.
| TEST_F | ( | MockSocketTest | , |
| setupConnection_close | |||
| ) |
Definition at line 236 of file test_client.cpp.
| TEST_F | ( | MockSocketTest | , |
| setupConnection_err | |||
| ) |
Definition at line 266 of file test_client.cpp.
| TEST_F | ( | MockSocketTest | , |
| setupConnection_eor_reopen | |||
| ) |
Definition at line 292 of file test_client.cpp.
| TEST_F | ( | MockSocketTest | , |
| doConnect | |||
| ) |
Definition at line 342 of file test_client.cpp.
| TEST_F | ( | MockSocketTest | , |
| doConnect_socketerr | |||
| ) |
Definition at line 363 of file test_client.cpp.
| TEST_F | ( | MockSocketTest | , |
| doConnect_nonBlockErr | |||
| ) |
Definition at line 375 of file test_client.cpp.
| TEST_F | ( | MockSocketTest | , |
| doConnect_connectErr | |||
| ) |
Definition at line 391 of file test_client.cpp.
| TEST_F | ( | MockSocketTest | , |
| writeRequest | |||
| ) |
Definition at line 522 of file test_client.cpp.
| TEST_F | ( | MockSocketTest | , |
| writeRequest_partial | |||
| ) |
Definition at line 549 of file test_client.cpp.
| TEST_F | ( | MockSocketTest | , |
| writeRequest_partial_error | |||
| ) |
Definition at line 582 of file test_client.cpp.
| TEST_F | ( | MockSocketTest | , |
| writeRequest_error | |||
| ) |
Definition at line 616 of file test_client.cpp.
| TEST_F | ( | MockSocketTest | , |
| readHeader | |||
| ) |
Definition at line 673 of file test_client.cpp.
| TEST_F | ( | MockSocketTest | , |
| readHeader2 | |||
| ) |
Definition at line 702 of file test_client.cpp.
| TEST_F | ( | MockSocketTest | , |
| readHeader_only | |||
| ) |
Definition at line 732 of file test_client.cpp.
| TEST_F | ( | MockSocketTest | , |
| readHeader_partial | |||
| ) |
Definition at line 760 of file test_client.cpp.
| TEST_F | ( | MockSocketTest | , |
| readHeader_err | |||
| ) |
Definition at line 798 of file test_client.cpp.
| TEST_F | ( | MockSocketTest | , |
| readHeader_eof | |||
| ) |
Definition at line 844 of file test_client.cpp.
| TEST_F | ( | MockSocketTest | , |
| readHeader_partial_err | |||
| ) |
Definition at line 890 of file test_client.cpp.
| TEST_F | ( | MockSocketTest | , |
| readHeader_oversize | |||
| ) |
Definition at line 930 of file test_client.cpp.
| TEST_F | ( | MockSocketTest | , |
| readResponse_noop | |||
| ) |
Definition at line 961 of file test_client.cpp.
| TEST_F | ( | MockSocketTest | , |
| readResponse | |||
| ) |
Definition at line 991 of file test_client.cpp.
| TEST_F | ( | MockSocketTest | , |
| readResponse_partial | |||
| ) |
Definition at line 1021 of file test_client.cpp.
| TEST_F | ( | MockSocketTest | , |
| readResponse_err | |||
| ) |
Definition at line 1068 of file test_client.cpp.
| TEST_F | ( | MockSocketTest | , |
| readResponse_eof | |||
| ) |
Definition at line 1096 of file test_client.cpp.
| const std::string header |
Definition at line 641 of file test_client.cpp.
| const std::string header2 |
Definition at line 646 of file test_client.cpp.
| const std::string header3 |
Definition at line 652 of file test_client.cpp.
| const std::string response |
Definition at line 657 of file test_client.cpp.