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_DEVICE_ |
| 6 | #define SHILL_MOCK_DEVICE_ |
| 7 | |
Chris Masone | 46eaaf5 | 2011-05-24 13:08:30 -0700 | [diff] [blame] | 8 | #include <string> |
| 9 | |
Chris Masone | 9be4a9d | 2011-05-16 15:44:09 -0700 | [diff] [blame] | 10 | #include <base/memory/ref_counted.h> |
| 11 | #include <gmock/gmock.h> |
| 12 | |
| 13 | #include "shill/device.h" |
| 14 | |
| 15 | namespace shill { |
| 16 | |
| 17 | class ControlInterface; |
| 18 | class EventDispatcher; |
| 19 | |
Chris Masone | 9be4a9d | 2011-05-16 15:44:09 -0700 | [diff] [blame] | 20 | class MockDevice : public Device { |
| 21 | public: |
Chris Masone | 9be4a9d | 2011-05-16 15:44:09 -0700 | [diff] [blame] | 22 | MockDevice(ControlInterface *control_interface, |
Paul Stewart | b50f0b9 | 2011-05-16 16:31:42 -0700 | [diff] [blame] | 23 | EventDispatcher *dispatcher, |
Chris Masone | a82b711 | 2011-05-25 15:16:29 -0700 | [diff] [blame] | 24 | Manager *manager, |
| 25 | const std::string &link_name, |
| 26 | int interface_index); |
| 27 | virtual ~MockDevice(); |
Chris Masone | 9be4a9d | 2011-05-16 15:44:09 -0700 | [diff] [blame] | 28 | |
| 29 | MOCK_METHOD0(Start, void(void)); |
| 30 | MOCK_METHOD0(Stop, void(void)); |
| 31 | MOCK_METHOD1(TechnologyIs, bool(Technology)); |
| 32 | |
| 33 | private: |
| 34 | DISALLOW_COPY_AND_ASSIGN(MockDevice); |
| 35 | }; |
| 36 | |
| 37 | } // namespace shill |
| 38 | |
| 39 | #endif // SHILL_MOCK_DEVICE_ |