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
|
|
|
|
2015-12-27 09:39:47 +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();
|
|
|
|
|
2015-12-27 09:39:47 +00:00
|
|
|
private:
|
2006-09-23 11:58:23 +00:00
|
|
|
public:
|
2015-12-27 09:39:47 +00:00
|
|
|
void setUp() {}
|
2006-09-23 11:58:23 +00:00
|
|
|
|
|
|
|
void testUpdate();
|
|
|
|
};
|
|
|
|
|
2015-12-27 09:39:47 +00:00
|
|
|
CPPUNIT_TEST_SUITE_REGISTRATION(SpeedCalcTest);
|
2006-09-23 11:58:23 +00:00
|
|
|
|
2015-12-27 09:39:47 +00:00
|
|
|
void SpeedCalcTest::testUpdate()
|
|
|
|
{
|
2006-09-23 11:58:23 +00:00
|
|
|
SpeedCalc calc;
|
|
|
|
calc.update(1000);
|
|
|
|
}
|
2008-02-08 15:53:45 +00:00
|
|
|
|
|
|
|
} // namespace aria2
|