Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(198)

Side by Side Diff: chromeos/dbus/mock_shill_device_client.h

Issue 31513002: dbus: Remove MockShillDeviceClient and MockShillIPConfigClient (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix the build Created 7 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chromeos/dbus/mock_dbus_thread_manager.cc ('k') | chromeos/dbus/mock_shill_device_client.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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.
4
5 #ifndef CHROMEOS_DBUS_MOCK_SHILL_DEVICE_CLIENT_H_
6 #define CHROMEOS_DBUS_MOCK_SHILL_DEVICE_CLIENT_H_
7
8 #include "base/values.h"
9 #include "chromeos/dbus/shill_device_client.h"
10 #include "chromeos/dbus/shill_property_changed_observer.h"
11 #include "dbus/object_path.h"
12 #include "testing/gmock/include/gmock/gmock.h"
13
14 namespace chromeos {
15
16 class MockShillDeviceClient : public ShillDeviceClient {
17 public:
18 MockShillDeviceClient();
19 virtual ~MockShillDeviceClient();
20
21 MOCK_METHOD1(Init, void(dbus::Bus* bus));
22 MOCK_METHOD2(AddPropertyChangedObserver,
23 void(const dbus::ObjectPath& device_path,
24 ShillPropertyChangedObserver* observer));
25 MOCK_METHOD2(RemovePropertyChangedObserver,
26 void(const dbus::ObjectPath& device_path,
27 ShillPropertyChangedObserver* observer));
28 MOCK_METHOD2(GetProperties, void(const dbus::ObjectPath& device_path,
29 const DictionaryValueCallback& callback));
30 MOCK_METHOD2(ProposeScan, void(const dbus::ObjectPath& device_path,
31 const VoidDBusMethodCallback& callback));
32 MOCK_METHOD5(SetProperty, void(const dbus::ObjectPath& device_path,
33 const std::string& name,
34 const base::Value& value,
35 const base::Closure& callback,
36 const ErrorCallback& error_callback));
37 MOCK_METHOD3(ClearProperty, void(const dbus::ObjectPath& device_path,
38 const std::string& name,
39 const VoidDBusMethodCallback& callback));
40 MOCK_METHOD3(AddIPConfig, void(const dbus::ObjectPath& device_path,
41 const std::string& method,
42 const ObjectPathDBusMethodCallback& callback));
43 MOCK_METHOD5(RequirePin, void(const dbus::ObjectPath& device_path,
44 const std::string& pin,
45 bool require,
46 const base::Closure& callback,
47 const ErrorCallback& error_callback));
48 MOCK_METHOD4(EnterPin, void(const dbus::ObjectPath& device_path,
49 const std::string& pin,
50 const base::Closure& callback,
51 const ErrorCallback& error_callback));
52 MOCK_METHOD5(UnblockPin, void(const dbus::ObjectPath& device_path,
53 const std::string& puk,
54 const std::string& pin,
55 const base::Closure& callback,
56 const ErrorCallback& error_callback));
57 MOCK_METHOD5(ChangePin, void(const dbus::ObjectPath& device_path,
58 const std::string& old_pin,
59 const std::string& new_pin,
60 const base::Closure& callback,
61 const ErrorCallback& error_callback));
62 MOCK_METHOD4(Register, void(const dbus::ObjectPath& device_path,
63 const std::string& network_id,
64 const base::Closure& callback,
65 const ErrorCallback& error_callback));
66 MOCK_METHOD4(SetCarrier, void(const dbus::ObjectPath& device_path,
67 const std::string& carrier,
68 const base::Closure& callback,
69 const ErrorCallback& error_callback));
70 MOCK_METHOD3(Reset, void(const dbus::ObjectPath& device_path,
71 const base::Closure& callback,
72 const ErrorCallback& error_callback));
73 MOCK_METHOD0(GetTestInterface, TestInterface*());
74 };
75
76 } // namespace chromeos
77
78 #endif // CHROMEOS_DBUS_MOCK_SHILL_DEVICE_CLIENT_H_
OLDNEW
« no previous file with comments | « chromeos/dbus/mock_dbus_thread_manager.cc ('k') | chromeos/dbus/mock_shill_device_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698