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

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

Issue 1992633003: Add "Sign In" button to the account chooser on Mac. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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 unified diff | Download patch
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef CHROME_BROWSER_UI_PASSWORDS_PASSWORD_DIALOG_CONTROLLER_MOCK_H_
6 #define CHROME_BROWSER_UI_PASSWORDS_PASSWORD_DIALOG_CONTROLLER_MOCK_H_
7
8 #include "base/macros.h"
9 #include "chrome/browser/ui/passwords/password_dialog_controller.h"
10 #include "testing/gmock/include/gmock/gmock.h"
11
12 class PasswordDialogControllerMock : public PasswordDialogController {
13 public:
14 PasswordDialogControllerMock();
15 ~PasswordDialogControllerMock() override;
16
17 MOCK_CONST_METHOD0(GetLocalForms, const FormsVector&());
18 MOCK_CONST_METHOD0(GetFederationsForms, const FormsVector&());
19 MOCK_CONST_METHOD0(GetAccoutChooserTitle,
20 std::pair<base::string16, gfx::Range>());
21 MOCK_CONST_METHOD0(ShouldShowSignInButton, bool());
22 MOCK_CONST_METHOD0(GetAutoSigninPromoTitle, base::string16());
23 MOCK_CONST_METHOD0(GetAutoSigninText,
24 std::pair<base::string16, gfx::Range>());
25 MOCK_METHOD0(OnSmartLockLinkClicked, void());
26 MOCK_METHOD2(OnChooseCredentials, void(
27 const autofill::PasswordForm& password_form,
28 password_manager::CredentialType credential_type));
29 MOCK_METHOD0(OnSignInClicked, void());
30 MOCK_METHOD0(OnAutoSigninOK, void());
31 MOCK_METHOD0(OnAutoSigninTurnOff, void());
32 MOCK_METHOD0(OnCloseDialog, void());
33
34 private:
35 DISALLOW_COPY_AND_ASSIGN(PasswordDialogControllerMock);
36 };
37
38 #endif // CHROME_BROWSER_UI_PASSWORDS_PASSWORD_DIALOG_CONTROLLER_MOCK_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698