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_DEVICE_INFO_ |
| 6 | #define SHILL_MOCK_DEVICE_INFO_ |
| 7 | |
Darin Petkov | 1bdedf1 | 2011-08-26 13:32:11 -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/device_info.h" |
| 12 | |
| 13 | namespace shill { |
| 14 | |
| 15 | class ByteString; |
| 16 | class ControlInterface; |
| 17 | class EventDispatcher; |
| 18 | class Manager; |
| 19 | |
| 20 | class MockDeviceInfo : public DeviceInfo { |
| 21 | public: |
| 22 | MockDeviceInfo(ControlInterface *control_interface, |
| 23 | EventDispatcher *dispatcher, |
Darin Petkov | 1bdedf1 | 2011-08-26 13:32:11 -0700 | [diff] [blame] | 24 | Manager *manager); |
| 25 | virtual ~MockDeviceInfo(); |
Chris Masone | 626719f | 2011-08-18 16:58:48 -0700 | [diff] [blame] | 26 | |
Paul Stewart | 3285296 | 2011-08-30 14:06:53 -0700 | [diff] [blame] | 27 | MOCK_CONST_METHOD2(GetMACAddress, bool(int, ByteString*)); |
Chris Masone | 626719f | 2011-08-18 16:58:48 -0700 | [diff] [blame] | 28 | MOCK_CONST_METHOD2(GetFlags, bool(int, unsigned int*)); |
Paul Stewart | 9a90808 | 2011-08-31 12:18:48 -0700 | [diff] [blame] | 29 | MOCK_CONST_METHOD2(GetAddresses, bool(int, std::vector<AddressData>*)); |
| 30 | MOCK_CONST_METHOD1(FlushAddresses, void(int)); |
Chris Masone | 626719f | 2011-08-18 16:58:48 -0700 | [diff] [blame] | 31 | |
| 32 | private: |
| 33 | DISALLOW_COPY_AND_ASSIGN(MockDeviceInfo); |
| 34 | }; |
| 35 | |
| 36 | } // namespace shill |
| 37 | |
| 38 | #endif // SHILL_MOCK_DEVICE_INFO_ |