blob: 6278ff55eef11209164dc166b94506a26999482b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
#include <cppunit/extensions/HelperMacros.h>
#include <string>
#include <stdio.h>
#include <mpegfile.h>
using namespace std;
using namespace TagLib;
class TestMPEG : public CppUnit::TestFixture
{
CPPUNIT_TEST_SUITE(TestMPEG);
CPPUNIT_TEST(testVersion2DurationWithXingHeader);
CPPUNIT_TEST_SUITE_END();
public:
void testVersion2DurationWithXingHeader()
{
MPEG::File f("data/mpeg2.mp3");
CPPUNIT_ASSERT_EQUAL(5387, f.audioProperties()->length());
}
};
CPPUNIT_TEST_SUITE_REGISTRATION(TestMPEG);
|