#ifndef D_MOCK_DHT_TASK_QUEUE_H #define D_MOCK_DHT_TASK_QUEUE_H #include "DHTTaskQueue.h" namespace aria2 { class MockDHTTaskQueue:public DHTTaskQueue { public: std::deque > periodicTaskQueue1_; std::deque > periodicTaskQueue2_; std::deque > immediateTaskQueue_; MockDHTTaskQueue() {} virtual ~MockDHTTaskQueue() {} virtual void executeTask() {} virtual void addPeriodicTask1(const SharedHandle& task) { periodicTaskQueue1_.push_back(task); } virtual void addPeriodicTask2(const SharedHandle& task) { periodicTaskQueue2_.push_back(task); } virtual void addImmediateTask(const SharedHandle& task) { immediateTaskQueue_.push_back(task); } }; } // namespace aria2 #endif // D_MOCK_DHT_TASK_QUEUE_H