Chromium Code Reviews| Index: ui/gfx/render_text.h |
| diff --git a/ui/gfx/render_text.h b/ui/gfx/render_text.h |
| index 7e0b48310116e1fa2cf8ac004389c6bae197a084..3b69982c45dc83609ac13e33cee4b284a8132b74 100644 |
| --- a/ui/gfx/render_text.h |
| +++ b/ui/gfx/render_text.h |
| @@ -528,6 +528,9 @@ class GFX_EXPORT RenderText { |
| // Retrieves the text in the given |range|. |
| base::string16 GetTextFromRange(const Range& range) const; |
| + // Returns the number of text lines, only for unit test. |
| + size_t line_size_for_test() const { return lines_.size(); } |
|
sky
2016/12/07 17:09:37
Add to test::RenderTextTestApi ?
oshima
2016/12/13 14:22:18
Extracted to a separate file. PTAL.
|
| + |
| protected: |
| RenderText(); |