| OLD | NEW |
| 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 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 86 virtual void AddTechnology(const std::string& type, bool enabled) OVERRIDE; | 86 virtual void AddTechnology(const std::string& type, bool enabled) OVERRIDE; |
| 87 virtual void RemoveTechnology(const std::string& type) OVERRIDE; | 87 virtual void RemoveTechnology(const std::string& type) OVERRIDE; |
| 88 virtual void SetTechnologyInitializing(const std::string& type, | 88 virtual void SetTechnologyInitializing(const std::string& type, |
| 89 bool initializing) OVERRIDE; | 89 bool initializing) OVERRIDE; |
| 90 virtual void AddGeoNetwork(const std::string& technology, | 90 virtual void AddGeoNetwork(const std::string& technology, |
| 91 const base::DictionaryValue& network) OVERRIDE; | 91 const base::DictionaryValue& network) OVERRIDE; |
| 92 virtual void AddProfile(const std::string& profile_path) OVERRIDE; | 92 virtual void AddProfile(const std::string& profile_path) OVERRIDE; |
| 93 virtual void ClearProperties() OVERRIDE; | 93 virtual void ClearProperties() OVERRIDE; |
| 94 virtual void SetManagerProperty(const std::string& key, | 94 virtual void SetManagerProperty(const std::string& key, |
| 95 const base::Value& value) OVERRIDE; | 95 const base::Value& value) OVERRIDE; |
| 96 virtual void AddManagerService(const std::string& service_path) OVERRIDE; | 96 virtual void AddManagerService(const std::string& service_path, |
| 97 bool notify_observers) OVERRIDE; |
| 97 virtual void RemoveManagerService(const std::string& service_path) OVERRIDE; | 98 virtual void RemoveManagerService(const std::string& service_path) OVERRIDE; |
| 98 virtual void ClearManagerServices() OVERRIDE; | 99 virtual void ClearManagerServices() OVERRIDE; |
| 99 virtual void ServiceStateChanged(const std::string& service_path, | 100 virtual void ServiceStateChanged(const std::string& service_path, |
| 100 const std::string& state) OVERRIDE; | 101 const std::string& state) OVERRIDE; |
| 101 virtual void SortManagerServices(bool notify) OVERRIDE; | 102 virtual void SortManagerServices(bool notify) OVERRIDE; |
| 102 virtual void SetupDefaultEnvironment() OVERRIDE; | 103 virtual void SetupDefaultEnvironment() OVERRIDE; |
| 103 virtual int GetInteractiveDelay() const OVERRIDE; | 104 virtual int GetInteractiveDelay() const OVERRIDE; |
| 104 virtual void SetBestServiceToConnect( | 105 virtual void SetBestServiceToConnect( |
| 105 const std::string& service_path) OVERRIDE; | 106 const std::string& service_path) OVERRIDE; |
| 106 | 107 |
| 107 // Constants used for testing. | 108 // Constants used for testing. |
| 108 static const char kFakeEthernetNetworkPath[]; | 109 static const char kFakeEthernetNetworkPath[]; |
| 109 | 110 |
| 110 private: | 111 private: |
| 111 // |property| should be kServicesProperty or kServiceCompleteListProperty. | |
| 112 void SortServiceList(const std::string& property); | |
| 113 | |
| 114 void SetDefaultProperties(); | 112 void SetDefaultProperties(); |
| 115 void PassStubProperties(const DictionaryValueCallback& callback) const; | 113 void PassStubProperties(const DictionaryValueCallback& callback) const; |
| 116 void PassStubGeoNetworks(const DictionaryValueCallback& callback) const; | 114 void PassStubGeoNetworks(const DictionaryValueCallback& callback) const; |
| 117 void CallNotifyObserversPropertyChanged(const std::string& property); | 115 void CallNotifyObserversPropertyChanged(const std::string& property); |
| 118 void NotifyObserversPropertyChanged(const std::string& property); | 116 void NotifyObserversPropertyChanged(const std::string& property); |
| 119 base::ListValue* GetListProperty(const std::string& property); | 117 base::ListValue* GetListProperty(const std::string& property); |
| 120 bool TechnologyEnabled(const std::string& type) const; | 118 bool TechnologyEnabled(const std::string& type) const; |
| 121 void SetTechnologyEnabled(const std::string& type, | 119 void SetTechnologyEnabled(const std::string& type, |
| 122 const base::Closure& callback, | 120 const base::Closure& callback, |
| 123 bool enabled); | 121 bool enabled); |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 157 | 155 |
| 158 // 'Best' service to connect to on ConnectToBestServices() calls. | 156 // 'Best' service to connect to on ConnectToBestServices() calls. |
| 159 std::string best_service_; | 157 std::string best_service_; |
| 160 | 158 |
| 161 DISALLOW_COPY_AND_ASSIGN(FakeShillManagerClient); | 159 DISALLOW_COPY_AND_ASSIGN(FakeShillManagerClient); |
| 162 }; | 160 }; |
| 163 | 161 |
| 164 } // namespace chromeos | 162 } // namespace chromeos |
| 165 | 163 |
| 166 #endif // CHROMEOS_DBUS_FAKE_SHILL_MANAGER_CLIENT_H_ | 164 #endif // CHROMEOS_DBUS_FAKE_SHILL_MANAGER_CLIENT_H_ |
| OLD | NEW |