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

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

Issue 11474050: cc: Unify namespaces for all test files (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 8 years 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.cc ('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 2011 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 4
5 #ifndef CC_TEST_GEOMETRY_TEST_UTILS_H_ 5 #ifndef CC_TEST_GEOMETRY_TEST_UTILS_H_
6 #define CC_TEST_GEOMETRY_TEST_UTILS_H_ 6 #define CC_TEST_GEOMETRY_TEST_UTILS_H_
7 7
8 namespace gfx { 8 namespace gfx {
9 class Transform; 9 class Transform;
10 } 10 }
11 11
12 namespace WebKit { 12 namespace WebKit {
13 class WebTransformationMatrix; 13 class WebTransformationMatrix;
14 } 14 }
15 15
16 namespace WebKitTests { 16 namespace cc {
17 17
18 // These are macros instead of functions so that we get useful line numbers wher e a test failed. 18 // These are macros instead of functions so that we get useful line numbers wher e a test failed.
19 #define EXPECT_FLOAT_RECT_EQ(expected, actual) \ 19 #define EXPECT_FLOAT_RECT_EQ(expected, actual) \
20 do { \ 20 do { \
21 EXPECT_FLOAT_EQ((expected).x(), (actual).x()); \ 21 EXPECT_FLOAT_EQ((expected).x(), (actual).x()); \
22 EXPECT_FLOAT_EQ((expected).y(), (actual).y()); \ 22 EXPECT_FLOAT_EQ((expected).y(), (actual).y()); \
23 EXPECT_FLOAT_EQ((expected).width(), (actual).width()); \ 23 EXPECT_FLOAT_EQ((expected).width(), (actual).width()); \
24 EXPECT_FLOAT_EQ((expected).height(), (actual).height()); \ 24 EXPECT_FLOAT_EQ((expected).height(), (actual).height()); \
25 } while (false) 25 } while (false)
26 26
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 // http://llvm.org/bugs/show_bug.cgi?id=13651 and http://gcc.gnu.org/bugzilla/sh ow_bug.cgi?id=54337 63 // http://llvm.org/bugs/show_bug.cgi?id=13651 and http://gcc.gnu.org/bugzilla/sh ow_bug.cgi?id=54337
64 void ExpectTransformationMatrixEq(const gfx::Transform& expected, 64 void ExpectTransformationMatrixEq(const gfx::Transform& expected,
65 const gfx::Transform& actual); 65 const gfx::Transform& actual);
66 66
67 void ExpectTransformationMatrixEq(const WebKit::WebTransformationMatrix& expecte d, 67 void ExpectTransformationMatrixEq(const WebKit::WebTransformationMatrix& expecte d,
68 const WebKit::WebTransformationMatrix& actual) ; 68 const WebKit::WebTransformationMatrix& actual) ;
69 69
70 #define EXPECT_TRANSFORMATION_MATRIX_EQ(expected, actual) \ 70 #define EXPECT_TRANSFORMATION_MATRIX_EQ(expected, actual) \
71 { \ 71 { \
72 SCOPED_TRACE(""); \ 72 SCOPED_TRACE(""); \
73 WebKitTests::ExpectTransformationMatrixEq(expected, actual); \ 73 cc::ExpectTransformationMatrixEq(expected, actual); \
74 } 74 }
75 75
76 } // namespace WebKitTests 76 } // namespace cc
77 77
78 #endif // CC_TEST_GEOMETRY_TEST_UTILS_H_ 78 #endif // CC_TEST_GEOMETRY_TEST_UTILS_H_
OLDNEW
« no previous file with comments | « cc/test/fake_web_scrollbar_theme_geometry.cc ('k') | cc/test/geometry_test_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698