| 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 "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_METHOD1(GetNetworksForGeolocation, |
| 27 void(const DictionaryValueCallback& callback)); |
| 26 MOCK_METHOD4(SetProperty, void(const std::string& name, | 28 MOCK_METHOD4(SetProperty, void(const std::string& name, |
| 27 const base::Value& value, | 29 const base::Value& value, |
| 28 const base::Closure& callback, | 30 const base::Closure& callback, |
| 29 const ErrorCallback& error_callback)); | 31 const ErrorCallback& error_callback)); |
| 30 MOCK_METHOD3(RequestScan, void(const std::string& type, | 32 MOCK_METHOD3(RequestScan, void(const std::string& type, |
| 31 const base::Closure& callback, | 33 const base::Closure& callback, |
| 32 const ErrorCallback& error_callback)); | 34 const ErrorCallback& error_callback)); |
| 33 MOCK_METHOD3(EnableTechnology, void(const std::string& type, | 35 MOCK_METHOD3(EnableTechnology, void(const std::string& type, |
| 34 const base::Closure& callback, | 36 const base::Closure& callback, |
| 35 const ErrorCallback& error_callback)); | 37 const ErrorCallback& error_callback)); |
| 36 MOCK_METHOD3(DisableTechnology, void(const std::string& type, | 38 MOCK_METHOD3(DisableTechnology, void(const std::string& type, |
| 37 const base::Closure& callback, | 39 const base::Closure& callback, |
| 38 const ErrorCallback& error_callback)); | 40 const ErrorCallback& error_callback)); |
| 39 MOCK_METHOD3(ConfigureService, void(const base::DictionaryValue& properties, | 41 MOCK_METHOD3(ConfigureService, void(const base::DictionaryValue& properties, |
| 40 const base::Closure& callback, | 42 const base::Closure& callback, |
| 41 const ErrorCallback& error_callback)); | 43 const ErrorCallback& error_callback)); |
| 42 MOCK_METHOD3(GetService, void(const base::DictionaryValue& properties, | 44 MOCK_METHOD3(GetService, void(const base::DictionaryValue& properties, |
| 43 const ObjectPathCallback& callback, | 45 const ObjectPathCallback& callback, |
| 44 const ErrorCallback& error_callback)); | 46 const ErrorCallback& error_callback)); |
| 45 MOCK_METHOD0(GetTestInterface, TestInterface*()); | 47 MOCK_METHOD0(GetTestInterface, TestInterface*()); |
| 46 }; | 48 }; |
| 47 | 49 |
| 48 } // namespace chromeos | 50 } // namespace chromeos |
| 49 | 51 |
| 50 #endif // CHROMEOS_DBUS_MOCK_SHILL_MANAGER_CLIENT_H_ | 52 #endif // CHROMEOS_DBUS_MOCK_SHILL_MANAGER_CLIENT_H_ |
| OLD | NEW |