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

Side by Side Diff: chrome/browser/ui/passwords/password_dialog_controller_mock.h

Issue 2531863002: Delete all the traces of federation providers in the account chooser. (Closed)
Patch Set: android2 Created 4 years 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 unified diff | Download patch
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 #ifndef CHROME_BROWSER_UI_PASSWORDS_PASSWORD_DIALOG_CONTROLLER_MOCK_H_ 5 #ifndef CHROME_BROWSER_UI_PASSWORDS_PASSWORD_DIALOG_CONTROLLER_MOCK_H_
6 #define CHROME_BROWSER_UI_PASSWORDS_PASSWORD_DIALOG_CONTROLLER_MOCK_H_ 6 #define CHROME_BROWSER_UI_PASSWORDS_PASSWORD_DIALOG_CONTROLLER_MOCK_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "chrome/browser/ui/passwords/password_dialog_controller.h" 9 #include "chrome/browser/ui/passwords/password_dialog_controller.h"
10 #include "testing/gmock/include/gmock/gmock.h" 10 #include "testing/gmock/include/gmock/gmock.h"
11 11
12 class PasswordDialogControllerMock : public PasswordDialogController { 12 class PasswordDialogControllerMock : public PasswordDialogController {
13 public: 13 public:
14 PasswordDialogControllerMock(); 14 PasswordDialogControllerMock();
15 ~PasswordDialogControllerMock() override; 15 ~PasswordDialogControllerMock() override;
16 16
17 MOCK_CONST_METHOD0(GetLocalForms, const FormsVector&()); 17 MOCK_CONST_METHOD0(GetLocalForms, const FormsVector&());
18 MOCK_CONST_METHOD0(GetFederationsForms, const FormsVector&());
19 MOCK_CONST_METHOD0(GetAccoutChooserTitle, 18 MOCK_CONST_METHOD0(GetAccoutChooserTitle,
20 std::pair<base::string16, gfx::Range>()); 19 std::pair<base::string16, gfx::Range>());
21 MOCK_CONST_METHOD0(ShouldShowSignInButton, bool()); 20 MOCK_CONST_METHOD0(ShouldShowSignInButton, bool());
22 MOCK_CONST_METHOD0(GetAutoSigninPromoTitle, base::string16()); 21 MOCK_CONST_METHOD0(GetAutoSigninPromoTitle, base::string16());
23 MOCK_CONST_METHOD0(GetAutoSigninText, 22 MOCK_CONST_METHOD0(GetAutoSigninText,
24 std::pair<base::string16, gfx::Range>()); 23 std::pair<base::string16, gfx::Range>());
25 MOCK_METHOD0(OnSmartLockLinkClicked, void()); 24 MOCK_METHOD0(OnSmartLockLinkClicked, void());
26 MOCK_METHOD2(OnChooseCredentials, void( 25 MOCK_METHOD2(OnChooseCredentials, void(
27 const autofill::PasswordForm& password_form, 26 const autofill::PasswordForm& password_form,
28 password_manager::CredentialType credential_type)); 27 password_manager::CredentialType credential_type));
29 MOCK_METHOD0(OnSignInClicked, void()); 28 MOCK_METHOD0(OnSignInClicked, void());
30 MOCK_METHOD0(OnAutoSigninOK, void()); 29 MOCK_METHOD0(OnAutoSigninOK, void());
31 MOCK_METHOD0(OnAutoSigninTurnOff, void()); 30 MOCK_METHOD0(OnAutoSigninTurnOff, void());
32 MOCK_METHOD0(OnCloseDialog, void()); 31 MOCK_METHOD0(OnCloseDialog, void());
33 32
34 private: 33 private:
35 DISALLOW_COPY_AND_ASSIGN(PasswordDialogControllerMock); 34 DISALLOW_COPY_AND_ASSIGN(PasswordDialogControllerMock);
36 }; 35 };
37 36
38 #endif // CHROME_BROWSER_UI_PASSWORDS_PASSWORD_DIALOG_CONTROLLER_MOCK_H_ 37 #endif // CHROME_BROWSER_UI_PASSWORDS_PASSWORD_DIALOG_CONTROLLER_MOCK_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698