aria2/test/SpeedCalcTest.cc
Tatsuhiro Tsujikawa 1b7c198289 2008-02-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
Removed "using namespace std;" from all sources. Appended std:: 
prefix to c++
	standard classes.
	Included string.h where mem* function are used.
2008-02-08 15:53:45 +00:00

30 lines
465 B
C++

#include "SpeedCalc.h"
#include <string>
#include <cppunit/extensions/HelperMacros.h>
namespace aria2 {
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);
}
} // namespace aria2