]> git.sesse.net Git - vlc/blobdiff - src/test/url.c
fix testapi test: libvlc_instance_(play|pause|stop) are asynchronous, so wait for...
[vlc] / src / test / url.c
index b1accf1a9cd38551834f31db607ff4d775f92308..3ae9798140a52fe64f99b280f6cb9f88f872a820 100644 (file)
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
  *****************************************************************************/
 
+#ifdef HAVE_CONFIG_H
+# include "config.h"
+#endif
+
 #include <vlc/vlc.h>
 #include "vlc_url.h"
+#include "vlc_strings.h"
 
 #include <stdio.h>
 #include <stdlib.h>
@@ -81,10 +86,12 @@ int main (void)
 
     /* Base 64 tests */
     test_b64 ("", "");
-    test_b64 ("d", "ZA==");
-    test_b64 ("ab", "YQG=");
-    test_b64 ("abc", "YQGI");
-    test_b64 ("abcd", "YQGIZA==");
+    test_b64 ("f", "Zg==");
+    test_b64 ("fo", "Zm8=");
+    test_b64 ("foo", "Zm9v");
+    test_b64 ("foob", "Zm9vYg==");
+    test_b64 ("fooba", "Zm9vYmE=");
+    test_b64 ("foobar", "Zm9vYmFy");
 
     return 0;
 }