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

Side by Side Diff: ui/gfx/break_list_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/break_list.h ('k') | ui/gfx/buffer_format_util.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/break_list.h" 5 #include "ui/gfx/break_list.h"
6 6
7 #include <stddef.h>
8
9 #include "base/macros.h"
7 #include "testing/gtest/include/gtest/gtest.h" 10 #include "testing/gtest/include/gtest/gtest.h"
8 #include "third_party/skia/include/core/SkColor.h" 11 #include "third_party/skia/include/core/SkColor.h"
9 #include "ui/gfx/range/range.h" 12 #include "ui/gfx/range/range.h"
10 13
11 namespace gfx { 14 namespace gfx {
12 15
13 class BreakListTest : public testing::Test {}; 16 class BreakListTest : public testing::Test {};
14 17
15 TEST_F(BreakListTest, SetValue) { 18 TEST_F(BreakListTest, SetValue) {
16 // Check the default values applied to new instances. 19 // Check the default values applied to new instances.
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after
157 160
158 161
159 for (size_t i = 0; i < arraysize(cases); ++i) { 162 for (size_t i = 0; i < arraysize(cases); ++i) {
160 BreakList<bool>::const_iterator it = breaks.GetBreak(cases[i].position); 163 BreakList<bool>::const_iterator it = breaks.GetBreak(cases[i].position);
161 EXPECT_EQ(breaks.breaks()[cases[i].break_index], *it); 164 EXPECT_EQ(breaks.breaks()[cases[i].break_index], *it);
162 EXPECT_EQ(breaks.GetRange(it), cases[i].range); 165 EXPECT_EQ(breaks.GetRange(it), cases[i].range);
163 } 166 }
164 } 167 }
165 168
166 } // namespace gfx 169 } // namespace gfx
OLDNEW
« no previous file with comments | « ui/gfx/break_list.h ('k') | ui/gfx/buffer_format_util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698