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

Side by Side Diff: chromeos/dbus/shill_profile_client_stub.h

Issue 24150004: Refactor the setup of Shill*Stubs' default environment. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed some includes. Created 7 years, 2 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 | « chromeos/dbus/shill_manager_client_stub.cc ('k') | chromeos/dbus/shill_profile_client_stub.cc » ('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) 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
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_
OLDNEW
« no previous file with comments | « chromeos/dbus/shill_manager_client_stub.cc ('k') | chromeos/dbus/shill_profile_client_stub.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698