OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2011 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_PROFILES_FAKE_PROFILE_INFO_INTERFACE_H_ |
| 6 #define CHROME_BROWSER_PROFILES_FAKE_PROFILE_INFO_INTERFACE_H_ |
| 7 |
| 8 #include <vector> |
| 9 |
| 10 #include "base/string16.h" |
| 11 #include "base/utf_string_conversions.h" |
| 12 #include "chrome/browser/profiles/avatar_menu_model.h" |
| 13 #include "chrome/browser/profiles/avatar_menu_model_observer.h" |
| 14 #include "chrome/browser/profiles/profile_info_interface.h" |
| 15 #include "chrome/common/chrome_notification_types.h" |
| 16 #include "ui/gfx/image/image.h" |
| 17 |
| 18 class FakeProfileInfo : public ProfileInfoInterface { |
| 19 public: |
| 20 FakeProfileInfo(); |
| 21 virtual ~FakeProfileInfo(); |
| 22 |
| 23 std::vector<AvatarMenuModel::Item*>* mock_profiles(); |
| 24 |
| 25 static gfx::Image& GetTestImage(); |
| 26 |
| 27 // ProfileInfoInterface: |
| 28 virtual size_t GetNumberOfProfiles() const OVERRIDE; |
| 29 virtual size_t GetIndexOfProfileWithPath( |
| 30 const FilePath& profile_path) const OVERRIDE; |
| 31 virtual string16 GetNameOfProfileAtIndex(size_t index) const OVERRIDE; |
| 32 virtual FilePath GetPathOfProfileAtIndex(size_t index) const OVERRIDE; |
| 33 virtual const gfx::Image& GetAvatarIconOfProfileAtIndex( |
| 34 size_t index) const OVERRIDE; |
| 35 |
| 36 private: |
| 37 std::vector<AvatarMenuModel::Item*> profiles_; |
| 38 }; |
| 39 |
| 40 #endif // CHROME_BROWSER_PROFILES_FAKE_PROFILE_INFO_INTERFACE_H_ |
OLD | NEW |