Go to the source code of this file.
◆ EXPECT_SOLID_VERTICES_NEAR
◆ EXPECT_TEXTURE_VERTICES_NEAR
◆ SolidVerticesNear()
inline ::testing::AssertionResult SolidVerticesNear |
( |
std::vector< impeller::SolidFillVertexShader::PerVertexData > |
a, |
|
|
std::vector< impeller::SolidFillVertexShader::PerVertexData > |
b |
|
) |
| |
Definition at line 16 of file geometry_unittests.cc.
18 {
19 if (
a.size() !=
b.size()) {
20 return ::testing::AssertionFailure() << "Colors length does not match";
21 }
22 for (
auto i = 0u;
i <
b.size();
i++) {
24 return ::testing::AssertionFailure() << "Positions are not equal.";
25 }
26 }
27 return ::testing::AssertionSuccess();
28}
inline ::testing::AssertionResult PointNear(impeller::Point a, impeller::Point b)
◆ TextureVerticesNear()
inline ::testing::AssertionResult TextureVerticesNear |
( |
std::vector< impeller::TextureFillVertexShader::PerVertexData > |
a, |
|
|
std::vector< impeller::TextureFillVertexShader::PerVertexData > |
b |
|
) |
| |
Definition at line 30 of file geometry_unittests.cc.
32 {
33 if (
a.size() !=
b.size()) {
34 return ::testing::AssertionFailure() << "Colors length does not match";
35 }
36 for (
auto i = 0u;
i <
b.size();
i++) {
38 return ::testing::AssertionFailure() << "Positions are not equal.";
39 }
41 return ::testing::AssertionFailure() << "Texture coords are not equal.";
42 }
43 }
44 return ::testing::AssertionSuccess();
45}