| Index: chrome/browser/ui/passwords/manage_passwords_test.cc
|
| diff --git a/chrome/browser/ui/passwords/manage_passwords_test.cc b/chrome/browser/ui/passwords/manage_passwords_test.cc
|
| index db100dbd1abd4d03bc0bcbb21627401880a48838..4de9388adf079195aeff6cb342ad1327161a65f4 100644
|
| --- a/chrome/browser/ui/passwords/manage_passwords_test.cc
|
| +++ b/chrome/browser/ui/passwords/manage_passwords_test.cc
|
| @@ -4,6 +4,7 @@
|
|
|
| #include "chrome/browser/ui/passwords/manage_passwords_test.h"
|
|
|
| +#include "base/bind.h"
|
| #include "base/strings/utf_string_conversions.h"
|
| #include "chrome/app/chrome_command_ids.h"
|
| #include "chrome/browser/ui/browser.h"
|
| @@ -80,6 +81,19 @@ void ManagePasswordsTest::SetupBlackistedPassword() {
|
| GetController()->UpdateIconAndBubbleState(view());
|
| }
|
|
|
| +void ManagePasswordsTest::SetupChooseCredentials(
|
| + ScopedVector<autofill::PasswordForm> local_credentials,
|
| + ScopedVector<autofill::PasswordForm> federated_credentials) {
|
| + base::string16 kTestUsername = base::ASCIIToUTF16("test_username");
|
| + autofill::PasswordFormMap map;
|
| + map[kTestUsername] = test_form();
|
| + GetController()->OnChooseCredentials(
|
| + local_credentials.Pass(),
|
| + federated_credentials.Pass(),
|
| + base::Bind(&ManagePasswordsTest::OnChooseCredential, this));
|
| + GetController()->UpdateIconAndBubbleState(view());
|
| +}
|
| +
|
| base::HistogramSamples* ManagePasswordsTest::GetSamples(
|
| const char* histogram) {
|
| // Ensure that everything has been properly recorded before pulling samples.
|
|
|