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

Unified Diff: chrome/browser/ui/passwords/manage_passwords_icon_mock.h

Issue 250353003: Password bubble: refactor ManagePasswordsIconView. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: s/cc/h Created 6 years, 8 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/passwords/manage_passwords_icon_mock.h
diff --git a/chrome/browser/ui/passwords/manage_passwords_icon_mock.h b/chrome/browser/ui/passwords/manage_passwords_icon_mock.h
new file mode 100644
index 0000000000000000000000000000000000000000..3781e6ad62dbec1a1e1affaa1ab086054e2e7e42
--- /dev/null
+++ b/chrome/browser/ui/passwords/manage_passwords_icon_mock.h
@@ -0,0 +1,29 @@
+// Copyright 2014 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROME_BROWSER_UI_PASSWORDS_MANAGE_PASSWORDS_ICON_MOCK_H_
+#define CHROME_BROWSER_UI_PASSWORDS_MANAGE_PASSWORDS_ICON_MOCK_H_
+
+#include "chrome/browser/ui/passwords/manage_passwords_icon.h"
+
+// Mock ManagePasswordsIcon, for testing purposes only.
+class ManagePasswordsIconMock : public ManagePasswordsIcon {
+ public:
+ ManagePasswordsIconMock();
+ ~ManagePasswordsIconMock();
+
+ // ManagePasswordsIcon:
+ virtual void ShowBubbleWithoutUserInteraction() OVERRIDE;
+ int bubble_shown_count() const { return bubble_shown_count_; }
+
+ protected:
+ virtual void SetStateInternal(State state) OVERRIDE;
+
+ private:
+ int bubble_shown_count_;
+
+ DISALLOW_COPY_AND_ASSIGN(ManagePasswordsIconMock);
+};
+
+#endif // CHROME_BROWSER_UI_PASSWORDS_MANAGE_PASSWORDS_ICON_MOCK_H_
« no previous file with comments | « chrome/browser/ui/passwords/manage_passwords_icon.cc ('k') | chrome/browser/ui/passwords/manage_passwords_icon_mock.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698