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