Mercurial > trustbridge
comparison ui/tests/certlistparsertest.cpp @ 50:a7b8cb29f1f6
Rename random files to garbage to clarify what they contain
author | Andre Heinecke <aheinecke@intevation.de> |
---|---|
date | Mon, 17 Mar 2014 11:36:42 +0000 |
parents | 6e7ef7e95031 |
children | be13e5e0a98f |
comparison
equal
deleted
inserted
replaced
49:c389915fd55e | 50:a7b8cb29f1f6 |
---|---|
49 delete certList; | 49 delete certList; |
50 } | 50 } |
51 | 51 |
52 void CertListTest::testGarbage() | 52 void CertListTest::testGarbage() |
53 { | 53 { |
54 const char *fnames[] = {"random_500KB", | 54 const char *fnames[] = {"garbage_500KB", |
55 "list-with-null.txt", | 55 "list-with-null.txt", |
56 NULL}; | 56 NULL}; |
57 for (int i=0; fnames[i] != NULL; i++) { | 57 for (int i=0; fnames[i] != NULL; i++) { |
58 CertificateList *certList = testWithFile(fnames[i]); | 58 CertificateList *certList = testWithFile(fnames[i]); |
59 QCOMPARE (certList->getStatus(), InvalidFormat); | 59 QCOMPARE (certList->getStatus(), InvalidFormat); |
61 } | 61 } |
62 } | 62 } |
63 | 63 |
64 void CertListTest::testTooLarge() | 64 void CertListTest::testTooLarge() |
65 { | 65 { |
66 const char *fname = "random_2MB"; | 66 const char *fname = "garbage_2MB"; |
67 CertificateList *certList = testWithFile(fname); | 67 CertificateList *certList = testWithFile(fname); |
68 QCOMPARE (certList->getStatus(), TooLarge); | 68 QCOMPARE (certList->getStatus(), TooLarge); |
69 QVERIFY (!certList->isValid()); | 69 QVERIFY (!certList->isValid()); |
70 delete certList; | 70 delete certList; |
71 } | 71 } |