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/strings/string_util.h" | 5 #include "base/strings/string_util.h" |
6 #include "base/strings/utf_string_conversions.h" | 6 #include "base/strings/utf_string_conversions.h" |
7 #include "chrome/test/base/chrome_render_view_test.h" | 7 #include "chrome/test/base/chrome_render_view_test.h" |
8 #include "components/autofill/common/autofill_messages.h" | |
9 #include "components/autofill/common/form_data.h" | |
10 #include "components/autofill/common/form_field_data.h" | |
11 #include "components/autofill/content/renderer/autofill_agent.h" | 8 #include "components/autofill/content/renderer/autofill_agent.h" |
12 #include "components/autofill/content/renderer/password_autofill_agent.h" | 9 #include "components/autofill/content/renderer/password_autofill_agent.h" |
| 10 #include "components/autofill/shared/autofill_messages.h" |
| 11 #include "components/autofill/shared/form_data.h" |
| 12 #include "components/autofill/shared/form_field_data.h" |
13 #include "testing/gtest/include/gtest/gtest.h" | 13 #include "testing/gtest/include/gtest/gtest.h" |
14 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDocument.h" | 14 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDocument.h" |
15 #include "third_party/WebKit/Source/WebKit/chromium/public/WebElement.h" | 15 #include "third_party/WebKit/Source/WebKit/chromium/public/WebElement.h" |
16 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFormElement.h" | 16 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFormElement.h" |
17 #include "third_party/WebKit/Source/WebKit/chromium/public/WebInputElement.h" | 17 #include "third_party/WebKit/Source/WebKit/chromium/public/WebInputElement.h" |
18 #include "third_party/WebKit/Source/WebKit/chromium/public/WebNode.h" | 18 #include "third_party/WebKit/Source/WebKit/chromium/public/WebNode.h" |
19 #include "third_party/WebKit/Source/WebKit/chromium/public/WebView.h" | 19 #include "third_party/WebKit/Source/WebKit/chromium/public/WebView.h" |
20 #include "third_party/WebKit/public/platform/WebString.h" | 20 #include "third_party/WebKit/public/platform/WebString.h" |
21 #include "third_party/WebKit/public/platform/WebVector.h" | 21 #include "third_party/WebKit/public/platform/WebVector.h" |
22 #include "ui/base/keycodes/keyboard_codes.h" | 22 #include "ui/base/keycodes/keyboard_codes.h" |
(...skipping 473 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
496 // didSelectAutofillSuggestion on the renderer. | 496 // didSelectAutofillSuggestion on the renderer. |
497 autofill_agent_->didSelectAutofillSuggestion(username_element_, | 497 autofill_agent_->didSelectAutofillSuggestion(username_element_, |
498 ASCIIToUTF16(kAliceUsername), | 498 ASCIIToUTF16(kAliceUsername), |
499 WebKit::WebString(), | 499 WebKit::WebString(), |
500 0); | 500 0); |
501 // Autocomplete should not have kicked in. | 501 // Autocomplete should not have kicked in. |
502 CheckTextFieldsState(std::string(), false, std::string(), false); | 502 CheckTextFieldsState(std::string(), false, std::string(), false); |
503 } | 503 } |
504 | 504 |
505 } // namespace autofill | 505 } // namespace autofill |
OLD | NEW |