| 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_FLIMFLAM_SERVICE_CLIENT_H_ | 5 #ifndef CHROMEOS_DBUS_MOCK_SHILL_SERVICE_CLIENT_H_ |
| 6 #define CHROMEOS_DBUS_MOCK_FLIMFLAM_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/flimflam_service_client.h" | 9 #include "chromeos/dbus/shill_service_client.h" |
| 10 #include "dbus/object_path.h" | 10 #include "dbus/object_path.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 MockFlimflamServiceClient : public FlimflamServiceClient { | 15 class MockShillServiceClient : public ShillServiceClient { |
| 16 public: | 16 public: |
| 17 MockFlimflamServiceClient(); | 17 MockShillServiceClient(); |
| 18 virtual ~MockFlimflamServiceClient(); | 18 virtual ~MockShillServiceClient(); |
| 19 | 19 |
| 20 MOCK_METHOD2(SetPropertyChangedHandler, | 20 MOCK_METHOD2(SetPropertyChangedHandler, |
| 21 void(const dbus::ObjectPath& service_path, | 21 void(const dbus::ObjectPath& service_path, |
| 22 const PropertyChangedHandler& handler)); | 22 const PropertyChangedHandler& handler)); |
| 23 MOCK_METHOD1(ResetPropertyChangedHandler, | 23 MOCK_METHOD1(ResetPropertyChangedHandler, |
| 24 void(const dbus::ObjectPath& service_path)); | 24 void(const dbus::ObjectPath& service_path)); |
| 25 MOCK_METHOD2(GetProperties, void(const dbus::ObjectPath& service_path, | 25 MOCK_METHOD2(GetProperties, void(const dbus::ObjectPath& service_path, |
| 26 const DictionaryValueCallback& callback)); | 26 const DictionaryValueCallback& callback)); |
| 27 MOCK_METHOD4(SetProperty, void(const dbus::ObjectPath& service_path, | 27 MOCK_METHOD4(SetProperty, void(const dbus::ObjectPath& service_path, |
| 28 const std::string& name, | 28 const std::string& name, |
| (...skipping 13 matching lines...) Expand all Loading... |
| 42 void(const dbus::ObjectPath& service_path, | 42 void(const dbus::ObjectPath& service_path, |
| 43 const std::string& carrier, | 43 const std::string& carrier, |
| 44 const VoidDBusMethodCallback& callback)); | 44 const VoidDBusMethodCallback& callback)); |
| 45 MOCK_METHOD2(CallActivateCellularModemAndBlock, | 45 MOCK_METHOD2(CallActivateCellularModemAndBlock, |
| 46 bool(const dbus::ObjectPath& service_path, | 46 bool(const dbus::ObjectPath& service_path, |
| 47 const std::string& carrier)); | 47 const std::string& carrier)); |
| 48 }; | 48 }; |
| 49 | 49 |
| 50 } // namespace chromeos | 50 } // namespace chromeos |
| 51 | 51 |
| 52 #endif // CHROMEOS_DBUS_MOCK_FLIMFLAM_SERVICE_CLIENT_H_ | 52 #endif // CHROMEOS_DBUS_MOCK_SHILL_SERVICE_CLIENT_H_ |
| OLD | NEW |