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

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

Issue 280023003: Implement networkingPrivate.getNetworks (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix tests (sort ServiceCompleteList) Created 6 years, 7 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
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 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_FAKE_SHILL_MANAGER_CLIENT_H_ 5 #ifndef CHROMEOS_DBUS_FAKE_SHILL_MANAGER_CLIENT_H_
6 #define CHROMEOS_DBUS_FAKE_SHILL_MANAGER_CLIENT_H_ 6 #define CHROMEOS_DBUS_FAKE_SHILL_MANAGER_CLIENT_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 bool add_to_watch_list) OVERRIDE; 98 bool add_to_watch_list) OVERRIDE;
99 virtual void RemoveManagerService(const std::string& service_path) OVERRIDE; 99 virtual void RemoveManagerService(const std::string& service_path) OVERRIDE;
100 virtual void ClearManagerServices() OVERRIDE; 100 virtual void ClearManagerServices() OVERRIDE;
101 virtual void ServiceStateChanged(const std::string& service_path, 101 virtual void ServiceStateChanged(const std::string& service_path,
102 const std::string& state) OVERRIDE; 102 const std::string& state) OVERRIDE;
103 virtual void SortManagerServices() OVERRIDE; 103 virtual void SortManagerServices() OVERRIDE;
104 virtual void SetupDefaultEnvironment() OVERRIDE; 104 virtual void SetupDefaultEnvironment() OVERRIDE;
105 virtual int GetInteractiveDelay() const OVERRIDE; 105 virtual int GetInteractiveDelay() const OVERRIDE;
106 106
107 private: 107 private:
108 void SortServiceList(const std::string& property);
pneubeck (no reviews) 2014/05/15 18:28:37 optional nit: add a comment; also that |property|
stevenjb 2014/05/15 20:12:41 Done.
108 void AddServiceToWatchList(const std::string& service_path); 109 void AddServiceToWatchList(const std::string& service_path);
109 void SetDefaultProperties(); 110 void SetDefaultProperties();
110 void PassStubProperties(const DictionaryValueCallback& callback) const; 111 void PassStubProperties(const DictionaryValueCallback& callback) const;
111 void PassStubGeoNetworks(const DictionaryValueCallback& callback) const; 112 void PassStubGeoNetworks(const DictionaryValueCallback& callback) const;
112 void CallNotifyObserversPropertyChanged(const std::string& property); 113 void CallNotifyObserversPropertyChanged(const std::string& property);
113 void NotifyObserversPropertyChanged(const std::string& property); 114 void NotifyObserversPropertyChanged(const std::string& property);
114 base::ListValue* GetListProperty(const std::string& property); 115 base::ListValue* GetListProperty(const std::string& property);
115 bool TechnologyEnabled(const std::string& type) const; 116 bool TechnologyEnabled(const std::string& type) const;
116 void SetTechnologyEnabled(const std::string& type, 117 void SetTechnologyEnabled(const std::string& type,
117 const base::Closure& callback, 118 const base::Closure& callback,
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
150 151
151 // Track the default service for signaling Manager.DefaultService. 152 // Track the default service for signaling Manager.DefaultService.
152 std::string default_service_; 153 std::string default_service_;
153 154
154 DISALLOW_COPY_AND_ASSIGN(FakeShillManagerClient); 155 DISALLOW_COPY_AND_ASSIGN(FakeShillManagerClient);
155 }; 156 };
156 157
157 } // namespace chromeos 158 } // namespace chromeos
158 159
159 #endif // CHROMEOS_DBUS_FAKE_SHILL_MANAGER_CLIENT_H_ 160 #endif // CHROMEOS_DBUS_FAKE_SHILL_MANAGER_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698