/****************************************************************** * tlvfileitem test. * * */ #include #include #include "serialiser/rstlvtypes.h" #include "serialiser/rstlvutil.h" #include "util/utest.h" INITTEST(); static int testRsTlvPeerIdSet(); static int testRsTlvServiceIdSet(); static int testRsTlvKeyValue(); static int testRsTlvKeyValueSet(); int main() { std::cerr << "RsTlvConfig[Item/Data/...] Tests" << std::endl; testRsTlvPeerIdSet(); testRsTlvServiceIdSet();//tbd testRsTlvKeyValue();//tbd testRsTlvKeyValueSet();//tbd FINALREPORT("RsTlvConfig[Item/Data/...] Tests"); return TESTRESULT(); } int testRsTlvPeerIdSet() { RsTlvPeerIdSet i1, i2; // one to set and other to get std::string testString; std::string randString[5]; randString[0] = "e$424!£!£"; randString[1] = "e~:@L{L{KHKG"; randString[2] = "e{@O**/*/*"; randString[3] = "e?<HG£!£%$"; randString[4] = "e>HG£!£%$"; randString[4] = "e>