Chris Masone | 626719f | 2011-08-18 16:58:48 -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_MANAGER_ |
| 6 | #define SHILL_MOCK_MANAGER_ |
| 7 | |
| 8 | #include <base/memory/ref_counted.h> |
| 9 | #include <gmock/gmock.h> |
| 10 | |
| 11 | #include "shill/manager.h" |
| 12 | |
| 13 | namespace shill { |
| 14 | |
| 15 | class ControlInterface; |
| 16 | class DeviceInfo; |
| 17 | class EventDispatcher; |
| 18 | class GLib; |
| 19 | class PropertyStore; |
| 20 | |
| 21 | class MockManager : public Manager { |
| 22 | public: |
| 23 | MockManager(ControlInterface *control_interface, |
| 24 | EventDispatcher *dispatcher, |
| 25 | GLib *glib) |
Chris Masone | 2ae797d | 2011-08-23 20:41:00 -0700 | [diff] [blame] | 26 | : Manager(control_interface, dispatcher, glib, "", "", "") { |
Chris Masone | 626719f | 2011-08-18 16:58:48 -0700 | [diff] [blame] | 27 | } |
| 28 | ~MockManager() {} |
| 29 | |
| 30 | MOCK_METHOD0(device_info, DeviceInfo*(void)); |
| 31 | MOCK_METHOD0(store, PropertyStore*(void)); |
Paul Stewart | 03dba0b | 2011-08-22 16:32:45 -0700 | [diff] [blame] | 32 | MOCK_METHOD1(UpdateService, void(const ServiceConstRefPtr &to_update)); |
Chris Masone | 626719f | 2011-08-18 16:58:48 -0700 | [diff] [blame] | 33 | |
| 34 | private: |
| 35 | DISALLOW_COPY_AND_ASSIGN(MockManager); |
| 36 | }; |
| 37 | |
| 38 | } // namespace shill |
| 39 | |
| 40 | #endif // SHILL_MOCK_MANAGER_ |