SFML/test/TestUtilities/WindowUtil.hpp

24 lines
675 B
C++
Raw Permalink Normal View History

// Header for SFML unit tests.
//
// For a new window module test case, include this header.
2023-01-18 12:51:08 +08:00
// This ensures that string conversions are visible and can be used by Catch2 for debug output.
#pragma once
#include <SystemUtil.hpp>
2023-01-18 12:51:08 +08:00
#include <string>
2023-01-18 12:51:08 +08:00
// Required because WindowUtil.cpp doesn't include WindowUtil.hpp
// NOLINTNEXTLINE(readability-redundant-declaration)
std::string runDisplayTests();
2023-02-04 15:06:22 +08:00
2023-01-18 12:51:08 +08:00
// String conversions for Catch2
namespace sf
{
2022-07-05 00:20:58 +08:00
class VideoMode;
// Required because WindowUtil.cpp doesn't include WindowUtil.hpp
// NOLINTNEXTLINE(readability-redundant-declaration)
2022-07-05 13:46:34 +08:00
std::ostream& operator<<(std::ostream& os, const VideoMode& videoMode);
2022-07-05 00:20:58 +08:00
} // namespace sf