#ifdef UNSAFE_BUFFERS_BUILD
#pragma allow_unsafe_buffers
#endif
#include "components/viz/common/frame_sinks/copy_output_util.h"
#include <limits>
#include "testing/gtest/include/gtest/gtest.h"
#include "ui/gfx/geometry/rect.h"
#include "ui/gfx/geometry/vector2d.h"
namespace viz {
namespace copy_output {
namespace {
constexpr int kMaxInt = …;
constexpr int kMaxEvenInt = …;
constexpr gfx::Vector2d kNonScalingVectors[5][2] = …;
constexpr gfx::Vector2d kDoublingXVectors[4][2] = …;
constexpr gfx::Vector2d kDoublingYVectors[4][2] = …;
constexpr gfx::Vector2d kHalvingXVectors[4][2] = …;
constexpr gfx::Vector2d kHalvingYVectors[4][2] = …;
TEST(CopyOutputUtil, ComputesValidResultRects) { … }
TEST(CopyOutputUtil, IdentifiesUnreasonableResultRects) { … }
}
}
}