Go to the source code of this file.
◆ EXPECT_SOLID_VERTICES_NEAR
◆ EXPECT_TEXTURE_VERTICES_NEAR
◆ SolidVerticesNear()
Definition at line 17 of file geometry_unittests.cc.
20 if (a.size() !=
b.size()) {
21 return ::testing::AssertionFailure() <<
"Colors length does not match";
23 for (
auto i = 0u; i <
b.size(); i++) {
25 return ::testing::AssertionFailure() <<
"Positions are not equal.";
28 return ::testing::AssertionSuccess();
inline ::testing::AssertionResult PointNear(impeller::Point a, impeller::Point b)
References impeller::saturated::b, and PointNear().
◆ TextureVerticesNear()
| inline ::testing::AssertionResult TextureVerticesNear |
( |
std::vector< impeller::TextureFillVertexShader::PerVertexData > |
a, |
|
|
std::vector< impeller::TextureFillVertexShader::PerVertexData > |
b |
|
) |
| |
Definition at line 31 of file geometry_unittests.cc.
34 if (a.size() !=
b.size()) {
35 return ::testing::AssertionFailure() <<
"Colors length does not match";
37 for (
auto i = 0u; i <
b.size(); i++) {
38 if (!
PointNear(a[i].position,
b[i].position)) {
39 return ::testing::AssertionFailure() <<
"Positions are not equal.";
41 if (!
PointNear(a[i].texture_coords,
b[i].texture_coords)) {
42 return ::testing::AssertionFailure() <<
"Texture coords are not equal.";
45 return ::testing::AssertionSuccess();
References impeller::saturated::b, and PointNear().