MockPosixWriter.hpp 667 B

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