MockPosixReader.hpp 697 B

1234567891011121314151617181920212223242526272829
  1. /*
  2. * Author: Patrick-Christopher Mattulat
  3. * Company: Lynar Studios
  4. * E-Mail: webmaster@lynarstudios.com
  5. * Created: 2022-12-16
  6. * Changed: 2022-12-25
  7. *
  8. * */
  9. #ifndef LS_STD_MOCK_POSIX_READER_HPP
  10. #define LS_STD_MOCK_POSIX_READER_HPP
  11. #include <ls_std/ls_std_common.hpp>
  12. #include <gmock/gmock.h>
  13. namespace ls_std_core_test
  14. {
  15. class MockPosixReader : public ls::std::common::interface_type::IPosixReader // TODO: move to "common" module
  16. {
  17. public:
  18. MockPosixReader() = default;
  19. ~MockPosixReader() override = default;
  20. MOCK_METHOD(size_t, read, (int _unixFileDescriptor, void* _buffer, size_t _size), (override));
  21. };
  22. }
  23. #endif