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.
This commit is contained in:
Tatsuhiro Tsujikawa 2008-02-08 15:53:45 +00:00
parent d82e183d34
commit 1b7c198289
801 changed files with 12024 additions and 8627 deletions

View file

@ -3,6 +3,9 @@
#include <cppunit/extensions/TestFactoryRegistry.h>
#include <cppunit/ui/text/TestRunner.h>
using aria2::SharedHandle;
using aria2::SingletonHolder;
int main(int argc, char* argv[]) {
CppUnit::Test* suite = CppUnit::TestFactoryRegistry::getRegistry().makeTest();
CppUnit::TextUi::TestRunner runner;
@ -11,8 +14,8 @@ int main(int argc, char* argv[]) {
runner.setOutputter(new CppUnit::CompilerOutputter(&runner.result(), std::cerr));
// setup
CookieBoxFactoryHandle cookieBoxFactory = new CookieBoxFactory();
CookieBoxFactorySingletonHolder::instance(cookieBoxFactory);
SharedHandle<aria2::CookieBoxFactory> cookieBoxFactory = new aria2::CookieBoxFactory();
SingletonHolder<SharedHandle<aria2::CookieBoxFactory> >::instance(cookieBoxFactory);
// Run the tests.
bool successfull = runner.run();