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

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

Issue 1543183002: Switch to standard integer types in ui/gfx/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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
« no previous file with comments | « ui/gfx/transform_unittest.cc ('k') | ui/gfx/utf16_indexing.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 <stddef.h>
8
7 #include "testing/gtest/include/gtest/gtest.h" 9 #include "testing/gtest/include/gtest/gtest.h"
8 #include "ui/gfx/geometry/point.h" 10 #include "ui/gfx/geometry/point.h"
9 #include "ui/gfx/geometry/point3_f.h" 11 #include "ui/gfx/geometry/point3_f.h"
10 #include "ui/gfx/geometry/rect.h" 12 #include "ui/gfx/geometry/rect.h"
11 13
12 namespace gfx { 14 namespace gfx {
13 namespace { 15 namespace {
14 16
15 TEST(TransformUtilTest, GetScaleTransform) { 17 TEST(TransformUtilTest, GetScaleTransform) {
16 const Point kAnchor(20, 40); 18 const Point kAnchor(20, 40);
(...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after
200 DecomposedTransform result; 202 DecomposedTransform result;
201 BlendDecomposedTransforms(&result, first, second, 0.25); 203 BlendDecomposedTransforms(&result, first, second, 0.25);
202 for (size_t i = 0; i < 4; ++i) { 204 for (size_t i = 0; i < 4; ++i) {
203 EXPECT_TRUE(std::isfinite(result.quaternion[i])); 205 EXPECT_TRUE(std::isfinite(result.quaternion[i]));
204 EXPECT_FALSE(std::isnan(result.quaternion[i])); 206 EXPECT_FALSE(std::isnan(result.quaternion[i]));
205 } 207 }
206 } 208 }
207 209
208 } // namespace 210 } // namespace
209 } // namespace gfx 211 } // namespace gfx
OLDNEW
« no previous file with comments | « ui/gfx/transform_unittest.cc ('k') | ui/gfx/utf16_indexing.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698