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

Side by Side Diff: chromeos/dbus/mock_shill_ipconfig_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_shill_device_client.cc ('k') | chromeos/dbus/mock_shill_ipconfig_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_IPCONFIG_CLIENT_H_
6 #define CHROMEOS_DBUS_MOCK_SHILL_IPCONFIG_CLIENT_H_
7
8 #include "base/values.h"
9 #include "chromeos/dbus/shill_ipconfig_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 MockShillIPConfigClient : public ShillIPConfigClient {
17 public:
18 MockShillIPConfigClient();
19 virtual ~MockShillIPConfigClient();
20
21 MOCK_METHOD1(Init, void(dbus::Bus* bus));
22 MOCK_METHOD2(AddPropertyChangedObserver,
23 void(const dbus::ObjectPath& ipconfig_path,
24 ShillPropertyChangedObserver* observer));
25 MOCK_METHOD2(RemovePropertyChangedObserver,
26 void(const dbus::ObjectPath& ipconfig_path,
27 ShillPropertyChangedObserver* observer));
28 MOCK_METHOD2(Refresh, void(const dbus::ObjectPath& ipconfig_path,
29 const VoidDBusMethodCallback& callback));
30 MOCK_METHOD2(GetProperties, void(const dbus::ObjectPath& ipconfig_path,
31 const DictionaryValueCallback& callback));
32 MOCK_METHOD4(SetProperty, void(const dbus::ObjectPath& ipconfig_path,
33 const std::string& name,
34 const base::Value& value,
35 const VoidDBusMethodCallback& callback));
36 MOCK_METHOD3(ClearProperty, void(const dbus::ObjectPath& ipconfig_path,
37 const std::string& name,
38 const VoidDBusMethodCallback& callback));
39 MOCK_METHOD2(Remove, void(const dbus::ObjectPath& ipconfig_path,
40 const VoidDBusMethodCallback& callback));
41 };
42
43 } // namespace chromeos
44
45 #endif // CHROMEOS_DBUS_MOCK_SHILL_IPCONFIG_CLIENT_H_
OLDNEW
« no previous file with comments | « chromeos/dbus/mock_shill_device_client.cc ('k') | chromeos/dbus/mock_shill_ipconfig_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698