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

Side by Side Diff: chromeos/dbus/mock_shill_service_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/mock_shill_profile_client.h ('k') | chromeos/dbus/shill_client_helper.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_SERVICE_CLIENT_H_ 5 #ifndef CHROMEOS_DBUS_MOCK_SHILL_SERVICE_CLIENT_H_
6 #define CHROMEOS_DBUS_MOCK_SHILL_SERVICE_CLIENT_H_ 6 #define CHROMEOS_DBUS_MOCK_SHILL_SERVICE_CLIENT_H_
7 7
8 #include "base/values.h" 8 #include "base/values.h"
9 #include "chromeos/dbus/shill_property_changed_observer.h" 9 #include "chromeos/dbus/shill_property_changed_observer.h"
10 #include "chromeos/dbus/shill_service_client.h" 10 #include "chromeos/dbus/shill_service_client.h"
11 #include "dbus/object_path.h" 11 #include "dbus/object_path.h"
12 #include "testing/gmock/include/gmock/gmock.h" 12 #include "testing/gmock/include/gmock/gmock.h"
13 13
14 namespace chromeos { 14 namespace chromeos {
15 15
16 class MockShillServiceClient : public ShillServiceClient { 16 class MockShillServiceClient : public ShillServiceClient {
17 public: 17 public:
18 MockShillServiceClient(); 18 MockShillServiceClient();
19 virtual ~MockShillServiceClient(); 19 virtual ~MockShillServiceClient();
20 20
21 MOCK_METHOD2(AddPropertyChangedObserver, 21 MOCK_METHOD2(AddPropertyChangedObserver,
22 void(const dbus::ObjectPath& service_path, 22 void(const dbus::ObjectPath& service_path,
23 ShillPropertyChangedObserver* observer)); 23 ShillPropertyChangedObserver* observer));
24 MOCK_METHOD2(RemovePropertyChangedObserver, 24 MOCK_METHOD2(RemovePropertyChangedObserver,
25 void(const dbus::ObjectPath& service_path, 25 void(const dbus::ObjectPath& service_path,
26 ShillPropertyChangedObserver* observer)); 26 ShillPropertyChangedObserver* observer));
27 MOCK_METHOD2(GetProperties, void(const dbus::ObjectPath& service_path, 27 MOCK_METHOD2(GetProperties, void(const dbus::ObjectPath& service_path,
28 const DictionaryValueCallback& callback)); 28 const DictionaryValueCallback& callback));
29 MOCK_METHOD4(SetProperty, void(const dbus::ObjectPath& service_path, 29 MOCK_METHOD5(SetProperty, void(const dbus::ObjectPath& service_path,
30 const std::string& name, 30 const std::string& name,
31 const base::Value& value, 31 const base::Value& value,
32 const VoidDBusMethodCallback& callback)); 32 const base::Closure& callback,
33 MOCK_METHOD3(ClearProperty, void(const dbus::ObjectPath& service_path, 33 const ErrorCallback& error_callback));
34 MOCK_METHOD4(ClearProperty, void(const dbus::ObjectPath& service_path,
34 const std::string& name, 35 const std::string& name,
35 const VoidDBusMethodCallback& callback)); 36 const base::Closure& callback,
37 const ErrorCallback& error_callback));
36 MOCK_METHOD3(Connect, void(const dbus::ObjectPath& service_path, 38 MOCK_METHOD3(Connect, void(const dbus::ObjectPath& service_path,
37 const base::Closure& callback, 39 const base::Closure& callback,
38 const ErrorCallback& error_callback)); 40 const ErrorCallback& error_callback));
39 MOCK_METHOD2(Disconnect, void(const dbus::ObjectPath& service_path, 41 MOCK_METHOD3(Disconnect, void(const dbus::ObjectPath& service_path,
40 const VoidDBusMethodCallback& callback)); 42 const base::Closure& callback,
41 MOCK_METHOD2(Remove, void(const dbus::ObjectPath& service_path, 43 const ErrorCallback& error_callback));
42 const VoidDBusMethodCallback& callback)); 44 MOCK_METHOD3(Remove, void(const dbus::ObjectPath& service_path,
43 MOCK_METHOD3(ActivateCellularModem, 45 const base::Closure& callback,
46 const ErrorCallback& error_callback));
47 MOCK_METHOD4(ActivateCellularModem,
44 void(const dbus::ObjectPath& service_path, 48 void(const dbus::ObjectPath& service_path,
45 const std::string& carrier, 49 const std::string& carrier,
46 const VoidDBusMethodCallback& callback)); 50 const base::Closure& callback,
51 const ErrorCallback& error_callback));
47 MOCK_METHOD2(CallActivateCellularModemAndBlock, 52 MOCK_METHOD2(CallActivateCellularModemAndBlock,
48 bool(const dbus::ObjectPath& service_path, 53 bool(const dbus::ObjectPath& service_path,
49 const std::string& carrier)); 54 const std::string& carrier));
50 }; 55 };
51 56
52 } // namespace chromeos 57 } // namespace chromeos
53 58
54 #endif // CHROMEOS_DBUS_MOCK_SHILL_SERVICE_CLIENT_H_ 59 #endif // CHROMEOS_DBUS_MOCK_SHILL_SERVICE_CLIENT_H_
OLDNEW
« no previous file with comments | « chromeos/dbus/mock_shill_profile_client.h ('k') | chromeos/dbus/shill_client_helper.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698