Mercurial > trustbridge
comparison ui/tests/certlistparsertest.cpp @ 203:60c5df8e7980
Reinitialize certificatelist when readFile is called
author | Andre Heinecke <andre.heinecke@intevation.de> |
---|---|
date | Wed, 26 Mar 2014 13:29:09 +0100 |
parents | 0861069fd6d0 |
children | 825b42da1855 |
comparison
equal
deleted
inserted
replaced
202:0861069fd6d0 | 203:60c5df8e7980 |
---|---|
52 QVERIFY(remoLines.size() == remoList.size()); | 52 QVERIFY(remoLines.size() == remoList.size()); |
53 | 53 |
54 Certificate cert; | 54 Certificate cert; |
55 QVERIFY(!cert.isValid()); | 55 QVERIFY(!cert.isValid()); |
56 | 56 |
57 CertificateList *certList2= testWithFile(fname); | 57 certList->readList(fileName.toLocal8Bit().data()); |
58 const QList<Certificate> instList2 = certList2->getInstallCertificates(); | 58 |
59 const QList<Certificate> remoList2 = certList2->getRemoveCertificates(); | 59 const QList<Certificate> instList2 = certList->getInstallCertificates(); |
60 const QList<Certificate> remoList2 = certList->getRemoveCertificates(); | |
60 QVERIFY(instLines.size() == instList2.size()); | 61 QVERIFY(instLines.size() == instList2.size()); |
61 QVERIFY(remoLines.size() == remoList2.size()); | 62 QVERIFY(remoLines.size() == remoList2.size()); |
62 | 63 |
63 delete certList; | 64 delete certList; |
64 } | 65 } |