13 EXPECT_EQ(5u, path.GetPoints().size());
15 absl::optional<CFX_FloatRect> rect = path.GetRect(
nullptr);
16 ASSERT_TRUE(rect.has_value());
17 EXPECT_EQ(CFX_FloatRect(1, 2, 3, 5), rect.value());
21 rect = path.GetRect(&kScaleMatrix);
22 ASSERT_TRUE(rect.has_value());
23 EXPECT_EQ(CFX_FloatRect(61, 74, 63, 80), rect.value());
27 EXPECT_EQ(0u, path.GetPoints().size());
36 EXPECT_EQ(4u, path.GetPoints().size());
38 rect = path.GetRect(
nullptr);
39 ASSERT_TRUE(rect.has_value());
40 EXPECT_EQ(CFX_FloatRect(0, 0, 1, 1), rect.value());
45 EXPECT_EQ(4u, path.GetPoints().size());
47 rect = path.GetRect(
nullptr);
48 ASSERT_TRUE(rect.has_value());
49 EXPECT_EQ(CFX_FloatRect(0, 0, 1, 1), rect.value());
54 rect = path.GetRect(
nullptr);
55 ASSERT_TRUE(rect.has_value());
56 EXPECT_EQ(CFX_FloatRect(60, 70, 61, 72), rect.value());
62 rect = path.GetRect(
nullptr);
63 ASSERT_TRUE(rect.has_value());
64 EXPECT_EQ(CFX_FloatRect(1, 2, 3, 5), rect.value());
74 absl::optional<CFX_FloatRect> rect = path.GetRect(&kShearMatrix);
75 EXPECT_FALSE(rect.has_value());
80 rect = path.GetRect(
nullptr);
81 EXPECT_FALSE(rect.has_value());
85 rect = path.GetRect(&shear_inverse_matrix);
86 ASSERT_TRUE(rect.has_value());
87 EXPECT_EQ(CFX_FloatRect(1, 2, 3, 5), rect.value());
92 rect = path.GetRect(
nullptr);
93 ASSERT_TRUE(rect.has_value());
94 EXPECT_EQ(CFX_FloatRect(1, 2, 3, 5), rect.value());
106 ASSERT_EQ(6u, path.GetPoints().size());
108 EXPECT_FALSE(path.IsClosingFigure(5));
110 EXPECT_FALSE(path.GetRect(
nullptr).has_value());
114 ASSERT_EQ(6u, path.GetPoints().size());
116 EXPECT_TRUE(path.IsClosingFigure(5));
118 EXPECT_FALSE(path.GetRect(
nullptr).has_value());
122 ASSERT_EQ(6u, path.GetPoints().size());
124 EXPECT_TRUE(path.IsClosingFigure(5));
126 EXPECT_FALSE(path.GetRect(
nullptr).has_value());
138 EXPECT_FALSE(path.GetRect(
nullptr).has_value());
147 ASSERT_EQ(4u, path.GetPoints().size());
149 EXPECT_FALSE(path.IsClosingFigure(3));
151 absl::optional<CFX_FloatRect> rect = path.GetRect(
nullptr);
152 ASSERT_TRUE(rect.has_value());
153 EXPECT_EQ(CFX_FloatRect(0, 0, 1, 1), rect.value());
157 rect = path.GetRect(&kIdentityMatrix);
158 ASSERT_TRUE(rect.has_value());
159 EXPECT_EQ(CFX_FloatRect(0, 0, 1, 1), rect.value());
162 ASSERT_EQ(4u, path.GetPoints().size());
164 EXPECT_TRUE(path.IsClosingFigure(3));
166 rect = path.GetRect(
nullptr);
167 ASSERT_TRUE(rect.has_value());
168 EXPECT_EQ(CFX_FloatRect(0, 0, 1, 1), rect.value());
172 ASSERT_EQ(4u, path.GetPoints().size());
174 EXPECT_TRUE(path.IsClosingFigure(3));
176 rect = path.GetRect(
nullptr);
177 ASSERT_TRUE(rect.has_value());
178 EXPECT_EQ(CFX_FloatRect(0, 0, 1, 1), rect.value());
181 ASSERT_EQ(5u, path.GetPoints().size());
183 EXPECT_TRUE(path.IsClosingFigure(3));
185 EXPECT_TRUE(path.IsClosingFigure(4));
187 rect = path.GetRect(
nullptr);
188 ASSERT_TRUE(rect.has_value());
189 EXPECT_EQ(CFX_FloatRect(0, 0, 1, 1), rect.value());
199 ASSERT_EQ(5u, path.GetPoints().size());
201 EXPECT_FALSE(path.IsClosingFigure(4));
203 absl::optional<CFX_FloatRect> rect = path.GetRect(
nullptr);
204 ASSERT_TRUE(rect.has_value());
205 EXPECT_EQ(CFX_FloatRect(0, 0, 2, 1), rect.value());
208 ASSERT_EQ(5u, path.GetPoints().size());
210 EXPECT_TRUE(path.IsClosingFigure(4));
212 rect = path.GetRect(
nullptr);
213 ASSERT_TRUE(rect.has_value());
214 EXPECT_EQ(CFX_FloatRect(0, 0, 2, 1), rect.value());
354 ASSERT_EQ(1u, path.GetPoints().size());
355 EXPECT_EQ(CFX_PointF(5, 6), path.GetPoint(0));
359 ASSERT_EQ(1u, path.GetPoints().size());
360 EXPECT_EQ(CFX_PointF(5, 6), path.GetPoint(0));
363 ASSERT_EQ(2u, path.GetPoints().size());
364 EXPECT_EQ(CFX_PointF(5, 6), path.GetPoint(0));
365 EXPECT_EQ(CFX_PointF(5, 6), path.GetPoint(1));
369 ASSERT_EQ(4u, path.GetPoints().size());
370 EXPECT_EQ(CFX_PointF(5, 6), path.GetPoint(0));
371 EXPECT_EQ(CFX_PointF(5, 6), path.GetPoint(1));
372 EXPECT_EQ(CFX_PointF(65, 82), path.GetPoint(2));
373 EXPECT_EQ(CFX_PointF(65, 82), path.GetPoint(3));