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

Side by Side Diff: ui/gfx/test/gfx_util.h

Issue 2966723003: Add support for bounds animations (Closed)
Patch Set: address reviewer feedback 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 unified diff | Download patch
« no previous file with comments | « ui/gfx/animation/tween_unittest.cc ('k') | ui/gfx/test/gfx_util.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef UI_GFX_TEST_GFX_UTIL_H_ 5 #ifndef UI_GFX_TEST_GFX_UTIL_H_
6 #define UI_GFX_TEST_GFX_UTIL_H_ 6 #define UI_GFX_TEST_GFX_UTIL_H_
7 7
8 #include <iosfwd> 8 #include <iosfwd>
9 #include <string> 9 #include <string>
10 10
11 #include "testing/gtest/include/gtest/gtest.h" 11 #include "testing/gtest/include/gtest/gtest.h"
12 #include "third_party/skia/include/core/SkColor.h" 12 #include "third_party/skia/include/core/SkColor.h"
13 13
14 namespace gfx { 14 namespace gfx {
15 15
16 class AxisTransform2d; 16 class AxisTransform2d;
17 class BoxF; 17 class BoxF;
18 class PointF; 18 class PointF;
19 class RectF; 19 class RectF;
20 class SizeF;
20 21
21 #define EXPECT_AXIS_TRANSFORM2D_EQ(a, b) \ 22 #define EXPECT_AXIS_TRANSFORM2D_EQ(a, b) \
22 EXPECT_PRED_FORMAT2(::gfx::AssertAxisTransform2dFloatEqual, a, b) 23 EXPECT_PRED_FORMAT2(::gfx::AssertAxisTransform2dFloatEqual, a, b)
23 24
24 ::testing::AssertionResult AssertAxisTransform2dFloatEqual( 25 ::testing::AssertionResult AssertAxisTransform2dFloatEqual(
25 const char* lhs_expr, 26 const char* lhs_expr,
26 const char* rhs_expr, 27 const char* rhs_expr,
27 const AxisTransform2d& lhs, 28 const AxisTransform2d& lhs,
28 const AxisTransform2d& rhs); 29 const AxisTransform2d& rhs);
29 30
(...skipping 22 matching lines...) Expand all
52 const RectF& rhs); 53 const RectF& rhs);
53 54
54 #define EXPECT_SKCOLOR_EQ(a, b) \ 55 #define EXPECT_SKCOLOR_EQ(a, b) \
55 EXPECT_PRED_FORMAT2(::gfx::AssertSkColorsEqual, a, b) 56 EXPECT_PRED_FORMAT2(::gfx::AssertSkColorsEqual, a, b)
56 57
57 ::testing::AssertionResult AssertSkColorsEqual(const char* lhs_expr, 58 ::testing::AssertionResult AssertSkColorsEqual(const char* lhs_expr,
58 const char* rhs_expr, 59 const char* rhs_expr,
59 SkColor lhs, 60 SkColor lhs,
60 SkColor rhs); 61 SkColor rhs);
61 62
63 #define EXPECT_SIZEF_EQ(a, b) \
64 EXPECT_PRED_FORMAT2(::gfx::AssertSizeFFloatEqual, a, b)
65
66 ::testing::AssertionResult AssertSizeFFloatEqual(const char* lhs_expr,
67 const char* rhs_expr,
68 const SizeF& lhs,
69 const SizeF& rhs);
62 } // namespace gfx 70 } // namespace gfx
63 71
64 #endif // UI_GFX_TEST_GFX_UTIL_H_ 72 #endif // UI_GFX_TEST_GFX_UTIL_H_
OLDNEW
« no previous file with comments | « ui/gfx/animation/tween_unittest.cc ('k') | ui/gfx/test/gfx_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698