mirror of
https://github.com/aria2/aria2.git
synced 2025-01-06 01:54:17 +00:00
1b7c198289
Removed "using namespace std;" from all sources. Appended std:: prefix to c++ standard classes. Included string.h where mem* function are used.
30 lines
465 B
C++
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
|