OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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 CHROMEOS_DBUS_SHILL_PROFILE_CLIENT_STUB_H_ | 5 #ifndef CHROMEOS_DBUS_SHILL_PROFILE_CLIENT_STUB_H_ |
6 #define CHROMEOS_DBUS_SHILL_PROFILE_CLIENT_STUB_H_ | 6 #define CHROMEOS_DBUS_SHILL_PROFILE_CLIENT_STUB_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
46 // ShillProfileClient::TestInterface overrides. | 46 // ShillProfileClient::TestInterface overrides. |
47 virtual void AddProfile(const std::string& profile_path, | 47 virtual void AddProfile(const std::string& profile_path, |
48 const std::string& userhash) OVERRIDE; | 48 const std::string& userhash) OVERRIDE; |
49 virtual void AddEntry(const std::string& profile_path, | 49 virtual void AddEntry(const std::string& profile_path, |
50 const std::string& entry_path, | 50 const std::string& entry_path, |
51 const base::DictionaryValue& properties) OVERRIDE; | 51 const base::DictionaryValue& properties) OVERRIDE; |
52 virtual bool AddService(const std::string& profile_path, | 52 virtual bool AddService(const std::string& profile_path, |
53 const std::string& service_path) OVERRIDE; | 53 const std::string& service_path) OVERRIDE; |
54 virtual void GetProfilePaths(std::vector<std::string>* profiles) OVERRIDE; | 54 virtual void GetProfilePaths(std::vector<std::string>* profiles) OVERRIDE; |
55 | 55 |
56 static const char kSharedProfilePath[]; | |
57 | |
58 private: | 56 private: |
59 struct ProfileProperties; | 57 struct ProfileProperties; |
60 typedef std::map<std::string, ProfileProperties*> ProfileMap; | 58 typedef std::map<std::string, ProfileProperties*> ProfileMap; |
61 | 59 |
62 ProfileProperties* GetProfile(const dbus::ObjectPath& profile_path, | 60 ProfileProperties* GetProfile(const dbus::ObjectPath& profile_path, |
63 const ErrorCallback& error_callback); | 61 const ErrorCallback& error_callback); |
64 | 62 |
65 // The values are owned by this class and are explicitly destroyed where | 63 // The values are owned by this class and are explicitly destroyed where |
66 // necessary. | 64 // necessary. |
67 ProfileMap profiles_; | 65 ProfileMap profiles_; |
68 | 66 |
69 DISALLOW_COPY_AND_ASSIGN(ShillProfileClientStub); | 67 DISALLOW_COPY_AND_ASSIGN(ShillProfileClientStub); |
70 }; | 68 }; |
71 | 69 |
72 } // namespace chromeos | 70 } // namespace chromeos |
73 | 71 |
74 #endif // CHROMEOS_DBUS_SHILL_PROFILE_CLIENT_STUB_H_ | 72 #endif // CHROMEOS_DBUS_SHILL_PROFILE_CLIENT_STUB_H_ |
OLD | NEW |