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 14 of file geometry_unittests.cc.
17 if (a.size() !=
b.size()) {
18 return ::testing::AssertionFailure() <<
"Colors length does not match";
20 for (
auto i = 0u; i <
b.size(); i++) {
21 if (!
PointNear(a[i].position,
b[i].position)) {
22 return ::testing::AssertionFailure() <<
"Positions are not equal.";
25 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 28 of file geometry_unittests.cc.
31 if (a.size() !=
b.size()) {
32 return ::testing::AssertionFailure() <<
"Colors length does not match";
34 for (
auto i = 0u; i <
b.size(); i++) {
35 if (!
PointNear(a[i].position,
b[i].position)) {
36 return ::testing::AssertionFailure() <<
"Positions are not equal.";
38 if (!
PointNear(a[i].texture_coords,
b[i].texture_coords)) {
39 return ::testing::AssertionFailure() <<
"Texture coords are not equal.";
42 return ::testing::AssertionSuccess();
References impeller::saturated::b, and PointNear().