OLD | NEW |
---|---|
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 "testing/gmock/include/gmock/gmock.h" | 10 #include "testing/gmock/include/gmock/gmock.h" |
11 | 11 |
12 namespace chromeos { | 12 namespace chromeos { |
13 | 13 |
14 class MockShillManagerClient : public ShillManagerClient { | 14 class MockShillManagerClient : public ShillManagerClient { |
15 public: | 15 public: |
16 MockShillManagerClient(); | 16 MockShillManagerClient(); |
17 virtual ~MockShillManagerClient(); | 17 virtual ~MockShillManagerClient(); |
18 | 18 |
19 MOCK_METHOD1(SetPropertyChangedHandler, void( | 19 MOCK_METHOD1(SetPropertyChangedHandler, void( |
20 const PropertyChangedHandler& handler)); | 20 const PropertyChangedHandler& handler)); |
21 MOCK_METHOD0(ResetPropertyChangedHandler, void()); | 21 MOCK_METHOD0(ResetPropertyChangedHandler, void()); |
22 MOCK_METHOD1(GetProperties, void(const DictionaryValueCallback& callback)); | 22 MOCK_METHOD1(GetProperties, void(const DictionaryValueCallback& callback)); |
23 MOCK_METHOD0(CallGetPropertiesAndBlock, base::DictionaryValue*()); | 23 MOCK_METHOD0(CallGetPropertiesAndBlock, base::DictionaryValue*()); |
24 MOCK_METHOD3(SetProperty, void(const std::string& name, | 24 MOCK_METHOD4(SetProperty, void(const std::string& name, |
25 const base::Value& value, | 25 const base::Value& value, |
26 const VoidDBusMethodCallback& callback)); | 26 const base::Closure& callback, |
27 MOCK_METHOD2(RequestScan, void(const std::string& type, | 27 const ErrorCallback& error_callback)); |
28 const VoidDBusMethodCallback& callback)); | 28 MOCK_METHOD3(RequestScan, void(const std::string& type, |
29 MOCK_METHOD2(EnableTechnology, void(const std::string& type, | 29 const base::Closure& callback, |
30 const VoidDBusMethodCallback& callback)); | 30 const ErrorCallback& error_callback)); |
31 MOCK_METHOD2(DisableTechnology, void(const std::string& type, | 31 MOCK_METHOD3(EnableTechnology, void(const std::string& type, |
32 const VoidDBusMethodCallback& callback)); | 32 const base::Closure& callback, |
33 MOCK_METHOD2(ConfigureService, void(const base::DictionaryValue& properties, | 33 const ErrorCallback& error_callback)); |
34 const VoidDBusMethodCallback& callback)); | 34 MOCK_METHOD3(DisableTechnology, void(const std::string& type, |
35 MOCK_METHOD2(GetService, void(const base::DictionaryValue& properties, | 35 const base::Closure& callback, |
36 const ObjectPathDBusMethodCallback& callback)); | 36 const ErrorCallback& error_callback)); |
37 MOCK_METHOD3(ConfigureService, void(const base::DictionaryValue& properties, | |
38 const base::Closure& callback, | |
39 const ErrorCallback& error_callback)); | |
40 MOCK_METHOD3(GetService, void( | |
hashimoto
2012/09/26 00:17:34
nit: No need to newline?
Greg Spencer (Chromium)
2012/09/26 23:36:33
Done.
| |
41 const base::DictionaryValue& properties, | |
42 const ObjectPathCallback& callback, | |
43 const ErrorCallback& error_callback)); | |
37 }; | 44 }; |
38 | 45 |
39 } // namespace chromeos | 46 } // namespace chromeos |
40 | 47 |
41 #endif // CHROMEOS_DBUS_MOCK_SHILL_MANAGER_CLIENT_H_ | 48 #endif // CHROMEOS_DBUS_MOCK_SHILL_MANAGER_CLIENT_H_ |
OLD | NEW |