[vlc-commits] test: check base64 decoding

Rémi Denis-Courmont git at videolan.org
Thu Mar 28 16:51:50 CET 2019


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Thu Mar 28 17:29:15 2019 +0200| [2161f7673aa3834d724b80a646cc08009a11dc55] | committer: Rémi Denis-Courmont

test: check base64 decoding

This reuses the same test cases as encoding, in reverse.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=2161f7673aa3834d724b80a646cc08009a11dc55
---

 src/test/url.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/test/url.c b/src/test/url.c
index de2b6fc51c..38dde8c1dc 100644
--- a/src/test/url.c
+++ b/src/test/url.c
@@ -73,7 +73,8 @@ static inline void test_decode (const char *in, const char *out)
 
 static inline void test_b64 (const char *in, const char *out)
 {
-    test (vlc_b64_encode, in, out);
+    test(vlc_b64_encode, in, out);
+    test(vlc_b64_decode, out, in);
 }
 
 static char *make_URI_def (const char *in)



More information about the vlc-commits mailing list