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_SERVICE_CLIENT_H_
6 #define CHROMEOS_DBUS_MOCK_SHILL_SERVICE_CLIENT_H_
8 #include "base/values.h"
9 #include "chromeos/dbus/shill_property_changed_observer.h"
10 #include "chromeos/dbus/shill_service_client.h"
11 #include "dbus/object_path.h"
12 #include "testing/gmock/include/gmock/gmock.h"
16 class MockShillServiceClient
: public ShillServiceClient
{
18 MockShillServiceClient();
19 virtual ~MockShillServiceClient();
21 MOCK_METHOD2(AddPropertyChangedObserver
,
22 void(const dbus::ObjectPath
& service_path
,
23 ShillPropertyChangedObserver
* observer
));
24 MOCK_METHOD2(RemovePropertyChangedObserver
,
25 void(const dbus::ObjectPath
& service_path
,
26 ShillPropertyChangedObserver
* observer
));
27 MOCK_METHOD2(GetProperties
, void(const dbus::ObjectPath
& service_path
,
28 const DictionaryValueCallback
& callback
));
29 MOCK_METHOD5(SetProperty
, void(const dbus::ObjectPath
& service_path
,
30 const std::string
& name
,
31 const base::Value
& value
,
32 const base::Closure
& callback
,
33 const ErrorCallback
& error_callback
));
34 MOCK_METHOD4(ClearProperty
, void(const dbus::ObjectPath
& service_path
,
35 const std::string
& name
,
36 const base::Closure
& callback
,
37 const ErrorCallback
& error_callback
));
38 MOCK_METHOD4(ClearProperties
, void(const dbus::ObjectPath
& service_path
,
39 const std::vector
<std::string
>& names
,
40 const ListValueCallback
& callback
,
41 const ErrorCallback
& error_callback
));
42 MOCK_METHOD3(Connect
, void(const dbus::ObjectPath
& service_path
,
43 const base::Closure
& callback
,
44 const ErrorCallback
& error_callback
));
45 MOCK_METHOD3(Disconnect
, void(const dbus::ObjectPath
& service_path
,
46 const base::Closure
& callback
,
47 const ErrorCallback
& error_callback
));
48 MOCK_METHOD3(Remove
, void(const dbus::ObjectPath
& service_path
,
49 const base::Closure
& callback
,
50 const ErrorCallback
& error_callback
));
51 MOCK_METHOD4(ActivateCellularModem
,
52 void(const dbus::ObjectPath
& service_path
,
53 const std::string
& carrier
,
54 const base::Closure
& callback
,
55 const ErrorCallback
& error_callback
));
56 MOCK_METHOD3(CompleteCellularActivation
,
57 void(const dbus::ObjectPath
& service_path
,
58 const base::Closure
& callback
,
59 const ErrorCallback
& error_callback
));
60 MOCK_METHOD2(CallActivateCellularModemAndBlock
,
61 bool(const dbus::ObjectPath
& service_path
,
62 const std::string
& carrier
));
63 MOCK_METHOD0(GetTestInterface
, TestInterface
*());
66 } // namespace chromeos
68 #endif // CHROMEOS_DBUS_MOCK_SHILL_SERVICE_CLIENT_H_