| 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/macros.h" |
| 7 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
| 8 #include "base/strings/utf_string_conversions.h" | 9 #include "base/strings/utf_string_conversions.h" |
| 9 #include "base/test/histogram_tester.h" | 10 #include "base/test/histogram_tester.h" |
| 10 #include "chrome/renderer/autofill/password_generation_test_utils.h" | 11 #include "chrome/renderer/autofill/password_generation_test_utils.h" |
| 11 #include "chrome/test/base/chrome_render_view_test.h" | 12 #include "chrome/test/base/chrome_render_view_test.h" |
| 12 #include "components/autofill/content/common/autofill_messages.h" | 13 #include "components/autofill/content/common/autofill_messages.h" |
| 13 #include "components/autofill/content/renderer/autofill_agent.h" | 14 #include "components/autofill/content/renderer/autofill_agent.h" |
| 14 #include "components/autofill/content/renderer/test_password_generation_agent.h" | 15 #include "components/autofill/content/renderer/test_password_generation_agent.h" |
| 15 #include "components/autofill/core/common/form_data.h" | 16 #include "components/autofill/core/common/form_data.h" |
| 16 #include "components/autofill/core/common/password_generation_util.h" | 17 #include "components/autofill/core/common/password_generation_util.h" |
| (...skipping 545 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 562 ExpectGenerationAvailable("password", false); | 563 ExpectGenerationAvailable("password", false); |
| 563 ExpectGenerationAvailable("newpassword", false); | 564 ExpectGenerationAvailable("newpassword", false); |
| 564 | 565 |
| 565 SetAccountCreationFormsDetectedMessage(password_generation_, | 566 SetAccountCreationFormsDetectedMessage(password_generation_, |
| 566 GetMainFrame()->document(), 0, 2); | 567 GetMainFrame()->document(), 0, 2); |
| 567 ExpectGenerationAvailable("password", false); | 568 ExpectGenerationAvailable("password", false); |
| 568 ExpectGenerationAvailable("newpassword", true); | 569 ExpectGenerationAvailable("newpassword", true); |
| 569 } | 570 } |
| 570 | 571 |
| 571 } // namespace autofill | 572 } // namespace autofill |
| OLD | NEW |