From 80519c92fa4a303f7e9b5335f388d67d72c3cc8b Mon Sep 17 00:00:00 2001 From: nick black Date: Tue, 26 Nov 2019 20:19:16 -0500 Subject: [PATCH] libav: add LoadVideo unit test #35 --- include/notcurses.h | 2 +- tests/libav.cpp | 7 ++++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/include/notcurses.h b/include/notcurses.h index 7f641db11..0d2243ea2 100644 --- a/include/notcurses.h +++ b/include/notcurses.h @@ -357,7 +357,7 @@ cell_wide_p(const cell* c){ } // multimedia functionality -int notcurses_image_open(struct notcurses* nc, const char* filename); +int notcurses_visual_open(struct notcurses* nc, const char* filename); #ifdef __cplusplus } // extern "C" diff --git a/tests/libav.cpp b/tests/libav.cpp index 3a34dfb4f..763e04583 100644 --- a/tests/libav.cpp +++ b/tests/libav.cpp @@ -23,6 +23,11 @@ class LibavTest : public :: testing::Test { }; TEST_F(LibavTest, LoadImage) { - int ret = notcurses_image_open(nc_, "../tools/dsscaw-purp.png"); + int ret = notcurses_visual_open(nc_, "../tools/dsscaw-purp.png"); + ASSERT_EQ(0, ret); +} + +TEST_F(LibavTest, LoadVideo) { + int ret = notcurses_visual_open(nc_, "../tools/atliens.mkv"); ASSERT_EQ(0, ret); }