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_SHILL_PROFILE_CLIENT_STUB_H_
6 #define CHROMEOS_DBUS_SHILL_PROFILE_CLIENT_STUB_H_
10 #include "base/basictypes.h"
11 #include "chromeos/dbus/shill_profile_client.h"
15 // A stub implementation of ShillProfileClient.
16 class ShillProfileClientStub
: public ShillProfileClient
{
18 ShillProfileClientStub();
19 virtual ~ShillProfileClientStub();
21 // ShillProfileClient overrides.
22 virtual void AddPropertyChangedObserver(
23 const dbus::ObjectPath
& profile_path
,
24 ShillPropertyChangedObserver
* observer
) OVERRIDE
;
25 virtual void RemovePropertyChangedObserver(
26 const dbus::ObjectPath
& profile_path
,
27 ShillPropertyChangedObserver
* observer
) OVERRIDE
;
28 virtual void GetProperties(
29 const dbus::ObjectPath
& profile_path
,
30 const DictionaryValueCallbackWithoutStatus
& callback
,
31 const ErrorCallback
& error_callback
) OVERRIDE
;
32 virtual void GetEntry(const dbus::ObjectPath
& profile_path
,
33 const std::string
& entry_path
,
34 const DictionaryValueCallbackWithoutStatus
& callback
,
35 const ErrorCallback
& error_callback
) OVERRIDE
;
36 virtual void DeleteEntry(const dbus::ObjectPath
& profile_path
,
37 const std::string
& entry_path
,
38 const base::Closure
& callback
,
39 const ErrorCallback
& error_callback
) OVERRIDE
;
42 void PassEmptyDictionaryValue(
43 const DictionaryValueCallbackWithoutStatus
& callback
) const;
45 // Note: This should remain the last member so it'll be destroyed and
46 // invalidate its weak pointers before any other members are destroyed.
47 base::WeakPtrFactory
<ShillProfileClientStub
> weak_ptr_factory_
;
49 DISALLOW_COPY_AND_ASSIGN(ShillProfileClientStub
);
52 } // namespace chromeos
54 #endif // CHROMEOS_DBUS_SHILL_PROFILE_CLIENT_STUB_H_