OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 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_MANAGE_PASSWORDS_ICON_MOCK_H_ | 5 #ifndef CHROME_BROWSER_UI_PASSWORDS_MANAGE_PASSWORDS_ICON_MOCK_H_ |
6 #define CHROME_BROWSER_UI_PASSWORDS_MANAGE_PASSWORDS_ICON_MOCK_H_ | 6 #define CHROME_BROWSER_UI_PASSWORDS_MANAGE_PASSWORDS_ICON_MOCK_H_ |
7 | 7 |
8 #include "chrome/browser/ui/passwords/manage_passwords_icon.h" | 8 #include "chrome/browser/ui/passwords/manage_passwords_icon.h" |
9 | 9 |
10 // Mock ManagePasswordsIcon, for testing purposes only. | 10 // Mock ManagePasswordsIcon, for testing purposes only. |
11 class ManagePasswordsIconMock : public ManagePasswordsIcon { | 11 class ManagePasswordsIconMock : public ManagePasswordsIcon { |
12 public: | 12 public: |
13 ManagePasswordsIconMock(); | 13 ManagePasswordsIconMock(); |
14 ~ManagePasswordsIconMock(); | 14 ~ManagePasswordsIconMock(); |
15 | 15 |
16 // ManagePasswordsIcon: | 16 // ManagePasswordsIcon: |
17 virtual void ShowBubbleWithoutUserInteraction() OVERRIDE; | 17 virtual void ShowBubbleWithoutUserInteraction() OVERRIDE; |
18 int bubble_shown_count() const { return bubble_shown_count_; } | 18 int bubble_shown_count() const { return bubble_shown_count_; } |
19 | 19 |
20 protected: | 20 protected: |
21 // ManagePasswordsIcon: | 21 virtual void SetStateInternal(State state) OVERRIDE; |
22 virtual void UpdateVisibleUI() OVERRIDE; | |
23 | 22 |
24 private: | 23 private: |
25 int bubble_shown_count_; | 24 int bubble_shown_count_; |
26 | 25 |
27 DISALLOW_COPY_AND_ASSIGN(ManagePasswordsIconMock); | 26 DISALLOW_COPY_AND_ASSIGN(ManagePasswordsIconMock); |
28 }; | 27 }; |
29 | 28 |
30 #endif // CHROME_BROWSER_UI_PASSWORDS_MANAGE_PASSWORDS_ICON_MOCK_H_ | 29 #endif // CHROME_BROWSER_UI_PASSWORDS_MANAGE_PASSWORDS_ICON_MOCK_H_ |
OLD | NEW |