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

Side by Side Diff: ui/gfx/transform_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 4 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/text_utils_unittest.cc ('k') | ui/gfx/transform_util_unittest.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 (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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 // MSVC++ requires this to be set before any other includes to get M_PI. 5 // MSVC++ requires this to be set before any other includes to get M_PI.
6 #define _USE_MATH_DEFINES 6 #define _USE_MATH_DEFINES
7 7
8 #include "ui/gfx/transform.h" 8 #include "ui/gfx/transform.h"
9 9
10 #include <stddef.h>
11
10 #include <cmath> 12 #include <cmath>
13 #include <limits>
11 #include <ostream> 14 #include <ostream>
12 #include <limits>
13 15
14 #include "base/basictypes.h"
15 #include "base/logging.h" 16 #include "base/logging.h"
17 #include "base/macros.h"
16 #include "testing/gtest/include/gtest/gtest.h" 18 #include "testing/gtest/include/gtest/gtest.h"
17 #include "ui/gfx/geometry/box_f.h" 19 #include "ui/gfx/geometry/box_f.h"
18 #include "ui/gfx/geometry/point.h" 20 #include "ui/gfx/geometry/point.h"
19 #include "ui/gfx/geometry/point3_f.h" 21 #include "ui/gfx/geometry/point3_f.h"
20 #include "ui/gfx/geometry/quad_f.h" 22 #include "ui/gfx/geometry/quad_f.h"
21 #include "ui/gfx/geometry/vector3d_f.h" 23 #include "ui/gfx/geometry/vector3d_f.h"
22 #include "ui/gfx/transform_util.h" 24 #include "ui/gfx/transform_util.h"
23 25
24 namespace gfx { 26 namespace gfx {
25 27
(...skipping 2684 matching lines...) Expand 10 before | Expand all | Expand 10 after
2710 EXPECT_FALSE(backface_invisible.IsBackFaceVisible()); 2712 EXPECT_FALSE(backface_invisible.IsBackFaceVisible());
2711 2713
2712 // A noise that is more than the tolerance should change the result. 2714 // A noise that is more than the tolerance should change the result.
2713 backface_invisible.matrix().set(0, 3, 1.f + (2 * noise)); 2715 backface_invisible.matrix().set(0, 3, 1.f + (2 * noise));
2714 EXPECT_TRUE(backface_invisible.IsBackFaceVisible()); 2716 EXPECT_TRUE(backface_invisible.IsBackFaceVisible());
2715 } 2717 }
2716 2718
2717 } // namespace 2719 } // namespace
2718 2720
2719 } // namespace gfx 2721 } // namespace gfx
OLDNEW
« no previous file with comments | « ui/gfx/text_utils_unittest.cc ('k') | ui/gfx/transform_util_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698