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

Unified Diff: ui/gfx/text_elider_unittest.cc

Issue 111373008: Update some uses of char16 to use the base:: namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/gfx/render_text_win.cc ('k') | ui/gfx/text_utils_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/text_elider_unittest.cc
diff --git a/ui/gfx/text_elider_unittest.cc b/ui/gfx/text_elider_unittest.cc
index a97d7642f8e34bb8a7ccda6a8812549f1d0b2289..6aa03e7d339131a03311a8809c16b9c1f7b3c04d 100644
--- a/ui/gfx/text_elider_unittest.cc
+++ b/ui/gfx/text_elider_unittest.cc
@@ -379,8 +379,8 @@ TEST(TextEliderTest, ElideTextEllipsis) {
// Checks that all occurrences of |first_char| are followed by |second_char| and
// all occurrences of |second_char| are preceded by |first_char| in |text|.
static void CheckSurrogatePairs(const base::string16& text,
- char16 first_char,
- char16 second_char) {
+ base::char16 first_char,
+ base::char16 second_char) {
size_t index = text.find_first_of(first_char);
while (index != base::string16::npos) {
EXPECT_LT(index, text.length() - 1);
@@ -403,8 +403,8 @@ TEST(TextEliderTest, ElideTextSurrogatePairs) {
const base::string16 kTestString =
UTF8ToUTF16(kSurrogate + "ab" + kSurrogate + kSurrogate + "cd");
const float kTestStringWidth = GetStringWidthF(kTestString, font_list);
- const char16 kSurrogateFirstChar = kTestString[0];
- const char16 kSurrogateSecondChar = kTestString[1];
+ const base::char16 kSurrogateFirstChar = kTestString[0];
+ const base::char16 kSurrogateSecondChar = kTestString[1];
base::string16 result;
// Elide |kTextString| to all possible widths and check that no instance of
« no previous file with comments | « ui/gfx/render_text_win.cc ('k') | ui/gfx/text_utils_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698