#include <stddef.h>
#include <algorithm>
#include <vector>
#include "cc/base/tiling_data.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace cc {
namespace {
void TestSpiralIterate(int source_line_number,
const TilingData& tiling_data,
const gfx::Rect& consider,
const gfx::Rect& ignore,
const gfx::Rect& center,
const std::vector<std::pair<int, int>>& expected) { … }
class SpiralIteratorTest : public ::testing::TestWithParam<gfx::Vector2d> { … };
INSTANTIATE_TEST_SUITE_P(…);
TEST_P(SpiralIteratorTest, NoIgnoreFullConsider) { … }
TEST_P(SpiralIteratorTest, SmallConsider) { … }
TEST_P(SpiralIteratorTest, HasIgnore) { … }
TEST_P(SpiralIteratorTest, RectangleCenter) { … }
TEST_P(SpiralIteratorTest, EdgeCases) { … }
}
}