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

Unified Diff: ash/extended_desktop_unittest.cc

Issue 176843022: Move UTF16ToASCII, remove WideToASCII. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | base/command_line.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/extended_desktop_unittest.cc
diff --git a/ash/extended_desktop_unittest.cc b/ash/extended_desktop_unittest.cc
index d0f3f2ceb905606abc915b7b195135c170b8cfdd..0554398ae78963d9722671116361ea44d4549fb9 100644
--- a/ash/extended_desktop_unittest.cc
+++ b/ash/extended_desktop_unittest.cc
@@ -14,6 +14,7 @@
#include "ash/wm/window_properties.h"
#include "ash/wm/window_util.h"
#include "base/strings/string_util.h"
+#include "base/strings/utf_string_conversions.h"
#include "ui/aura/client/activation_client.h"
#include "ui/aura/client/capture_client.h"
#include "ui/aura/client/focus_client.h"
@@ -740,20 +741,20 @@ TEST_F(ExtendedDesktopTest, KeyEventsOnLockScreen) {
event_generator.PressKey(ui::VKEY_A, 0);
event_generator.ReleaseKey(ui::VKEY_A, 0);
EXPECT_EQ(lock_widget->GetNativeView(), focus_client->GetFocusedWindow());
- EXPECT_EQ("a", UTF16ToASCII(textfield->text()));
+ EXPECT_EQ("a", base::UTF16ToASCII(textfield->text()));
event_generator.set_current_host(root_windows[1]->GetHost());
event_generator.PressKey(ui::VKEY_B, 0);
event_generator.ReleaseKey(ui::VKEY_B, 0);
EXPECT_EQ(lock_widget->GetNativeView(), focus_client->GetFocusedWindow());
- EXPECT_EQ("ab", UTF16ToASCII(textfield->text()));
+ EXPECT_EQ("ab", base::UTF16ToASCII(textfield->text()));
// Deleting 2nd display. The lock window still should get the events.
UpdateDisplay("100x100");
event_generator.PressKey(ui::VKEY_C, 0);
event_generator.ReleaseKey(ui::VKEY_C, 0);
EXPECT_EQ(lock_widget->GetNativeView(), focus_client->GetFocusedWindow());
- EXPECT_EQ("abc", UTF16ToASCII(textfield->text()));
+ EXPECT_EQ("abc", base::UTF16ToASCII(textfield->text()));
// Creating 2nd display again, and lock window still should get events
// on both root windows.
@@ -763,13 +764,13 @@ TEST_F(ExtendedDesktopTest, KeyEventsOnLockScreen) {
event_generator.PressKey(ui::VKEY_D, 0);
event_generator.ReleaseKey(ui::VKEY_D, 0);
EXPECT_EQ(lock_widget->GetNativeView(), focus_client->GetFocusedWindow());
- EXPECT_EQ("abcd", UTF16ToASCII(textfield->text()));
+ EXPECT_EQ("abcd", base::UTF16ToASCII(textfield->text()));
event_generator.set_current_host(root_windows[1]->GetHost());
event_generator.PressKey(ui::VKEY_E, 0);
event_generator.ReleaseKey(ui::VKEY_E, 0);
EXPECT_EQ(lock_widget->GetNativeView(), focus_client->GetFocusedWindow());
- EXPECT_EQ("abcde", UTF16ToASCII(textfield->text()));
+ EXPECT_EQ("abcde", base::UTF16ToASCII(textfield->text()));
}
TEST_F(ExtendedDesktopTest, PassiveGrab) {
« no previous file with comments | « no previous file | base/command_line.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698