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

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: The bigger picture. 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 enum Expectation { EXPECT_SUCCESS, EXPECT_FAILURE };
21
22 ManagePasswordsViewTest() {}
23
24 // InProcessBrowserTest:
25 virtual void SetUpOnMainThread() OVERRIDE;
26
27 // Get the mock UI controller for the current WebContents.
28 ManagePasswordsBubbleUIControllerMock* controller();
29
30 // Get the icon view for the current WebContents.
31 ManagePasswordsIconView* view() const;
Peter Kasting 2014/04/25 22:12:02 Const methods must not return non-const pointers.
Mike West 2014/04/28 10:52:56 Done.
32
33 // Execute the browser command to open the manage passwords bubble.
34 void ExecuteManagePasswordsCommand(Expectation expectation = EXPECT_SUCCESS);
vabr (Chromium) 2014/04/25 15:26:17 optional nit: This read a bit strangely in the tes
35
36 // Put the controller, icon, and bubble into a managing-password state.
37 void SetupManagingPasswords();
38
39 // Put the controller, icon, and bubble into a pending-password state.
40 void SetupPendingPassword();
41
42 autofill::PasswordForm& test_form() { return test_form_; }
Peter Kasting 2014/04/25 22:12:02 Nit: Don't return by non-const ref. Return a cons
Mike West 2014/04/28 10:52:56 Done.
43
44 private:
45 autofill::PasswordForm test_form_;
46
47 DISALLOW_COPY_AND_ASSIGN(ManagePasswordsViewTest);
48 };
49
50 #endif // CHROME_BROWSER_UI_VIEWS_PASSWORDS_MANAGE_PASSWORDS_VIEW_TEST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698