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

Side by Side Diff: chromeos/dbus/mock_shill_manager_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_device_client.h ('k') | chromeos/dbus/mock_shill_profile_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_MANAGER_CLIENT_H_ 5 #ifndef CHROMEOS_DBUS_MOCK_SHILL_MANAGER_CLIENT_H_
6 #define CHROMEOS_DBUS_MOCK_SHILL_MANAGER_CLIENT_H_ 6 #define CHROMEOS_DBUS_MOCK_SHILL_MANAGER_CLIENT_H_
7 7
8 #include "base/values.h" 8 #include "base/values.h"
9 #include "chromeos/dbus/shill_manager_client.h" 9 #include "chromeos/dbus/shill_manager_client.h"
10 #include "chromeos/dbus/shill_property_changed_observer.h" 10 #include "chromeos/dbus/shill_property_changed_observer.h"
11 #include "testing/gmock/include/gmock/gmock.h" 11 #include "testing/gmock/include/gmock/gmock.h"
12 12
13 namespace chromeos { 13 namespace chromeos {
14 14
15 class MockShillManagerClient : public ShillManagerClient { 15 class MockShillManagerClient : public ShillManagerClient {
16 public: 16 public:
17 MockShillManagerClient(); 17 MockShillManagerClient();
18 virtual ~MockShillManagerClient(); 18 virtual ~MockShillManagerClient();
19 19
20 MOCK_METHOD1(AddPropertyChangedObserver, 20 MOCK_METHOD1(AddPropertyChangedObserver,
21 void(ShillPropertyChangedObserver* observer)); 21 void(ShillPropertyChangedObserver* observer));
22 MOCK_METHOD1(RemovePropertyChangedObserver, 22 MOCK_METHOD1(RemovePropertyChangedObserver,
23 void(ShillPropertyChangedObserver* observer)); 23 void(ShillPropertyChangedObserver* observer));
24 MOCK_METHOD1(GetProperties, void(const DictionaryValueCallback& callback)); 24 MOCK_METHOD1(GetProperties, void(const DictionaryValueCallback& callback));
25 MOCK_METHOD0(CallGetPropertiesAndBlock, base::DictionaryValue*()); 25 MOCK_METHOD0(CallGetPropertiesAndBlock, base::DictionaryValue*());
26 MOCK_METHOD3(SetProperty, void(const std::string& name, 26 MOCK_METHOD4(SetProperty, void(const std::string& name,
27 const base::Value& value, 27 const base::Value& value,
28 const VoidDBusMethodCallback& callback)); 28 const base::Closure& callback,
29 MOCK_METHOD2(RequestScan, void(const std::string& type, 29 const ErrorCallback& error_callback));
30 const VoidDBusMethodCallback& callback)); 30 MOCK_METHOD3(RequestScan, void(const std::string& type,
31 MOCK_METHOD2(EnableTechnology, void(const std::string& type, 31 const base::Closure& callback,
32 const VoidDBusMethodCallback& callback)); 32 const ErrorCallback& error_callback));
33 MOCK_METHOD2(DisableTechnology, void(const std::string& type, 33 MOCK_METHOD3(EnableTechnology, void(const std::string& type,
34 const VoidDBusMethodCallback& callback)); 34 const base::Closure& callback,
35 MOCK_METHOD2(ConfigureService, void(const base::DictionaryValue& properties, 35 const ErrorCallback& error_callback));
36 const VoidDBusMethodCallback& callback)); 36 MOCK_METHOD3(DisableTechnology, void(const std::string& type,
37 MOCK_METHOD2(GetService, void(const base::DictionaryValue& properties, 37 const base::Closure& callback,
38 const ObjectPathDBusMethodCallback& callback)); 38 const ErrorCallback& error_callback));
39 MOCK_METHOD3(ConfigureService, void(const base::DictionaryValue& properties,
40 const base::Closure& callback,
41 const ErrorCallback& error_callback));
42 MOCK_METHOD3(GetService, void(const base::DictionaryValue& properties,
43 const ObjectPathCallback& callback,
44 const ErrorCallback& error_callback));
39 }; 45 };
40 46
41 } // namespace chromeos 47 } // namespace chromeos
42 48
43 #endif // CHROMEOS_DBUS_MOCK_SHILL_MANAGER_CLIENT_H_ 49 #endif // CHROMEOS_DBUS_MOCK_SHILL_MANAGER_CLIENT_H_
OLDNEW
« no previous file with comments | « chromeos/dbus/mock_shill_device_client.h ('k') | chromeos/dbus/mock_shill_profile_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698