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/callback.h" | 10 #include "base/callback.h" |
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
95 bool notify_observers) override; | 95 bool notify_observers) override; |
96 void RemoveManagerService(const std::string& service_path) override; | 96 void RemoveManagerService(const std::string& service_path) override; |
97 void ClearManagerServices() override; | 97 void ClearManagerServices() override; |
98 void ServiceStateChanged(const std::string& service_path, | 98 void ServiceStateChanged(const std::string& service_path, |
99 const std::string& state) override; | 99 const std::string& state) override; |
100 void SortManagerServices(bool notify) override; | 100 void SortManagerServices(bool notify) override; |
101 void SetupDefaultEnvironment() override; | 101 void SetupDefaultEnvironment() override; |
102 int GetInteractiveDelay() const override; | 102 int GetInteractiveDelay() const override; |
103 void SetBestServiceToConnect(const std::string& service_path) override; | 103 void SetBestServiceToConnect(const std::string& service_path) override; |
104 | 104 |
| 105 void SetNetworkThrottlingStatus(bool enabled, |
| 106 uint32_t upload_rate_kbits, |
| 107 uint32_t download_rate_kbits, |
| 108 const base::Closure& callback, |
| 109 const ErrorCallback& error_callback); |
| 110 |
105 // Constants used for testing. | 111 // Constants used for testing. |
106 static const char kFakeEthernetNetworkGuid[]; | 112 static const char kFakeEthernetNetworkGuid[]; |
107 | 113 |
108 private: | 114 private: |
109 void SetDefaultProperties(); | 115 void SetDefaultProperties(); |
110 void PassStubProperties(const DictionaryValueCallback& callback) const; | 116 void PassStubProperties(const DictionaryValueCallback& callback) const; |
111 void PassStubGeoNetworks(const DictionaryValueCallback& callback) const; | 117 void PassStubGeoNetworks(const DictionaryValueCallback& callback) const; |
112 void CallNotifyObserversPropertyChanged(const std::string& property); | 118 void CallNotifyObserversPropertyChanged(const std::string& property); |
113 void NotifyObserversPropertyChanged(const std::string& property); | 119 void NotifyObserversPropertyChanged(const std::string& property); |
114 base::ListValue* GetListProperty(const std::string& property); | 120 base::ListValue* GetListProperty(const std::string& property); |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
164 // Note: This should remain the last member so it'll be destroyed and | 170 // Note: This should remain the last member so it'll be destroyed and |
165 // invalidate its weak pointers before any other members are destroyed. | 171 // invalidate its weak pointers before any other members are destroyed. |
166 base::WeakPtrFactory<FakeShillManagerClient> weak_ptr_factory_; | 172 base::WeakPtrFactory<FakeShillManagerClient> weak_ptr_factory_; |
167 | 173 |
168 DISALLOW_COPY_AND_ASSIGN(FakeShillManagerClient); | 174 DISALLOW_COPY_AND_ASSIGN(FakeShillManagerClient); |
169 }; | 175 }; |
170 | 176 |
171 } // namespace chromeos | 177 } // namespace chromeos |
172 | 178 |
173 #endif // CHROMEOS_DBUS_FAKE_SHILL_MANAGER_CLIENT_H_ | 179 #endif // CHROMEOS_DBUS_FAKE_SHILL_MANAGER_CLIENT_H_ |
OLD | NEW |