#ifndef UI_COMPOSITOR_TEST_TEST_UTILS_H_
#define UI_COMPOSITOR_TEST_TEST_UTILS_H_
#include <optional>
#include "base/time/time.h"
namespace gfx {
class Rect;
class RoundedCornersF;
class Transform;
}
namespace ui {
class Compositor;
void CheckApproximatelyEqual(const gfx::Transform& lhs,
const gfx::Transform& rhs);
void CheckApproximatelyEqual(const gfx::Rect& lhs, const gfx::Rect& rhs);
void CheckApproximatelyEqual(const gfx::RoundedCornersF& lhs,
const gfx::RoundedCornersF& rhs);
[[nodiscard]] bool WaitForNextFrameToBePresented(
ui::Compositor* compositor,
std::optional<base::TimeDelta> timeout = std::nullopt);
}
#endif