OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/string_util.h" | 5 #include "base/string_util.h" |
6 #include "base/utf_string_conversions.h" | 6 #include "base/utf_string_conversions.h" |
7 #include "chrome/renderer/autofill/autofill_agent.h" | |
8 #include "chrome/renderer/autofill/password_autofill_manager.h" | |
9 #include "chrome/test/base/chrome_render_view_test.h" | 7 #include "chrome/test/base/chrome_render_view_test.h" |
10 #include "components/autofill/common/autofill_messages.h" | 8 #include "components/autofill/common/autofill_messages.h" |
11 #include "components/autofill/common/form_data.h" | 9 #include "components/autofill/common/form_data.h" |
12 #include "components/autofill/common/form_field_data.h" | 10 #include "components/autofill/common/form_field_data.h" |
| 11 #include "components/autofill/renderer/autofill_agent.h" |
| 12 #include "components/autofill/renderer/password_autofill_manager.h" |
13 #include "testing/gtest/include/gtest/gtest.h" | 13 #include "testing/gtest/include/gtest/gtest.h" |
14 #include "third_party/WebKit/Source/Platform/chromium/public/WebString.h" | 14 #include "third_party/WebKit/Source/Platform/chromium/public/WebString.h" |
15 #include "third_party/WebKit/Source/Platform/chromium/public/WebVector.h" | 15 #include "third_party/WebKit/Source/Platform/chromium/public/WebVector.h" |
16 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDocument.h" | 16 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDocument.h" |
17 #include "third_party/WebKit/Source/WebKit/chromium/public/WebElement.h" | 17 #include "third_party/WebKit/Source/WebKit/chromium/public/WebElement.h" |
18 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFormElement.h" | 18 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFormElement.h" |
19 #include "third_party/WebKit/Source/WebKit/chromium/public/WebInputElement.h" | 19 #include "third_party/WebKit/Source/WebKit/chromium/public/WebInputElement.h" |
20 #include "third_party/WebKit/Source/WebKit/chromium/public/WebNode.h" | 20 #include "third_party/WebKit/Source/WebKit/chromium/public/WebNode.h" |
21 #include "third_party/WebKit/Source/WebKit/chromium/public/WebView.h" | 21 #include "third_party/WebKit/Source/WebKit/chromium/public/WebView.h" |
22 #include "ui/base/keycodes/keyboard_codes.h" | 22 #include "ui/base/keycodes/keyboard_codes.h" |
(...skipping 393 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
416 // didSelectAutofillSuggestion on the renderer. | 416 // didSelectAutofillSuggestion on the renderer. |
417 autofill_agent_->didSelectAutofillSuggestion(username_element_, | 417 autofill_agent_->didSelectAutofillSuggestion(username_element_, |
418 ASCIIToUTF16(kAliceUsername), | 418 ASCIIToUTF16(kAliceUsername), |
419 WebKit::WebString(), | 419 WebKit::WebString(), |
420 0); | 420 0); |
421 // Autocomplete should not have kicked in. | 421 // Autocomplete should not have kicked in. |
422 CheckTextFieldsState("", false, "", false); | 422 CheckTextFieldsState("", false, "", false); |
423 } | 423 } |
424 | 424 |
425 } // namespace autofill | 425 } // namespace autofill |
OLD | NEW |