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

Side by Side Diff: ui/gfx/transform_util_unittest.cc

Issue 823703003: Cleanup: Update the path to insets and point headers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: point.h Created 5 years, 12 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/transform_util.cc ('k') | ui/gfx/win/dpi.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/gfx/transform_util.h" 5 #include "ui/gfx/transform_util.h"
6 6
7 #include "testing/gtest/include/gtest/gtest.h" 7 #include "testing/gtest/include/gtest/gtest.h"
8 #include "ui/gfx/point.h" 8 #include "ui/gfx/geometry/point.h"
9 #include "ui/gfx/point3_f.h" 9 #include "ui/gfx/geometry/point3_f.h"
10 #include "ui/gfx/rect.h" 10 #include "ui/gfx/rect.h"
11 11
12 namespace gfx { 12 namespace gfx {
13 namespace { 13 namespace {
14 14
15 TEST(TransformUtilTest, GetScaleTransform) { 15 TEST(TransformUtilTest, GetScaleTransform) {
16 const Point kAnchor(20, 40); 16 const Point kAnchor(20, 40);
17 const float kScale = 0.5f; 17 const float kScale = 0.5f;
18 18
19 Transform scale = GetScaleTransform(kAnchor, kScale); 19 Transform scale = GetScaleTransform(kAnchor, kScale);
(...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after
187 transform.TransformPoint(&point); 187 transform.TransformPoint(&point);
188 EXPECT_EQ(Point(-14, -24).ToString(), point.ToString()); 188 EXPECT_EQ(Point(-14, -24).ToString(), point.ToString());
189 189
190 point = Point(1, 1); 190 point = Point(1, 1);
191 transform.TransformPoint(&point); 191 transform.TransformPoint(&point);
192 EXPECT_EQ(Point(-11, -20).ToString(), point.ToString()); 192 EXPECT_EQ(Point(-11, -20).ToString(), point.ToString());
193 } 193 }
194 194
195 } // namespace 195 } // namespace
196 } // namespace gfx 196 } // namespace gfx
OLDNEW
« no previous file with comments | « ui/gfx/transform_util.cc ('k') | ui/gfx/win/dpi.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698