Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(75)

Unified Diff: cc/test/geometry_test_utils.h

Issue 2971503002: Transform animations should not collapse by default when interpolating (Closed)
Patch Set: . Created 3 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cc/test/animation_timelines_test_common.h ('k') | cc/test/geometry_test_utils.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/test/geometry_test_utils.h
diff --git a/cc/test/geometry_test_utils.h b/cc/test/geometry_test_utils.h
index 6e015131fa7d676dd378130cc2ff279e10b9657a..18618d14692397fa0f787966949dd1f0f90b63ea 100644
--- a/cc/test/geometry_test_utils.h
+++ b/cc/test/geometry_test_utils.h
@@ -5,6 +5,8 @@
#ifndef CC_TEST_GEOMETRY_TEST_UTILS_H_
#define CC_TEST_GEOMETRY_TEST_UTILS_H_
+#include "cc/cc_export.h"
+
namespace gfx {
class Transform;
}
@@ -96,6 +98,16 @@ void ExpectTransformationMatrixEq(const gfx::Transform& expected,
ExpectTransformationMatrixEq(expected, actual); \
} while (false)
+void ExpectTransformationMatrixNear(const gfx::Transform& expected,
+ const gfx::Transform& actual,
+ float abs_error);
+
+#define EXPECT_TRANSFORMATION_MATRIX_NEAR(expected, actual, abs_error) \
+ do { \
+ SCOPED_TRACE(""); \
+ ExpectTransformationMatrixNear(expected, actual, abs_error); \
+ } while (false)
+
// Should be used in test code only, for convenience. Production code should use
// the gfx::Transform::GetInverse() API.
gfx::Transform Inverse(const gfx::Transform& transform);
« no previous file with comments | « cc/test/animation_timelines_test_common.h ('k') | cc/test/geometry_test_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698