added dsitrib item tests: channels, grp, grp key, signed msg.

- also added support src for serialiser test - add functions here that could be generally used throughout serialiser tests

- fixed empty grp id set of grp keys in creategrp function

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@3196 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
chrisparker126 2010-06-24 10:35:00 +00:00
parent f3c2f0eaf0
commit 480e327c91
9 changed files with 654 additions and 10 deletions

View file

@ -83,7 +83,7 @@ RsTlvBinaryData::~RsTlvBinaryData()
/// used to allocate memory andinitialize binary data member
bool RsTlvBinaryData::setBinData(void *data, uint32_t size)
bool RsTlvBinaryData::setBinData(const void *data, uint32_t size)
{
/* ready to load */
TlvClear();

View file

@ -79,7 +79,7 @@ virtual bool SetTlv(void *data, uint32_t size, uint32_t *offset);
virtual bool GetTlv(void *data, uint32_t size, uint32_t *offset);
virtual std::ostream &print(std::ostream &out, uint16_t indent); /*! Error/Debug util function */
bool setBinData(void *data, uint32_t size);
bool setBinData(const void *data, uint32_t size);
uint16_t tlvtype; /// set/checked against TLV input
uint32_t bin_len; /// size of malloc'ed data (not serialised)