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

Side by Side Diff: chrome/browser/ui/views/passwords/manage_passwords_view_test.h

Issue 246393004: Password bubble: Introduce a command to open the bubble. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix. Created 6 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 | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright 2014 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_VIEWS_PASSWORDS_MANAGE_PASSWORDS_VIEW_TEST_H_
6 #define CHROME_BROWSER_UI_VIEWS_PASSWORDS_MANAGE_PASSWORDS_VIEW_TEST_H_
7
8 #include "chrome/test/base/in_process_browser_test.h"
9 #include "components/autofill/core/common/password_form.h"
10 #include "testing/gtest/include/gtest/gtest.h"
11
12 class ManagePasswordsBubbleUIControllerMock;
13 class ManagePasswordsIconView;
14
15 // Test class for the various password management view bits and pieces. Sets
16 // up a ManagePasswordsBubbleUIControllerMock, and provides some helper methods
17 // to poke at the bubble, icon, and controller's state.
18 class ManagePasswordsViewTest : public InProcessBrowserTest {
19 public:
20 ManagePasswordsViewTest() {}
21
22 // InProcessBrowserTest:
23 virtual void SetUpOnMainThread() OVERRIDE;
24
25 // Get the mock UI controller for the current WebContents.
26 ManagePasswordsBubbleUIControllerMock* controller();
27
28 // Get the icon view for the current WebContents.
29 ManagePasswordsIconView* view();
30
31 // Execute the browser command to open the manage passwords bubble.
32 void ExecuteManagePasswordsCommand();
33
34 // Put the controller, icon, and bubble into a managing-password state.
35 void SetupManagingPasswords();
36
37 // Put the controller, icon, and bubble into a pending-password state.
38 void SetupPendingPassword();
39
40 // Put the controller, icon, and bubble into a blacklisted state.
41 void SetupBlackistedPassword();
42
43 autofill::PasswordForm* test_form() { return &test_form_; }
44
45 private:
46 autofill::PasswordForm test_form_;
47
48 DISALLOW_COPY_AND_ASSIGN(ManagePasswordsViewTest);
49 };
50
51 #endif // CHROME_BROWSER_UI_VIEWS_PASSWORDS_MANAGE_PASSWORDS_VIEW_TEST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698