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

Side by Side Diff: cc/test/geometry_test_utils.h

Issue 11108020: [cc] Change cc_tests.gyp filenames to Chromium style (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 8 years, 2 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 | Annotate | Revision Log
« no previous file with comments | « cc/test/fake_web_scrollbar_theme_geometry.h ('k') | cc/test/geometry_test_utils.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 2012 The Chromium Authors. All rights reserved. 1 // Copyright 2011 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
5 #ifndef CCGeometryTestUtils_h
6 #define CCGeometryTestUtils_h
7
8 namespace WebKit {
9 class WebTransformationMatrix;
10 }
11
12 namespace WebKitTests {
13
14 // These are macros instead of functions so that we get useful line numbers wher e a test failed.
15 #define EXPECT_FLOAT_RECT_EQ(expected, actual) \
16 EXPECT_FLOAT_EQ((expected).location().x(), (actual).location().x()); \
17 EXPECT_FLOAT_EQ((expected).location().y(), (actual).location().y()); \
18 EXPECT_FLOAT_EQ((expected).size().width(), (actual).size().width()); \
19 EXPECT_FLOAT_EQ((expected).size().height(), (actual).size().height())
20
21 #define EXPECT_RECT_EQ(expected, actual) \
22 EXPECT_EQ((expected).location().x(), (actual).location().x()); \
23 EXPECT_EQ((expected).location().y(), (actual).location().y()); \
24 EXPECT_EQ((expected).size().width(), (actual).size().width()); \
25 EXPECT_EQ((expected).size().height(), (actual).size().height())
26
27 // This is a function rather than a macro because when this is included as a mac ro
28 // in bulk, it causes a significant slow-down in compilation time. This problem
29 // exists with both gcc and clang, and bugs have been filed at
30 // http://llvm.org/bugs/show_bug.cgi?id=13651 and http://gcc.gnu.org/bugzilla/sh ow_bug.cgi?id=54337
31 void ExpectTransformationMatrixEq(const WebKit::WebTransformationMatrix& expecte d,
32 const WebKit::WebTransformationMatrix& actual) ;
33
34 #define EXPECT_TRANSFORMATION_MATRIX_EQ(expected, actual) \
35 { \
36 SCOPED_TRACE(""); \
37 WebKitTests::ExpectTransformationMatrixEq(expected, actual); \
38 }
39
40 } // namespace WebKitTests
41
42 #endif // CCGeometryTestUtils_h
OLDNEW
« no previous file with comments | « cc/test/fake_web_scrollbar_theme_geometry.h ('k') | cc/test/geometry_test_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698