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