OLD | NEW |
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/render_text.h" | 5 #include "ui/gfx/render_text.h" |
6 | 6 |
| 7 #include <limits.h> |
7 #include <stddef.h> | 8 #include <stddef.h> |
8 #include <stdint.h> | 9 #include <stdint.h> |
9 | 10 |
10 #include <algorithm> | 11 #include <algorithm> |
11 | 12 |
12 #include "base/format_macros.h" | 13 #include "base/format_macros.h" |
13 #include "base/i18n/break_iterator.h" | 14 #include "base/i18n/break_iterator.h" |
14 #include "base/macros.h" | 15 #include "base/macros.h" |
15 #include "base/memory/scoped_ptr.h" | 16 #include "base/memory/scoped_ptr.h" |
16 #include "base/strings/string_split.h" | 17 #include "base/strings/string_split.h" |
(...skipping 3182 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3199 backend[i]->SetColor(SK_ColorRED); | 3200 backend[i]->SetColor(SK_ColorRED); |
3200 test_api.DrawVisualText(&renderer); | 3201 test_api.DrawVisualText(&renderer); |
3201 | 3202 |
3202 renderer.GetTextLogAndReset(&text_log); | 3203 renderer.GetTextLogAndReset(&text_log); |
3203 EXPECT_EQ(1u, text_log.size()); | 3204 EXPECT_EQ(1u, text_log.size()); |
3204 EXPECT_EQ(SK_ColorRED, text_log[0].color); | 3205 EXPECT_EQ(SK_ColorRED, text_log[0].color); |
3205 } | 3206 } |
3206 } | 3207 } |
3207 | 3208 |
3208 } // namespace gfx | 3209 } // namespace gfx |
OLD | NEW |