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.
19 if (a.size() !=
b.size()) {
20 return ::testing::AssertionFailure() <<
"Colors length does not match";
22 for (
auto i = 0u; i <
b.size(); i++) {
23 if (!
PointNear(a[i].position,
b[i].position)) {
24 return ::testing::AssertionFailure() <<
"Positions are not equal.";
27 return ::testing::AssertionSuccess();
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 30 of file geometry_unittests.cc.
33 if (a.size() !=
b.size()) {
34 return ::testing::AssertionFailure() <<
"Colors length does not match";
36 for (
auto i = 0u; i <
b.size(); i++) {
37 if (!
PointNear(a[i].position,
b[i].position)) {
38 return ::testing::AssertionFailure() <<
"Positions are not equal.";
40 if (!
PointNear(a[i].texture_coords,
b[i].texture_coords)) {
41 return ::testing::AssertionFailure() <<
"Texture coords are not equal.";
44 return ::testing::AssertionSuccess();
References impeller::saturated::b, and PointNear().