Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3857)

Unified Diff: chrome/browser/ui/passwords/manage_passwords_test.h

Issue 854173003: Credential Management API: the account chooser dialog supports custom avatars. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: added a test Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/passwords/manage_passwords_test.h
diff --git a/chrome/browser/ui/passwords/manage_passwords_test.h b/chrome/browser/ui/passwords/manage_passwords_test.h
index f697eed2facb8c2e849a157527e5e1825d19e277..5bdf7ca898355d7905437076da8a19f22f1040c8 100644
--- a/chrome/browser/ui/passwords/manage_passwords_test.h
+++ b/chrome/browser/ui/passwords/manage_passwords_test.h
@@ -9,6 +9,8 @@
#include "base/test/histogram_tester.h"
#include "chrome/test/base/in_process_browser_test.h"
#include "components/autofill/core/common/password_form.h"
+#include "components/password_manager/content/common/credential_manager_types.h"
+#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
class ManagePasswordsUIController;
@@ -20,6 +22,7 @@ class ManagePasswordsIcon;
class ManagePasswordsTest : public InProcessBrowserTest {
public:
ManagePasswordsTest() = default;
+ ~ManagePasswordsTest() = default;
// InProcessBrowserTest:
void SetUpOnMainThread() override;
@@ -42,11 +45,18 @@ class ManagePasswordsTest : public InProcessBrowserTest {
// Put the controller, icon, and bubble into a blacklisted state.
void SetupBlackistedPassword();
+ // Put the controller, icon, and bubble into a choosing credential state.
+ void SetupChooseCredentials(
+ ScopedVector<autofill::PasswordForm> local_credentials,
+ ScopedVector<autofill::PasswordForm> federated_credentials);
+
// Get samples for |histogram|.
base::HistogramSamples* GetSamples(const char* histogram);
autofill::PasswordForm* test_form() { return &test_form_; }
+ MOCK_METHOD1(OnChooseCredential,
+ void(const password_manager::CredentialInfo&));
private:
// Get the UI controller for the current WebContents.
ManagePasswordsUIController* GetController();
« no previous file with comments | « chrome/browser/ui/passwords/manage_passwords_bubble_model.cc ('k') | chrome/browser/ui/passwords/manage_passwords_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698