You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
notcurses/tests/libav.cpp

26 lines
567 B
C++

#include <notcurses.h>
#include "main.h"
class LibavTest : public :: testing::Test {
protected:
void SetUp() override {
}
void TearDown() override {
}
};
TEST_F(LibavTest, LoadImage) {
5 years ago
auto ncv = notcurses_visual_open(nullptr, "../tools/dsscaw-purp.png");
ASSERT_NE(nullptr, ncv);
ASSERT_NE(nullptr, ncvisual_decode(ncv));
5 years ago
ncvisual_destroy(ncv);
}
TEST_F(LibavTest, LoadVideo) {
5 years ago
auto ncv = notcurses_visual_open(nullptr, "../tools/atliens.mkv");
ASSERT_NE(nullptr, ncv);
ASSERT_NE(nullptr, ncvisual_decode(ncv));
5 years ago
ncvisual_destroy(ncv);
}