| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 <string.h> | 5 #include <string.h> |
| 6 | 6 |
| 7 #include "base/memory/scoped_ptr.h" | 7 #include "base/memory/scoped_ptr.h" |
| 8 #include "base/memory/scoped_vector.h" | 8 #include "base/memory/scoped_vector.h" |
| 9 #include "base/strings/utf_string_conversions.h" | 9 #include "base/strings/utf_string_conversions.h" |
| 10 #include "chrome/test/base/chrome_render_view_test.h" | 10 #include "chrome/test/base/chrome_render_view_test.h" |
| 11 #include "components/autofill/content/common/autofill_messages.h" |
| 11 #include "components/autofill/content/renderer/password_generation_agent.h" | 12 #include "components/autofill/content/renderer/password_generation_agent.h" |
| 12 #include "components/autofill/core/common/autofill_messages.h" | |
| 13 #include "components/autofill/core/common/form_data.h" | 13 #include "components/autofill/core/common/form_data.h" |
| 14 #include "testing/gtest/include/gtest/gtest.h" | 14 #include "testing/gtest/include/gtest/gtest.h" |
| 15 #include "third_party/WebKit/public/platform/WebString.h" | 15 #include "third_party/WebKit/public/platform/WebString.h" |
| 16 #include "third_party/WebKit/public/web/WebDocument.h" | 16 #include "third_party/WebKit/public/web/WebDocument.h" |
| 17 #include "third_party/WebKit/public/web/WebWidget.h" | 17 #include "third_party/WebKit/public/web/WebWidget.h" |
| 18 | 18 |
| 19 using blink::WebDocument; | 19 using blink::WebDocument; |
| 20 using blink::WebElement; | 20 using blink::WebElement; |
| 21 using blink::WebInputElement; | 21 using blink::WebInputElement; |
| 22 using blink::WebNode; | 22 using blink::WebNode; |
| (...skipping 248 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 271 | 271 |
| 272 // Receive the account creation forms detected message. Show password | 272 // Receive the account creation forms detected message. Show password |
| 273 // generation icon. | 273 // generation icon. |
| 274 LoadHTML(kAccountCreationFormHTML); | 274 LoadHTML(kAccountCreationFormHTML); |
| 275 SetNotBlacklistedMessage(kAccountCreationFormHTML); | 275 SetNotBlacklistedMessage(kAccountCreationFormHTML); |
| 276 SetAccountCreationFormsDetectedMessage(kAccountCreationFormHTML); | 276 SetAccountCreationFormsDetectedMessage(kAccountCreationFormHTML); |
| 277 ExpectPasswordGenerationIconShown("first_password", true); | 277 ExpectPasswordGenerationIconShown("first_password", true); |
| 278 } | 278 } |
| 279 | 279 |
| 280 } // namespace autofill | 280 } // namespace autofill |
| OLD | NEW |