PosixReaderTest.cpp 877 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. /*
  2. * Author: Patrick-Christopher Mattulat
  3. * Company: Lynar Studios
  4. * E-Mail: webmaster@lynarstudios.com
  5. * Created: 2022-11-16
  6. * Changed: 2022-12-16
  7. *
  8. * */
  9. #include <gtest/gtest.h>
  10. #include <ls_std/ls_std_core.hpp>
  11. #include <memory>
  12. using namespace ls::std::core;
  13. using namespace ls::std::core::api;
  14. using namespace ls::std::core::interface_type;
  15. using namespace ::std;
  16. namespace
  17. {
  18. class PosixReaderTest : public ::testing::Test // TODO: remove, when vtable issue has been clarified
  19. {
  20. protected:
  21. PosixReaderTest() = default;
  22. ~PosixReaderTest() override = default;
  23. void SetUp() override
  24. {}
  25. void TearDown() override
  26. {}
  27. };
  28. TEST_F(PosixReaderTest, memory)
  29. {
  30. shared_ptr<IPosixReader> posixReader = make_shared<PosixReader>();
  31. ASSERT_TRUE(posixReader != nullptr);
  32. }
  33. }