OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef CHROMEOS_DBUS_FAKE_SHILL_MANAGER_CLIENT_H_ |
| 6 #define CHROMEOS_DBUS_FAKE_SHILL_MANAGER_CLIENT_H_ |
| 7 |
| 8 #include "base/values.h" |
| 9 #include "chromeos/dbus/shill_manager_client.h" |
| 10 #include "chromeos/dbus/shill_property_changed_observer.h" |
| 11 |
| 12 namespace chromeos { |
| 13 |
| 14 // A fake implementation of ShillManagerClient. This class does nothing. |
| 15 class FakeShillManagerClient : public ShillManagerClient { |
| 16 public: |
| 17 FakeShillManagerClient(); |
| 18 virtual ~FakeShillManagerClient(); |
| 19 |
| 20 // ShillManagerClient overrides. |
| 21 virtual void AddPropertyChangedObserver( |
| 22 ShillPropertyChangedObserver* observer) OVERRIDE; |
| 23 virtual void RemovePropertyChangedObserver( |
| 24 ShillPropertyChangedObserver* observer) OVERRIDE; |
| 25 virtual void GetProperties(const DictionaryValueCallback& callback) OVERRIDE; |
| 26 virtual base::DictionaryValue* CallGetPropertiesAndBlock() OVERRIDE; |
| 27 virtual void GetNetworksForGeolocation( |
| 28 const DictionaryValueCallback& callback) OVERRIDE; |
| 29 virtual void SetProperty(const std::string& name, |
| 30 const base::Value& value, |
| 31 const base::Closure& callback, |
| 32 const ErrorCallback& error_callback) OVERRIDE; |
| 33 virtual void RequestScan(const std::string& type, |
| 34 const base::Closure& callback, |
| 35 const ErrorCallback& error_callback) OVERRIDE; |
| 36 virtual void EnableTechnology(const std::string& type, |
| 37 const base::Closure& callback, |
| 38 const ErrorCallback& error_callback) OVERRIDE; |
| 39 virtual void DisableTechnology(const std::string& type, |
| 40 const base::Closure& callback, |
| 41 const ErrorCallback& error_callback) OVERRIDE; |
| 42 virtual void ConfigureService(const base::DictionaryValue& properties, |
| 43 const ObjectPathCallback& callback, |
| 44 const ErrorCallback& error_callback) OVERRIDE; |
| 45 virtual void ConfigureServiceForProfile( |
| 46 const dbus::ObjectPath& profile_path, |
| 47 const base::DictionaryValue& properties, |
| 48 const ObjectPathCallback& callback, |
| 49 const ErrorCallback& error_callback) OVERRIDE; |
| 50 virtual void GetService(const base::DictionaryValue& properties, |
| 51 const ObjectPathCallback& callback, |
| 52 const ErrorCallback& error_callback) OVERRIDE; |
| 53 virtual void VerifyDestination(const std::string& certificate, |
| 54 const std::string& public_key, |
| 55 const std::string& nonce, |
| 56 const std::string& signed_data, |
| 57 const std::string& device_serial, |
| 58 const BooleanCallback& callback, |
| 59 const ErrorCallback& error_callback) OVERRIDE; |
| 60 virtual void VerifyAndEncryptCredentials( |
| 61 const std::string& certificate, |
| 62 const std::string& public_key, |
| 63 const std::string& nonce, |
| 64 const std::string& signed_data, |
| 65 const std::string& device_serial, |
| 66 const std::string& service_path, |
| 67 const StringCallback& callback, |
| 68 const ErrorCallback& error_callback) OVERRIDE; |
| 69 virtual void VerifyAndEncryptData( |
| 70 const std::string& certificate, |
| 71 const std::string& public_key, |
| 72 const std::string& nonce, |
| 73 const std::string& signed_data, |
| 74 const std::string& device_serial, |
| 75 const std::string& data, |
| 76 const StringCallback& callback, |
| 77 const ErrorCallback& error_callback) OVERRIDE; |
| 78 virtual void ConnectToBestServices( |
| 79 const base::Closure& callback, |
| 80 const ErrorCallback& error_callback) OVERRIDE; |
| 81 virtual TestInterface* GetTestInterface() OVERRIDE; |
| 82 |
| 83 private: |
| 84 DISALLOW_COPY_AND_ASSIGN(FakeShillManagerClient); |
| 85 }; |
| 86 |
| 87 } // namespace chromeos |
| 88 |
| 89 #endif // CHROMEOS_DBUS_FAKE_SHILL_MANAGER_CLIENT_H_ |
OLD | NEW |