summaryrefslogtreecommitdiffstats
path: root/views/controls/label_unittest.cc
diff options
context:
space:
mode:
Diffstat (limited to 'views/controls/label_unittest.cc')
-rw-r--r--views/controls/label_unittest.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/views/controls/label_unittest.cc b/views/controls/label_unittest.cc
index 504861e..44d101b 100644
--- a/views/controls/label_unittest.cc
+++ b/views/controls/label_unittest.cc
@@ -156,12 +156,12 @@ TEST(LabelTest, TooltipProperty) {
TEST(LabelTest, Accessibility) {
Label label;
- std::wstring test_text(L"My special text.");
- label.SetText(test_text);
+ string16 test_text(ASCIIToUTF16("My special text."));
+ label.SetText(UTF16ToWideHack(test_text));
EXPECT_EQ(AccessibilityTypes::ROLE_STATICTEXT, label.GetAccessibleRole());
- std::wstring name;
+ string16 name;
EXPECT_TRUE(label.GetAccessibleName(&name));
EXPECT_EQ(test_text, name);