Chromium Code Reviews| 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 <vector> | 5 #include <vector> |
| 6 | 6 |
| 7 #include "base/message_loop/message_loop.h" | 7 #include "base/message_loop/message_loop.h" |
| 8 #include "base/strings/string_util.h" | 8 #include "base/strings/string_util.h" |
| 9 #include "base/strings/utf_string_conversions.h" | 9 #include "base/strings/utf_string_conversions.h" |
| 10 #include "chrome/browser/password_manager/mock_password_store.h" | 10 #include "chrome/browser/password_manager/mock_password_store.h" |
| 11 #include "chrome/browser/password_manager/password_manager.h" | 11 #include "chrome/browser/password_manager/password_manager.h" |
| 12 #include "chrome/browser/password_manager/password_manager_delegate.h" | 12 #include "chrome/browser/password_manager/password_manager_delegate.h" |
| 13 #include "chrome/browser/password_manager/password_manager_metrics_util.h" | |
|
Ilya Sherman
2013/09/10 22:30:54
nit: Not needed.
jdomingos
2013/09/11 15:50:30
Done.
| |
| 13 #include "chrome/browser/password_manager/password_store.h" | 14 #include "chrome/browser/password_manager/password_store.h" |
| 14 #include "chrome/browser/password_manager/password_store_factory.h" | 15 #include "chrome/browser/password_manager/password_store_factory.h" |
| 15 #include "chrome/common/pref_names.h" | 16 #include "chrome/common/pref_names.h" |
| 16 #include "chrome/common/url_constants.h" | 17 #include "chrome/common/url_constants.h" |
| 17 #include "chrome/test/base/chrome_render_view_host_test_harness.h" | 18 #include "chrome/test/base/chrome_render_view_host_test_harness.h" |
| 18 #include "chrome/test/base/testing_pref_service_syncable.h" | 19 #include "chrome/test/base/testing_pref_service_syncable.h" |
| 19 #include "chrome/test/base/testing_profile.h" | 20 #include "chrome/test/base/testing_profile.h" |
| 20 #include "content/public/browser/navigation_details.h" | 21 #include "content/public/browser/navigation_details.h" |
| 21 #include "content/public/common/frame_navigate_params.h" | 22 #include "content/public/common/frame_navigate_params.h" |
| 22 #include "content/public/test/test_browser_thread.h" | 23 #include "content/public/test/test_browser_thread.h" |
| (...skipping 563 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 586 manager()->ProvisionallySavePassword(login_form); | 587 manager()->ProvisionallySavePassword(login_form); |
| 587 | 588 |
| 588 PasswordForm failed_login_form(MakeTwitterFailedLoginForm()); | 589 PasswordForm failed_login_form(MakeTwitterFailedLoginForm()); |
| 589 observed.clear(); | 590 observed.clear(); |
| 590 observed.push_back(failed_login_form); | 591 observed.push_back(failed_login_form); |
| 591 // A PasswordForm appears, and is visible in the layout: | 592 // A PasswordForm appears, and is visible in the layout: |
| 592 // No expected calls to the PasswordStore... | 593 // No expected calls to the PasswordStore... |
| 593 manager()->OnPasswordFormsParsed(observed); | 594 manager()->OnPasswordFormsParsed(observed); |
| 594 manager()->OnPasswordFormsRendered(observed); | 595 manager()->OnPasswordFormsRendered(observed); |
| 595 } | 596 } |
| OLD | NEW |