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

Unified Diff: chrome/browser/profiles/fake_profile_info_interface.h

Issue 7647002: [Mac] Implement the avatar menu bubble. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add test Created 9 years, 4 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/profiles/fake_profile_info_interface.h
diff --git a/chrome/browser/profiles/fake_profile_info_interface.h b/chrome/browser/profiles/fake_profile_info_interface.h
new file mode 100644
index 0000000000000000000000000000000000000000..4686eb364c29bfadca0d1901324caa61a938365a
--- /dev/null
+++ b/chrome/browser/profiles/fake_profile_info_interface.h
@@ -0,0 +1,40 @@
+// Copyright (c) 2011 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_PROFILES_FAKE_PROFILE_INFO_INTERFACE_H_
+#define CHROME_BROWSER_PROFILES_FAKE_PROFILE_INFO_INTERFACE_H_
+
+#include <vector>
+
+#include "base/string16.h"
+#include "base/utf_string_conversions.h"
+#include "chrome/browser/profiles/avatar_menu_model.h"
+#include "chrome/browser/profiles/avatar_menu_model_observer.h"
+#include "chrome/browser/profiles/profile_info_interface.h"
+#include "chrome/common/chrome_notification_types.h"
+#include "ui/gfx/image/image.h"
+
+class FakeProfileInfo : public ProfileInfoInterface {
+ public:
+ FakeProfileInfo();
+ virtual ~FakeProfileInfo();
+
+ std::vector<AvatarMenuModel::Item*>* mock_profiles();
+
+ static gfx::Image& GetTestImage();
+
+ // ProfileInfoInterface:
+ virtual size_t GetNumberOfProfiles() const OVERRIDE;
+ virtual size_t GetIndexOfProfileWithPath(
+ const FilePath& profile_path) const OVERRIDE;
+ virtual string16 GetNameOfProfileAtIndex(size_t index) const OVERRIDE;
+ virtual FilePath GetPathOfProfileAtIndex(size_t index) const OVERRIDE;
+ virtual const gfx::Image& GetAvatarIconOfProfileAtIndex(
+ size_t index) const OVERRIDE;
+
+ private:
+ std::vector<AvatarMenuModel::Item*> profiles_;
+};
+
+#endif // CHROME_BROWSER_PROFILES_FAKE_PROFILE_INFO_INTERFACE_H_
« no previous file with comments | « chrome/browser/profiles/avatar_menu_model_unittest.cc ('k') | chrome/browser/profiles/fake_profile_info_interface.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698