aboutsummaryrefslogtreecommitdiff
path: root/contrib/epee/tests
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2019-01-18 01:05:58 +0000
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2019-03-04 22:38:03 +0000
commite396146aeebd61d6a26003045d554f6e94d5f028 (patch)
treed0abbc7b2feb1325435c149c9f9309063e9fc670 /contrib/epee/tests
parentvarious: remove unused variables (diff)
downloadmonero-e396146aeebd61d6a26003045d554f6e94d5f028.tar.xz
default initialize rpc structures
Diffstat (limited to 'contrib/epee/tests')
-rw-r--r--contrib/epee/tests/src/net/test_net.h13
1 files changed, 8 insertions, 5 deletions
diff --git a/contrib/epee/tests/src/net/test_net.h b/contrib/epee/tests/src/net/test_net.h
index 51b1f1ec6..f99639afc 100644
--- a/contrib/epee/tests/src/net/test_net.h
+++ b/contrib/epee/tests/src/net/test_net.h
@@ -62,7 +62,7 @@ namespace tests
{
const static int ID = 1000;
- struct request
+ struct request_t
{
std::string example_string_data;
@@ -75,9 +75,9 @@ namespace tests
SERIALIZE_T(sub)
END_NAMED_SERIALIZE_MAP()
};
+ typedef epee::misc_utils::struct_init<request_t> request;
-
- struct response
+ struct response_t
{
bool m_success;
uint64_t example_id_data;
@@ -89,13 +89,14 @@ namespace tests
SERIALIZE_STL_CONTAINER_T(subs)
END_NAMED_SERIALIZE_MAP()
};
+ typedef epee::misc_utils::struct_init<response_t> response;
};
struct COMMAND_EXAMPLE_2
{
const static int ID = 1001;
- struct request
+ struct request_t
{
std::string example_string_data2;
uint64_t example_id_data;
@@ -105,8 +106,9 @@ namespace tests
SERIALIZE_STL_ANSI_STRING(example_string_data2)
END_NAMED_SERIALIZE_MAP()
};
+ typedef epee::misc_utils::struct_init<request_t> request;
- struct response
+ struct response_t
{
bool m_success;
uint64_t example_id_data;
@@ -116,6 +118,7 @@ namespace tests
SERIALIZE_POD(m_success)
END_NAMED_SERIALIZE_MAP()
};
+ typedef epee::misc_utils::struct_init<response_t> response;
};
typedef boost::uuids::uuid uuid;