Thieu Le | 3426c8f | 2012-01-11 17:35:11 -0800 | [diff] [blame] | 1 | // Copyright (c) 2012 The Chromium OS Authors. All rights reserved. |
Chris Masone | 626719f | 2011-08-18 16:58:48 -0700 | [diff] [blame] | 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 | |
Darin Petkov | ef34f18 | 2011-08-26 14:14:40 -0700 | [diff] [blame] | 8 | #include <base/basictypes.h> |
Chris Masone | 626719f | 2011-08-18 16:58:48 -0700 | [diff] [blame] | 9 | #include <gmock/gmock.h> |
| 10 | |
| 11 | #include "shill/manager.h" |
| 12 | |
| 13 | namespace shill { |
| 14 | |
Chris Masone | 626719f | 2011-08-18 16:58:48 -0700 | [diff] [blame] | 15 | class MockManager : public Manager { |
| 16 | public: |
| 17 | MockManager(ControlInterface *control_interface, |
| 18 | EventDispatcher *dispatcher, |
Thieu Le | 3426c8f | 2012-01-11 17:35:11 -0800 | [diff] [blame] | 19 | Metrics *metrics, |
Darin Petkov | ef34f18 | 2011-08-26 14:14:40 -0700 | [diff] [blame] | 20 | GLib *glib); |
| 21 | virtual ~MockManager(); |
Chris Masone | 626719f | 2011-08-18 16:58:48 -0700 | [diff] [blame] | 22 | |
| 23 | MOCK_METHOD0(device_info, DeviceInfo*(void)); |
mukesh agrawal | de29fa8 | 2011-09-16 16:16:36 -0700 | [diff] [blame] | 24 | MOCK_METHOD0(mutable_store, PropertyStore*(void)); |
| 25 | MOCK_CONST_METHOD0(store, const PropertyStore&(void)); |
mukesh agrawal | 4eb4d78 | 2011-12-05 17:34:37 +0000 | [diff] [blame] | 26 | MOCK_METHOD1(HasService, bool(const ServiceRefPtr &to_manage)); |
mukesh agrawal | 3239932 | 2011-09-01 10:53:43 -0700 | [diff] [blame] | 27 | MOCK_METHOD1(RegisterService, void(const ServiceRefPtr &to_manage)); |
mukesh agrawal | 00917ce | 2011-11-22 23:56:55 +0000 | [diff] [blame] | 28 | MOCK_METHOD1(UpdateService, void(const ServiceRefPtr &to_update)); |
Chris Masone | 6515aab | 2011-10-12 16:19:09 -0700 | [diff] [blame] | 29 | MOCK_METHOD1(DeregisterService, void(const ServiceRefPtr &to_forget)); |
Chris Masone | 626719f | 2011-08-18 16:58:48 -0700 | [diff] [blame] | 30 | |
| 31 | private: |
| 32 | DISALLOW_COPY_AND_ASSIGN(MockManager); |
| 33 | }; |
| 34 | |
| 35 | } // namespace shill |
| 36 | |
| 37 | #endif // SHILL_MOCK_MANAGER_ |