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

Unified Diff: components/password_manager/core/browser/mock_affiliated_match_helper.h

Issue 1615653005: [Password manager] Human readable origins for Android credentials on chrome://settings/passwords (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Inlined the variable androidUriSuffix Created 4 years, 9 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: components/password_manager/core/browser/mock_affiliated_match_helper.h
diff --git a/components/password_manager/core/browser/mock_affiliated_match_helper.h b/components/password_manager/core/browser/mock_affiliated_match_helper.h
index b86d8f1aa51138d23ac3949efb010e014a80ed42..c0cc814e573f4327c21d320f1ca1ac70b3cf8beb 100644
--- a/components/password_manager/core/browser/mock_affiliated_match_helper.h
+++ b/components/password_manager/core/browser/mock_affiliated_match_helper.h
@@ -35,11 +35,15 @@ class MockAffiliatedMatchHelper : public AffiliatedMatchHelper {
const autofill::PasswordForm& expected_android_form,
const std::vector<std::string>& results_to_return);
+ void ExpectCallToInjectAffiliatedWebRealms(
+ const std::vector<std::string>& results_to_inject);
+
private:
MOCK_METHOD1(OnGetAffiliatedAndroidRealmsCalled,
std::vector<std::string>(const autofill::PasswordForm&));
MOCK_METHOD1(OnGetAffiliatedWebRealmsCalled,
std::vector<std::string>(const autofill::PasswordForm&));
+ MOCK_METHOD0(OnInjectAffiliatedWebRealmsCalled, std::vector<std::string>());
void GetAffiliatedAndroidRealms(
const autofill::PasswordForm& observed_form,
@@ -48,6 +52,10 @@ class MockAffiliatedMatchHelper : public AffiliatedMatchHelper {
const autofill::PasswordForm& android_form,
const AffiliatedRealmsCallback& result_callback) override;
+ void InjectAffiliatedWebRealms(
+ ScopedVector<autofill::PasswordForm> forms,
+ const PasswordFormsCallback& result_callback) override;
+
DISALLOW_COPY_AND_ASSIGN(MockAffiliatedMatchHelper);
};

Powered by Google App Engine
This is Rietveld 408576698