more solo/mute architecture work. NOTE: changes to mute points are ignored right now
[ardour.git] / libs / taglib / tests / test_mpeg.cpp
1 #include <cppunit/extensions/HelperMacros.h>
2 #include <string>
3 #include <stdio.h>
4 #include <mpegfile.h>
5
6 using namespace std;
7 using namespace TagLib;
8
9 class TestMPEG : public CppUnit::TestFixture
10 {
11   CPPUNIT_TEST_SUITE(TestMPEG);
12   CPPUNIT_TEST(testVersion2DurationWithXingHeader);
13   CPPUNIT_TEST_SUITE_END();
14
15 public:
16
17   void testVersion2DurationWithXingHeader()
18   {
19     MPEG::File f("data/mpeg2.mp3");
20     CPPUNIT_ASSERT_EQUAL(5387, f.audioProperties()->length());
21   }
22
23 };
24
25 CPPUNIT_TEST_SUITE_REGISTRATION(TestMPEG);