mirror of https://github.com/aria2/aria2
28 lines
446 B
C++
28 lines
446 B
C++
#include "SpeedCalc.h"
|
|
#include <string>
|
|
#include <cppunit/extensions/HelperMacros.h>
|
|
|
|
using namespace std;
|
|
|
|
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);
|
|
}
|