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

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

Issue 10949030: This converts the Shill clients to allow propagation of shill errors (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Fix bad merge Created 8 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
« no previous file with comments | « chromeos/dbus/dbus_method_call_status.h ('k') | chromeos/dbus/mock_shill_manager_client.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROMEOS_DBUS_MOCK_SHILL_DEVICE_CLIENT_H_ 5 #ifndef CHROMEOS_DBUS_MOCK_SHILL_DEVICE_CLIENT_H_
6 #define CHROMEOS_DBUS_MOCK_SHILL_DEVICE_CLIENT_H_ 6 #define CHROMEOS_DBUS_MOCK_SHILL_DEVICE_CLIENT_H_
7 7
8 #include "base/values.h" 8 #include "base/values.h"
9 #include "chromeos/dbus/shill_device_client.h" 9 #include "chromeos/dbus/shill_device_client.h"
10 #include "chromeos/dbus/shill_property_changed_observer.h" 10 #include "chromeos/dbus/shill_property_changed_observer.h"
(...skipping 12 matching lines...) Expand all
23 ShillPropertyChangedObserver* observer)); 23 ShillPropertyChangedObserver* observer));
24 MOCK_METHOD2(RemovePropertyChangedObserver, 24 MOCK_METHOD2(RemovePropertyChangedObserver,
25 void(const dbus::ObjectPath& device_path, 25 void(const dbus::ObjectPath& device_path,
26 ShillPropertyChangedObserver* observer)); 26 ShillPropertyChangedObserver* observer));
27 MOCK_METHOD2(GetProperties, void(const dbus::ObjectPath& device_path, 27 MOCK_METHOD2(GetProperties, void(const dbus::ObjectPath& device_path,
28 const DictionaryValueCallback& callback)); 28 const DictionaryValueCallback& callback));
29 MOCK_METHOD1(CallGetPropertiesAndBlock, 29 MOCK_METHOD1(CallGetPropertiesAndBlock,
30 base::DictionaryValue*(const dbus::ObjectPath& device_path)); 30 base::DictionaryValue*(const dbus::ObjectPath& device_path));
31 MOCK_METHOD2(ProposeScan, void(const dbus::ObjectPath& device_path, 31 MOCK_METHOD2(ProposeScan, void(const dbus::ObjectPath& device_path,
32 const VoidDBusMethodCallback& callback)); 32 const VoidDBusMethodCallback& callback));
33 MOCK_METHOD4(SetProperty, void(const dbus::ObjectPath& device_path, 33 MOCK_METHOD5(SetProperty, void(const dbus::ObjectPath& device_path,
34 const std::string& name, 34 const std::string& name,
35 const base::Value& value, 35 const base::Value& value,
36 const VoidDBusMethodCallback& callback)); 36 const base::Closure& callback,
37 const ErrorCallback& error_callback));
37 MOCK_METHOD3(ClearProperty, void(const dbus::ObjectPath& device_path, 38 MOCK_METHOD3(ClearProperty, void(const dbus::ObjectPath& device_path,
38 const std::string& name, 39 const std::string& name,
39 const VoidDBusMethodCallback& callback)); 40 const VoidDBusMethodCallback& callback));
40 MOCK_METHOD3(AddIPConfig, void(const dbus::ObjectPath& device_path, 41 MOCK_METHOD3(AddIPConfig, void(const dbus::ObjectPath& device_path,
41 const std::string& method, 42 const std::string& method,
42 const ObjectPathDBusMethodCallback& callback)); 43 const ObjectPathDBusMethodCallback& callback));
43 MOCK_METHOD2(CallAddIPConfigAndBlock, 44 MOCK_METHOD2(CallAddIPConfigAndBlock,
44 dbus::ObjectPath(const dbus::ObjectPath& device_path, 45 dbus::ObjectPath(const dbus::ObjectPath& device_path,
45 const std::string& method)); 46 const std::string& method));
46 MOCK_METHOD5(RequirePin, void(const dbus::ObjectPath& device_path, 47 MOCK_METHOD5(RequirePin, void(const dbus::ObjectPath& device_path,
(...skipping 21 matching lines...) Expand all
68 const ErrorCallback& error_callback)); 69 const ErrorCallback& error_callback));
69 MOCK_METHOD4(SetCarrier, void(const dbus::ObjectPath& device_path, 70 MOCK_METHOD4(SetCarrier, void(const dbus::ObjectPath& device_path,
70 const std::string& carrier, 71 const std::string& carrier,
71 const base::Closure& callback, 72 const base::Closure& callback,
72 const ErrorCallback& error_callback)); 73 const ErrorCallback& error_callback));
73 }; 74 };
74 75
75 } // namespace chromeos 76 } // namespace chromeos
76 77
77 #endif // CHROMEOS_DBUS_MOCK_SHILL_DEVICE_CLIENT_H_ 78 #endif // CHROMEOS_DBUS_MOCK_SHILL_DEVICE_CLIENT_H_
OLDNEW
« no previous file with comments | « chromeos/dbus/dbus_method_call_status.h ('k') | chromeos/dbus/mock_shill_manager_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698