| Index: chrome/renderer/password_autocomplete_manager_unittest.cc
|
| ===================================================================
|
| --- chrome/renderer/password_autocomplete_manager_unittest.cc (revision 71220)
|
| +++ chrome/renderer/password_autocomplete_manager_unittest.cc (working copy)
|
| @@ -2,7 +2,6 @@
|
| // Use of this source code is governed by a BSD-style license that can be
|
| // found in the LICENSE file.
|
|
|
| -#include "app/keyboard_codes.h"
|
| #include "base/string_util.h"
|
| #include "base/utf_string_conversions.h"
|
| #include "chrome/renderer/password_autocomplete_manager.h"
|
| @@ -15,6 +14,7 @@
|
| #include "third_party/WebKit/WebKit/chromium/public/WebNode.h"
|
| #include "third_party/WebKit/WebKit/chromium/public/WebString.h"
|
| #include "third_party/WebKit/WebKit/chromium/public/WebVector.h"
|
| +#include "ui/base/keycodes/keyboard_codes.h"
|
| #include "webkit/glue/form_data.h"
|
| #include "webkit/glue/form_field.h"
|
|
|
| @@ -124,7 +124,7 @@
|
| }
|
|
|
| void SimulateKeyDownEvent(const WebInputElement& element,
|
| - app::KeyboardCode key_code) {
|
| + ui::KeyboardCode key_code) {
|
| WebKit::WebKeyboardEvent key_event;
|
| key_event.windowsKeyCode = key_code;
|
| view_->textFieldDidReceiveKeyDown(element, key_event);
|
| @@ -280,12 +280,12 @@
|
| CheckUsernameSelection(2, 5);
|
|
|
| // Test that deleting does not trigger autocomplete.
|
| - SimulateKeyDownEvent(username_element_, app::VKEY_BACK);
|
| + SimulateKeyDownEvent(username_element_, ui::VKEY_BACK);
|
| SimulateUsernameChange("alic", true);
|
| CheckTextFieldsState("alic", false, "", false);
|
| CheckUsernameSelection(4, 4); // No selection.
|
| // Reset the last pressed key to something other than backspace.
|
| - SimulateKeyDownEvent(username_element_, app::VKEY_A);
|
| + SimulateKeyDownEvent(username_element_, ui::VKEY_A);
|
|
|
| // Now lets say the user goes astray from the stored username and types the
|
| // letter 'f', spelling 'alf'. We don't know alf (that's just sad), so in
|
|
|