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, |
| 26 | int interface_index) |
| 27 | : Device(control_interface, |
| 28 | dispatcher, |
| 29 | manager, |
| 30 | link_name, |
| 31 | interface_index) { |
| 32 | ON_CALL(*this, TechnologyIs(_)).WillByDefault(Return(false)); |
| 33 | } |
| 34 | |
| 35 | MockDevice::~MockDevice() {} |
| 36 | |
| 37 | } // namespace shill |