Add some missing FileRef tests.

This commit is contained in:
Tsuda Kageyu 2016-02-06 21:56:51 +09:00
parent cc2ccbc20c
commit 184a151d41

View File

@ -38,6 +38,7 @@
#include <mp4file.h>
#include <wavfile.h>
#include <apefile.h>
#include <aifffile.h>
#include <cppunit/extensions/HelperMacros.h>
#include "utils.h"
#include <tfilestream.h>
@ -75,6 +76,8 @@ class TestFileRef : public CppUnit::TestFixture
CPPUNIT_TEST(testTrueAudio);
CPPUNIT_TEST(testAPE);
CPPUNIT_TEST(testWav);
CPPUNIT_TEST(testAIFF_1);
CPPUNIT_TEST(testAIFF_2);
CPPUNIT_TEST(testUnsupported);
CPPUNIT_TEST(testFileResolver);
CPPUNIT_TEST_SUITE_END();
@ -215,6 +218,16 @@ public:
fileRefSave<APE::File>("mac-399", ".ape");
}
void testAIFF_1()
{
fileRefSave<RIFF::AIFF::File>("empty", ".aiff");
}
void testAIFF_2()
{
fileRefSave<RIFF::AIFF::File>("alaw", ".aifc");
}
void testUnsupported()
{
FileRef f1(TEST_FILE_PATH_C("no-extension"));