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

Side by Side Diff: chrome/browser/profiles/fake_profile_info_interface.h

Issue 7621031: Revert 97049 - Trying to see if it fixes sync_integration_tests (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | chrome/browser/profiles/profile_manager.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/profiles/profile_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698