mirror of
https://github.com/aria2/aria2.git
synced 2025-04-05 13:37:40 +03:00
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:
parent
d82e183d34
commit
1b7c198289
801 changed files with 12024 additions and 8627 deletions
|
@ -3,13 +3,15 @@
|
|||
|
||||
#include "DHTTaskQueue.h"
|
||||
|
||||
namespace aria2 {
|
||||
|
||||
class MockDHTTaskQueue:public DHTTaskQueue {
|
||||
public:
|
||||
DHTTasks _periodicTaskQueue1;
|
||||
std::deque<SharedHandle<DHTTask> > _periodicTaskQueue1;
|
||||
|
||||
DHTTasks _periodicTaskQueue2;
|
||||
std::deque<SharedHandle<DHTTask> > _periodicTaskQueue2;
|
||||
|
||||
DHTTasks _immediateTaskQueue;
|
||||
std::deque<SharedHandle<DHTTask> > _immediateTaskQueue;
|
||||
|
||||
MockDHTTaskQueue() {}
|
||||
|
||||
|
@ -17,20 +19,22 @@ public:
|
|||
|
||||
virtual void executeTask() {}
|
||||
|
||||
virtual void addPeriodicTask1(const DHTTaskHandle& task)
|
||||
virtual void addPeriodicTask1(const SharedHandle<DHTTask>& task)
|
||||
{
|
||||
_periodicTaskQueue1.push_back(task);
|
||||
}
|
||||
|
||||
virtual void addPeriodicTask2(const DHTTaskHandle& task)
|
||||
virtual void addPeriodicTask2(const SharedHandle<DHTTask>& task)
|
||||
{
|
||||
_periodicTaskQueue2.push_back(task);
|
||||
}
|
||||
|
||||
virtual void addImmediateTask(const DHTTaskHandle& task)
|
||||
virtual void addImmediateTask(const SharedHandle<DHTTask>& task)
|
||||
{
|
||||
_immediateTaskQueue.push_back(task);
|
||||
}
|
||||
};
|
||||
|
||||
} // namespace aria2
|
||||
|
||||
#endif // _D_MOCK_DHT_TASK_QUEUE_H_
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue