diff --git a/libs/evoral/test/SMFTest.cpp b/libs/evoral/test/SMFTest.cpp index 2a299be1f3..9bc6c639d9 100644 --- a/libs/evoral/test/SMFTest.cpp +++ b/libs/evoral/test/SMFTest.cpp @@ -20,15 +20,15 @@ SMFTest::takeFiveTest () TestSMF smf; smf.open("./test/testdata/TakeFive.mid"); CPPUNIT_ASSERT(!smf.is_empty()); - + seq->start_write(); smf.seek_to_start(); uint64_t time = 0; /* in SMF ticks */ Evoral::Event ev; - + const double frames_per_beat = 100.0; - + uint32_t delta_t = 0; uint32_t size = 0; uint8_t* buf = NULL; @@ -36,7 +36,7 @@ SMFTest::takeFiveTest () while ((ret = smf.read_event(&delta_t, &size, &buf)) >= 0) { ev.set(buf, size, 0.0); time += delta_t; - + if (ret > 0) { // didn't skip (meta) event //cerr << "read smf event type " << hex << int(buf[0]) << endl; // make ev.time absolute time in frames diff --git a/libs/evoral/test/SMFTest.hpp b/libs/evoral/test/SMFTest.hpp index 77ccb54572..1dbceee6ab 100644 --- a/libs/evoral/test/SMFTest.hpp +++ b/libs/evoral/test/SMFTest.hpp @@ -1,16 +1,16 @@ /* This file is part of Evoral. * Copyright(C) 2000-2008 Paul Davis * Author: Hans Baier - * + * * Evoral is free software; you can redistribute it and/or modify it under the * terms of the GNU General Public License as published by the Free Software * Foundation; either version 2 of the License, or(at your option) any later * version. - * + * * Evoral is distributed in the hope that it will be useful, but WITHOUT ANY * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS * FOR A PARTICULAR PURPOSE. See the GNU General Public License for details. - * + * * You should have received a copy of the GNU General Public License along * with this program; if not, write to the Free Software Foundation, Inc., * 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA @@ -29,16 +29,16 @@ using namespace Evoral; class TestSMF : public SMF { public: std::string path() const { return _path; } - + int open(const std::string& path) THROW_FILE_ERROR { _path = path; return SMF::open(path); } - + void close() THROW_FILE_ERROR { return SMF::close(); } - + int read_event(uint32_t* delta_t, uint32_t* size, uint8_t** buf) const { return SMF::read_event(delta_t, size, buf); } @@ -49,31 +49,31 @@ private: class SMFTest : public CppUnit::TestFixture { - CPPUNIT_TEST_SUITE(SMFTest); - CPPUNIT_TEST(createNewFileTest); - CPPUNIT_TEST(takeFiveTest); - CPPUNIT_TEST_SUITE_END(); + CPPUNIT_TEST_SUITE(SMFTest); + CPPUNIT_TEST(createNewFileTest); + CPPUNIT_TEST(takeFiveTest); + CPPUNIT_TEST_SUITE_END(); - public: - typedef double Time; - - void setUp() { - type_map = new DummyTypeMap(); - assert(type_map); - seq = new MySequence