Mercurial > trustbridge
comparison ui/tests/certlistparsertest.cpp @ 95:b0b1375dfd40
Add check for default ctor of Certificate. Fix return value of empty file
author | Andre Heinecke <aheinecke@intevation.de> |
---|---|
date | Fri, 21 Mar 2014 10:12:41 +0000 |
parents | abc76b750ea8 |
children | 0861069fd6d0 |
comparison
equal
deleted
inserted
replaced
94:f1ebab8639dc | 95:b0b1375dfd40 |
---|---|
49 QVERIFY(instList.size() >= 1); | 49 QVERIFY(instList.size() >= 1); |
50 QVERIFY(remoList.size() >= 1); | 50 QVERIFY(remoList.size() >= 1); |
51 QVERIFY(instLines.size() == instList.size()); | 51 QVERIFY(instLines.size() == instList.size()); |
52 QVERIFY(remoLines.size() == remoList.size()); | 52 QVERIFY(remoLines.size() == remoList.size()); |
53 | 53 |
54 Certificate cert; | |
55 QVERIFY(!cert.isValid()); | |
56 | |
54 | 57 |
55 delete certList; | 58 delete certList; |
56 } | 59 } |
57 | 60 |
58 void CertListTest::testInvalidSig() | 61 void CertListTest::testInvalidSig() |
86 void CertListTest::testEmptyFile() | 89 void CertListTest::testEmptyFile() |
87 { | 90 { |
88 const char *fname = "empty_file"; | 91 const char *fname = "empty_file"; |
89 CertificateList *certList = testWithFile(fname); | 92 CertificateList *certList = testWithFile(fname); |
90 printf("Status :%i\n ",certList->getStatus()); | 93 printf("Status :%i\n ",certList->getStatus()); |
91 QCOMPARE (certList->getStatus(), UnknownError); | 94 QCOMPARE (certList->getStatus(), SeekFailed); |
92 delete certList; | 95 delete certList; |
93 } | 96 } |
94 | 97 |
95 void CertListTest::testGarbage() | 98 void CertListTest::testGarbage() |
96 { | 99 { |