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