20TEST(XfaUtilsImpTest, XFA_MapRotation) {
21 static const TestCase kTestCases[] = {
22 {-1000000, 80}, {-361, 359}, {-360, 0}, {-359, 1}, {-91, 269},
23 {-90, 270}, {-89, 271}, {-1, 359}, {0, 0}, {1, 1},
24 {89, 89}, {90, 90}, {91, 91}, {359, 359}, {360, 0},
25 {361, 1}, {100000, 280}};
26 for (
const TestCase& item : kTestCases) {
27 EXPECT_EQ(item.expected_output, XFA_MapRotation(item.input));