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.
5 #ifndef CHROMEOS_DBUS_FAKE_SHILL_MANAGER_CLIENT_H_
6 #define CHROMEOS_DBUS_FAKE_SHILL_MANAGER_CLIENT_H_
8 #include "base/values.h"
9 #include "chromeos/dbus/shill_manager_client.h"
10 #include "chromeos/dbus/shill_property_changed_observer.h"
14 // A fake implementation of ShillManagerClient. This class does nothing.
15 class FakeShillManagerClient
: public ShillManagerClient
{
17 FakeShillManagerClient();
18 virtual ~FakeShillManagerClient();
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 VerificationProperties
& properties
,
54 const BooleanCallback
& callback
,
55 const ErrorCallback
& error_callback
) OVERRIDE
;
56 virtual void VerifyAndEncryptCredentials(
57 const VerificationProperties
& properties
,
58 const std::string
& service_path
,
59 const StringCallback
& callback
,
60 const ErrorCallback
& error_callback
) OVERRIDE
;
61 virtual void VerifyAndEncryptData(
62 const VerificationProperties
& properties
,
63 const std::string
& data
,
64 const StringCallback
& callback
,
65 const ErrorCallback
& error_callback
) OVERRIDE
;
66 virtual void ConnectToBestServices(
67 const base::Closure
& callback
,
68 const ErrorCallback
& error_callback
) OVERRIDE
;
69 virtual TestInterface
* GetTestInterface() OVERRIDE
;
72 DISALLOW_COPY_AND_ASSIGN(FakeShillManagerClient
);
75 } // namespace chromeos
77 #endif // CHROMEOS_DBUS_FAKE_SHILL_MANAGER_CLIENT_H_