Commit e7ce21e4 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Rudimentary test case for libvlc_event_type_name()

parent 2f63e68b
...@@ -55,6 +55,8 @@ static void test_event_type_reception( libvlc_event_manager_t * em, libvlc_event ...@@ -55,6 +55,8 @@ static void test_event_type_reception( libvlc_event_manager_t * em, libvlc_event
assert (*callback_was_called); assert (*callback_was_called);
} }
#include <string.h>
static void test_events (const char ** argv, int argc) static void test_events (const char ** argv, int argc)
{ {
libvlc_instance_t *vlc; libvlc_instance_t *vlc;
...@@ -81,6 +83,9 @@ static void test_events (const char ** argv, int argc) ...@@ -81,6 +83,9 @@ static void test_events (const char ** argv, int argc)
em = libvlc_media_player_event_manager (mi); em = libvlc_media_player_event_manager (mi);
for( int i = 0; i < 0x700; i++ )
strlen(libvlc_event_type_name( i ));
log ("+ Testing attaching to Media Instance\n"); log ("+ Testing attaching to Media Instance\n");
for (int i = 0; i < mi_events_len; i++) { for (int i = 0; i < mi_events_len; i++) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment