mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-23 00:01:21 -04:00
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:
parent
e877f31409
commit
f3fbac7d77
12 changed files with 452 additions and 36 deletions
|
@ -20,3 +20,7 @@ chatServiceTest::~chatServiceTest() {
|
|||
void chatServiceTest::runTests(){
|
||||
|
||||
}
|
||||
|
||||
void chatServiceTest::insertChatItems(){
|
||||
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -24,9 +24,7 @@
|
|||
*/
|
||||
|
||||
#include "forumservicetest.h"
|
||||
#include "util/utest.h"
|
||||
|
||||
INITTEST()
|
||||
|
||||
// distrib services are tested here
|
||||
int main()
|
||||
|
|
|
@ -29,6 +29,9 @@
|
|||
|
||||
#include "servicetest.h"
|
||||
#include "services/p3forums.h"
|
||||
#include "util/utest.h"
|
||||
|
||||
INITTEST()
|
||||
|
||||
class forumServiceTest : public ServiceTest {
|
||||
|
||||
|
|
|
@ -34,6 +34,8 @@ ServiceTest::ServiceTest()
|
|||
SecurityPolicy *none = secpolicy_create();
|
||||
mPersonGrp = new pqisslpersongrp(none, NULL);
|
||||
mPeers = new p3Peers(mConnMgr);
|
||||
|
||||
mConnMgr->addFriend(fakePeer);
|
||||
}
|
||||
|
||||
ServiceTest::~ServiceTest()
|
||||
|
|
|
@ -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
|
||||
|
||||
};
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue