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 | |
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, |
Darin Petkov | ef34f18 | 2011-08-26 14:14:40 -0700 | [diff] [blame] | 19 | GLib *glib); |
| 20 | virtual ~MockManager(); |
Chris Masone | 626719f | 2011-08-18 16:58:48 -0700 | [diff] [blame] | 21 | |
| 22 | MOCK_METHOD0(device_info, DeviceInfo*(void)); |
mukesh agrawal | de29fa8 | 2011-09-16 16:16:36 -0700 | [diff] [blame] | 23 | MOCK_METHOD0(mutable_store, PropertyStore*(void)); |
| 24 | MOCK_CONST_METHOD0(store, const PropertyStore&(void)); |
mukesh agrawal | 4eb4d78 | 2011-12-05 17:34:37 +0000 | [diff] [blame] | 25 | MOCK_METHOD1(HasService, bool(const ServiceRefPtr &to_manage)); |
mukesh agrawal | 3239932 | 2011-09-01 10:53:43 -0700 | [diff] [blame] | 26 | MOCK_METHOD1(RegisterService, void(const ServiceRefPtr &to_manage)); |
mukesh agrawal | 00917ce | 2011-11-22 23:56:55 +0000 | [diff] [blame] | 27 | MOCK_METHOD1(UpdateService, void(const ServiceRefPtr &to_update)); |
Chris Masone | 6515aab | 2011-10-12 16:19:09 -0700 | [diff] [blame] | 28 | MOCK_METHOD1(DeregisterService, void(const ServiceRefPtr &to_forget)); |
Chris Masone | 626719f | 2011-08-18 16:58:48 -0700 | [diff] [blame] | 29 | |
| 30 | private: |
| 31 | DISALLOW_COPY_AND_ASSIGN(MockManager); |
| 32 | }; |
| 33 | |
| 34 | } // namespace shill |
| 35 | |
| 36 | #endif // SHILL_MOCK_MANAGER_ |