1 // Copyright (c) 2012 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_MOCK_SHILL_NETWORK_CLIENT_H_
6 #define CHROMEOS_DBUS_MOCK_SHILL_NETWORK_CLIENT_H_
8 #include "chromeos/dbus/shill_network_client.h"
9 #include "chromeos/dbus/shill_property_changed_observer.h"
10 #include "dbus/object_path.h"
11 #include "testing/gmock/include/gmock/gmock.h"
15 class MockShillNetworkClient
: public ShillNetworkClient
{
17 MockShillNetworkClient();
18 virtual ~MockShillNetworkClient();
20 MOCK_METHOD2(AddPropertyChangedObserver
,
21 void(const dbus::ObjectPath
& network_path
,
22 ShillPropertyChangedObserver
* observer
));
23 MOCK_METHOD2(RemovePropertyChangedObserver
,
24 void(const dbus::ObjectPath
& network_path
,
25 ShillPropertyChangedObserver
* observer
));
26 MOCK_METHOD2(GetProperties
, void(const dbus::ObjectPath
& network_path
,
27 const DictionaryValueCallback
& callback
));
28 MOCK_METHOD1(CallGetPropertiesAndBlock
,
29 base::DictionaryValue
*(const dbus::ObjectPath
& network_path
));
32 } // namespace chromeos
34 #endif // CHROMEOS_DBUS_MOCK_SHILL_NETWORK_CLIENT_H_