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

Side by Side Diff: ui/gfx/geometry/rect_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/geometry/rect_f.cc ('k') | ui/gfx/geometry/scroll_offset_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) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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 <limits> 5 #include <limits>
6 6
7 #include "base/basictypes.h" 7 #include <stddef.h>
8
9 #include "base/macros.h"
10 #include "build/build_config.h"
8 #include "testing/gtest/include/gtest/gtest.h" 11 #include "testing/gtest/include/gtest/gtest.h"
9 #include "ui/gfx/geometry/rect.h" 12 #include "ui/gfx/geometry/rect.h"
10 #include "ui/gfx/geometry/rect_conversions.h" 13 #include "ui/gfx/geometry/rect_conversions.h"
11 #include "ui/gfx/test/gfx_util.h" 14 #include "ui/gfx/test/gfx_util.h"
12 15
13 #if defined(OS_WIN) 16 #if defined(OS_WIN)
14 #include <windows.h> 17 #include <windows.h>
15 #endif 18 #endif
16 19
17 namespace gfx { 20 namespace gfx {
(...skipping 888 matching lines...) Expand 10 before | Expand all | Expand 10 after
906 0.0f, f.ManhattanInternalDistance(gfx::RectF(-1.0f, 0.0f, 1.1f, 1.0f))); 909 0.0f, f.ManhattanInternalDistance(gfx::RectF(-1.0f, 0.0f, 1.1f, 1.0f)));
907 EXPECT_FLOAT_EQ( 910 EXPECT_FLOAT_EQ(
908 0.1f + kEpsilon, 911 0.1f + kEpsilon,
909 f.ManhattanInternalDistance(gfx::RectF(-1.5f, 0.0f, 1.4f, 1.0f))); 912 f.ManhattanInternalDistance(gfx::RectF(-1.5f, 0.0f, 1.4f, 1.0f)));
910 EXPECT_FLOAT_EQ( 913 EXPECT_FLOAT_EQ(
911 kEpsilon, 914 kEpsilon,
912 f.ManhattanInternalDistance(gfx::RectF(-1.5f, 0.0f, 1.5f, 1.0f))); 915 f.ManhattanInternalDistance(gfx::RectF(-1.5f, 0.0f, 1.5f, 1.0f)));
913 } 916 }
914 917
915 } // namespace gfx 918 } // namespace gfx
OLDNEW
« no previous file with comments | « ui/gfx/geometry/rect_f.cc ('k') | ui/gfx/geometry/scroll_offset_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698