Chris Masone | 9be4a9d | 2011-05-16 15:44:09 -0700 | [diff] [blame] | 1 | // Copyright (c) 2011 The Chromium OS Authors. All rights reserved. |
| 2 | // Use of this source code is governed by a BSD-style license that can be |
| 3 | // found in the LICENSE file. |
| 4 | |
| 5 | #ifndef SHILL_MOCK_SERVICE_ |
| 6 | #define SHILL_MOCK_SERVICE_ |
| 7 | |
| 8 | #include <base/memory/ref_counted.h> |
| 9 | #include <gmock/gmock.h> |
| 10 | |
Chris Masone | 7aa5f90 | 2011-07-11 11:13:35 -0700 | [diff] [blame] | 11 | #include "shill/refptr_types.h" |
Chris Masone | 9be4a9d | 2011-05-16 15:44:09 -0700 | [diff] [blame] | 12 | #include "shill/service.h" |
| 13 | |
| 14 | namespace shill { |
| 15 | |
| 16 | class ControlInterface; |
| 17 | class EventDispatcher; |
Chris Masone | 6791a43 | 2011-07-12 13:23:19 -0700 | [diff] [blame] | 18 | class Manager; |
Chris Masone | 9be4a9d | 2011-05-16 15:44:09 -0700 | [diff] [blame] | 19 | |
Chris Masone | 9be4a9d | 2011-05-16 15:44:09 -0700 | [diff] [blame] | 20 | class MockService : public Service { |
| 21 | public: |
| 22 | // A constructor for the Service object |
| 23 | MockService(ControlInterface *control_interface, |
| 24 | EventDispatcher *dispatcher, |
mukesh agrawal | 51a7e93 | 2011-07-27 16:18:26 -0700 | [diff] [blame] | 25 | Manager *manager); |
Chris Masone | a82b711 | 2011-05-25 15:16:29 -0700 | [diff] [blame] | 26 | virtual ~MockService(); |
Chris Masone | 9be4a9d | 2011-05-16 15:44:09 -0700 | [diff] [blame] | 27 | |
Chris Masone | 6791a43 | 2011-07-12 13:23:19 -0700 | [diff] [blame] | 28 | MOCK_METHOD0(Connect, void()); |
| 29 | MOCK_METHOD0(Disconnect, void()); |
| 30 | MOCK_METHOD0(CalculateState, std::string()); |
| 31 | MOCK_METHOD0(GetDeviceRpcId, std::string()); |
| 32 | MOCK_CONST_METHOD0(GetRpcIdentifier, std::string()); |
Chris Masone | 9be4a9d | 2011-05-16 15:44:09 -0700 | [diff] [blame] | 33 | private: |
| 34 | DISALLOW_COPY_AND_ASSIGN(MockService); |
| 35 | }; |
| 36 | |
| 37 | } // namespace shill |
| 38 | |
| 39 | #endif // SHILL_MOCK_SERVICE_ |