ChannelControlsMock.h 717 B

12345678910111213141516171819202122
  1. #ifndef CHANNELCONTROLSMOCK_H
  2. #define CHANNELCONTROLSMOCK_H
  3. #include "../include/CovertChannel/ChannelControls.h"
  4. #include <gmock/gmock.h>
  5. /**
  6. * @class ChannelControlsMock
  7. *
  8. * Gmock stub class for ChannelControls so you can test without starting an actual covert channel.
  9. */
  10. class ChannelControlsMock : public ChannelControls {
  11. public:
  12. MOCK_METHOD(bool, sendFile, (const std::string &fileName), (override));
  13. MOCK_METHOD((std::pair<uint32_t, uint32_t>), getProgress, (), (override));
  14. MOCK_METHOD(std::time_t, getTransferStart, (), (override));
  15. MOCK_METHOD(bool, isTransferRunning, (), (override));
  16. MOCK_METHOD(void, reset, (), (override));
  17. MOCK_METHOD(std::string, getFileName, (), (override));
  18. };
  19. #endif