QueueMock.cpp 386 B

123456789101112131415
  1. #include "../include/Queue.h"
  2. namespace Queue {
  3. std::deque<std::string> queue;
  4. std::string fileName = "";
  5. ChannelControls *channel;
  6. } // namespace Queue
  7. bool Queue::push(const std::string &file) { return file == "positive"; }
  8. bool Queue::remove(const std::string &file) { return file == "positive"; }
  9. void Queue::schedule() {}
  10. std::string Queue::curTransfer() { return fileName; }