| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "base/keyboard_codes.h" | 5 #include "base/keyboard_codes.h" |
| 6 #include "base/string_util.h" | 6 #include "base/string_util.h" |
| 7 #include "base/utf_string_conversions.h" |
| 7 #include "chrome/renderer/password_autocomplete_manager.h" | 8 #include "chrome/renderer/password_autocomplete_manager.h" |
| 8 #include "chrome/test/render_view_test.h" | 9 #include "chrome/test/render_view_test.h" |
| 9 #include "testing/gtest/include/gtest/gtest.h" | 10 #include "testing/gtest/include/gtest/gtest.h" |
| 10 #include "third_party/WebKit/WebKit/chromium/public/WebDocument.h" | 11 #include "third_party/WebKit/WebKit/chromium/public/WebDocument.h" |
| 11 #include "third_party/WebKit/WebKit/chromium/public/WebElement.h" | 12 #include "third_party/WebKit/WebKit/chromium/public/WebElement.h" |
| 12 #include "third_party/WebKit/WebKit/chromium/public/WebFormElement.h" | 13 #include "third_party/WebKit/WebKit/chromium/public/WebFormElement.h" |
| 13 #include "third_party/WebKit/WebKit/chromium/public/WebInputElement.h" | 14 #include "third_party/WebKit/WebKit/chromium/public/WebInputElement.h" |
| 14 #include "third_party/WebKit/WebKit/chromium/public/WebNode.h" | 15 #include "third_party/WebKit/WebKit/chromium/public/WebNode.h" |
| 15 #include "third_party/WebKit/WebKit/chromium/public/WebString.h" | 16 #include "third_party/WebKit/WebKit/chromium/public/WebString.h" |
| 16 #include "third_party/WebKit/WebKit/chromium/public/WebVector.h" | 17 #include "third_party/WebKit/WebKit/chromium/public/WebVector.h" |
| (...skipping 304 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 321 // WebView does: it sets the element value then calls | 322 // WebView does: it sets the element value then calls |
| 322 // didAcceptAutocompleteSuggestion on the renderer. | 323 // didAcceptAutocompleteSuggestion on the renderer. |
| 323 username_element_.setValue(ASCIIToUTF16(kAliceUsername)); | 324 username_element_.setValue(ASCIIToUTF16(kAliceUsername)); |
| 324 view_->didAcceptAutocompleteSuggestion(username_element_); | 325 view_->didAcceptAutocompleteSuggestion(username_element_); |
| 325 | 326 |
| 326 // Autocomplete should have kicked in. | 327 // Autocomplete should have kicked in. |
| 327 CheckTextFieldsState(kAliceUsername, true, kAlicePassword, true); | 328 CheckTextFieldsState(kAliceUsername, true, kAlicePassword, true); |
| 328 } | 329 } |
| 329 | 330 |
| 330 } // namespace | 331 } // namespace |
| OLD | NEW |