| 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 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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, | 96 virtual void AddManagerService(const std::string& service_path, |
| 97 bool add_to_visible_list, | 97 bool add_to_visible_list) OVERRIDE; |
| 98 bool add_to_watch_list) OVERRIDE; | |
| 99 virtual void RemoveManagerService(const std::string& service_path, | 98 virtual void RemoveManagerService(const std::string& service_path, |
| 100 bool remove_from_complete_list) OVERRIDE; | 99 bool remove_from_complete_list) OVERRIDE; |
| 101 virtual void ClearManagerServices() OVERRIDE; | 100 virtual void ClearManagerServices() OVERRIDE; |
| 102 virtual void ServiceStateChanged(const std::string& service_path, | 101 virtual void ServiceStateChanged(const std::string& service_path, |
| 103 const std::string& state) OVERRIDE; | 102 const std::string& state) OVERRIDE; |
| 104 virtual void SortManagerServices() OVERRIDE; | 103 virtual void SortManagerServices() OVERRIDE; |
| 105 virtual void SetupDefaultEnvironment() OVERRIDE; | 104 virtual void SetupDefaultEnvironment() OVERRIDE; |
| 106 virtual int GetInteractiveDelay() const OVERRIDE; | 105 virtual int GetInteractiveDelay() const OVERRIDE; |
| 107 virtual void SetBestServiceToConnect( | 106 virtual void SetBestServiceToConnect( |
| 108 const std::string& service_path) OVERRIDE; | 107 const std::string& service_path) OVERRIDE; |
| 109 | 108 |
| 109 // Constants used for testing. |
| 110 static const char kFakeEthernetNetworkPath[]; |
| 111 |
| 110 private: | 112 private: |
| 111 // |property| should be kServicesProperty or kServiceCompleteListProperty. | 113 // |property| should be kServicesProperty or kServiceCompleteListProperty. |
| 112 void SortServiceList(const std::string& property); | 114 void SortServiceList(const std::string& property); |
| 113 | 115 |
| 114 void AddServiceToWatchList(const std::string& service_path); | |
| 115 void SetDefaultProperties(); | 116 void SetDefaultProperties(); |
| 116 void PassStubProperties(const DictionaryValueCallback& callback) const; | 117 void PassStubProperties(const DictionaryValueCallback& callback) const; |
| 117 void PassStubGeoNetworks(const DictionaryValueCallback& callback) const; | 118 void PassStubGeoNetworks(const DictionaryValueCallback& callback) const; |
| 118 void CallNotifyObserversPropertyChanged(const std::string& property); | 119 void CallNotifyObserversPropertyChanged(const std::string& property); |
| 119 void NotifyObserversPropertyChanged(const std::string& property); | 120 void NotifyObserversPropertyChanged(const std::string& property); |
| 120 base::ListValue* GetListProperty(const std::string& property); | 121 base::ListValue* GetListProperty(const std::string& property); |
| 121 bool TechnologyEnabled(const std::string& type) const; | 122 bool TechnologyEnabled(const std::string& type) const; |
| 122 void SetTechnologyEnabled(const std::string& type, | 123 void SetTechnologyEnabled(const std::string& type, |
| 123 const base::Closure& callback, | 124 const base::Closure& callback, |
| 124 bool enabled); | 125 bool enabled); |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 159 | 160 |
| 160 // 'Best' service to connect to on ConnectToBestServices() calls. | 161 // 'Best' service to connect to on ConnectToBestServices() calls. |
| 161 std::string best_service_; | 162 std::string best_service_; |
| 162 | 163 |
| 163 DISALLOW_COPY_AND_ASSIGN(FakeShillManagerClient); | 164 DISALLOW_COPY_AND_ASSIGN(FakeShillManagerClient); |
| 164 }; | 165 }; |
| 165 | 166 |
| 166 } // namespace chromeos | 167 } // namespace chromeos |
| 167 | 168 |
| 168 #endif // CHROMEOS_DBUS_FAKE_SHILL_MANAGER_CLIENT_H_ | 169 #endif // CHROMEOS_DBUS_FAKE_SHILL_MANAGER_CLIENT_H_ |
| OLD | NEW |