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

Side by Side Diff: ui/compositor/test/test_utils.cc

Issue 823133004: Cleanup: Update the path to gfx rect headers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rect_f.h Created 5 years, 11 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/compositor/test/test_layer_animation_delegate.h ('k') | ui/events/gesture_event_details.h » ('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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 #include "ui/compositor/test/test_utils.h" 5 #include "ui/compositor/test/test_utils.h"
6 6
7 #include "testing/gtest/include/gtest/gtest.h" 7 #include "testing/gtest/include/gtest/gtest.h"
8 #include "ui/gfx/rect.h" 8 #include "ui/gfx/geometry/rect.h"
9 #include "ui/gfx/transform.h" 9 #include "ui/gfx/transform.h"
10 10
11 namespace ui { 11 namespace ui {
12 12
13 //TODO(avallee): Make this into a predicate and add some matrix pretty printing. 13 //TODO(avallee): Make this into a predicate and add some matrix pretty printing.
14 void CheckApproximatelyEqual(const gfx::Transform& lhs, 14 void CheckApproximatelyEqual(const gfx::Transform& lhs,
15 const gfx::Transform& rhs) { 15 const gfx::Transform& rhs) {
16 unsigned int errors = 0; 16 unsigned int errors = 0;
17 for (int i = 0; i < 4; ++i) { 17 for (int i = 0; i < 4; ++i) {
18 for (int j = 0; j < 4; ++j) { 18 for (int j = 0; j < 4; ++j) {
(...skipping 11 matching lines...) Expand all
30 } 30 }
31 31
32 void CheckApproximatelyEqual(const gfx::Rect& lhs, const gfx::Rect& rhs) { 32 void CheckApproximatelyEqual(const gfx::Rect& lhs, const gfx::Rect& rhs) {
33 EXPECT_FLOAT_EQ(lhs.x(), rhs.x()); 33 EXPECT_FLOAT_EQ(lhs.x(), rhs.x());
34 EXPECT_FLOAT_EQ(lhs.y(), rhs.y()); 34 EXPECT_FLOAT_EQ(lhs.y(), rhs.y());
35 EXPECT_FLOAT_EQ(lhs.width(), rhs.width()); 35 EXPECT_FLOAT_EQ(lhs.width(), rhs.width());
36 EXPECT_FLOAT_EQ(lhs.height(), rhs.height()); 36 EXPECT_FLOAT_EQ(lhs.height(), rhs.height());
37 } 37 }
38 38
39 } // namespace ui 39 } // namespace ui
OLDNEW
« no previous file with comments | « ui/compositor/test/test_layer_animation_delegate.h ('k') | ui/events/gesture_event_details.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698