aria2/test/SpeedCalcTest.cc

29 lines
461 B
C++
Raw Normal View History

2006-09-23 11:58:23 +00:00
#include "SpeedCalc.h"
#include <string>
#include <cppunit/extensions/HelperMacros.h>
namespace aria2 {
2006-09-23 11:58:23 +00:00
class SpeedCalcTest : public CppUnit::TestFixture {
2006-09-23 11:58:23 +00:00
CPPUNIT_TEST_SUITE(SpeedCalcTest);
CPPUNIT_TEST(testUpdate);
CPPUNIT_TEST_SUITE_END();
private:
2006-09-23 11:58:23 +00:00
public:
void setUp() {}
2006-09-23 11:58:23 +00:00
void testUpdate();
};
CPPUNIT_TEST_SUITE_REGISTRATION(SpeedCalcTest);
2006-09-23 11:58:23 +00:00
void SpeedCalcTest::testUpdate()
{
2006-09-23 11:58:23 +00:00
SpeedCalc calc;
calc.update(1000);
}
} // namespace aria2