diff ui/tests/commontest.cpp @ 239:6b4ad6ccc48e

Change the specification of str_b64_decode so that it matches the way how polarssl handles base64 decoding.
author Andre Heinecke <aheinecke@intevation.de>
date Fri, 28 Mar 2014 14:20:08 +0000
parents 6435e28ae753
children 17e1c8f37d72
line wrap: on
line diff
--- a/ui/tests/commontest.cpp	Fri Mar 28 14:18:53 2014 +0000
+++ b/ui/tests/commontest.cpp	Fri Mar 28 14:20:08 2014 +0000
@@ -12,9 +12,8 @@
     int ret = -1;
     ret = str_base64_decode(&data, &data_size, (char *)foo, 5);
 
-    QVERIFY(ret != 0);
-    QVERIFY(data == NULL);
-    QVERIFY(data_size == 0);
+    QVERIFY(ret == 0);
+    QVERIFY(data == QString::fromLatin1("foo"));
     free(data);
 }
 

http://wald.intevation.org/projects/trustbridge/