Chris Masone | a82b711 | 2011-05-25 15:16:29 -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 | #include "shill/mock_device.h" |
| 6 | |
| 7 | #include <string> |
| 8 | |
| 9 | #include <base/memory/ref_counted.h> |
| 10 | #include <base/stringprintf.h> |
| 11 | #include <gmock/gmock.h> |
| 12 | |
| 13 | namespace shill { |
| 14 | |
| 15 | class ControlInterface; |
| 16 | class EventDispatcher; |
| 17 | |
| 18 | using ::testing::_; |
| 19 | using ::testing::Return; |
| 20 | using std::string; |
| 21 | |
| 22 | MockDevice::MockDevice(ControlInterface *control_interface, |
| 23 | EventDispatcher *dispatcher, |
| 24 | Manager *manager, |
| 25 | const std::string &link_name, |
Chris Masone | 626719f | 2011-08-18 16:58:48 -0700 | [diff] [blame^] | 26 | const std::string &address, |
Chris Masone | a82b711 | 2011-05-25 15:16:29 -0700 | [diff] [blame] | 27 | int interface_index) |
| 28 | : Device(control_interface, |
| 29 | dispatcher, |
| 30 | manager, |
| 31 | link_name, |
Chris Masone | 626719f | 2011-08-18 16:58:48 -0700 | [diff] [blame^] | 32 | address, |
Chris Masone | a82b711 | 2011-05-25 15:16:29 -0700 | [diff] [blame] | 33 | interface_index) { |
| 34 | ON_CALL(*this, TechnologyIs(_)).WillByDefault(Return(false)); |
| 35 | } |
| 36 | |
| 37 | MockDevice::~MockDevice() {} |
| 38 | |
| 39 | } // namespace shill |