SFML/test/TestUtilities/WindowUtil.hpp

25 lines
657 B
C++
Raw Normal View History

// Header for SFML unit tests.
//
// For a new window module test case, include this header.
2021-12-24 14:31:27 +01:00
// This ensures that string conversions are visible and can be used by doctest for debug output.
#pragma once
#include <SystemUtil.hpp>
2023-02-04 00:06:22 -07:00
#ifdef SFML_RUN_DISPLAY_TESTS
static constexpr bool skipDisplayTests = false;
#else
static constexpr bool skipDisplayTests = true;
#endif
2021-12-24 14:31:27 +01:00
// String conversions for doctest framework
namespace sf
{
2022-07-04 11:20:58 -05:00
class VideoMode;
// Required because WindowUtil.cpp doesn't include WindowUtil.hpp
// NOLINTNEXTLINE(readability-redundant-declaration)
2022-07-04 23:46:34 -06:00
std::ostream& operator<<(std::ostream& os, const VideoMode& videoMode);
2022-07-04 11:20:58 -05:00
} // namespace sf