updating tests:

serialiser:

added tests for rsconfigitems
added regression reporting for tlvrandom_test
fixed rstatusitem_tests
fixed tlvbase_test2 tests, any fix rstlvipaddrv4 from this revision should not break regression

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@4320 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
chrisparker126 2011-06-22 21:38:26 +00:00
parent e877f31409
commit f3fbac7d77
12 changed files with 452 additions and 36 deletions

View file

@ -20,3 +20,7 @@ chatServiceTest::~chatServiceTest() {
void chatServiceTest::runTests(){
}
void chatServiceTest::insertChatItems(){
}

View file

@ -10,6 +10,7 @@
#include "servicetest.h"
#include "services/p3chatservice.h"
#include "util/utest.h"
class chatServiceTest: public ServiceTest {
@ -20,6 +21,8 @@ public:
public:
void runTests();
void insertChatItems();
private:
p3ChatService* mChat;

View file

@ -24,9 +24,7 @@
*/
#include "forumservicetest.h"
#include "util/utest.h"
INITTEST()
// distrib services are tested here
int main()

View file

@ -29,6 +29,9 @@
#include "servicetest.h"
#include "services/p3forums.h"
#include "util/utest.h"
INITTEST()
class forumServiceTest : public ServiceTest {

View file

@ -34,6 +34,8 @@ ServiceTest::ServiceTest()
SecurityPolicy *none = secpolicy_create();
mPersonGrp = new pqisslpersongrp(none, NULL);
mPeers = new p3Peers(mConnMgr);
mConnMgr->addFriend(fakePeer);
}
ServiceTest::~ServiceTest()

View file

@ -34,6 +34,7 @@
/*!
* A convenience class from which tests derive from
* This enables user to test in shallow manner the public methods
@ -50,6 +51,11 @@ public:
*/
virtual void runTests() = 0;
/*!
* use this to populate the service with messages
*/
void sendItem(RsItem* item);
protected:
@ -59,6 +65,8 @@ protected:
p3Peers* mPeers;
pqipersongrp* mPersonGrp;
std::string fakePeer; // ssl id of fake receiving peer
};