blob: 4e5187ac6f1bbb9d475d35a5695307ecc377865a [file] [log] [blame]
Chris Masonea82b7112011-05-25 15:16:29 -07001// 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
13namespace shill {
14
15class ControlInterface;
16class EventDispatcher;
17
18using ::testing::_;
19using ::testing::Return;
20using std::string;
21
22MockDevice::MockDevice(ControlInterface *control_interface,
23 EventDispatcher *dispatcher,
24 Manager *manager,
25 const std::string &link_name,
Chris Masone626719f2011-08-18 16:58:48 -070026 const std::string &address,
Chris Masonea82b7112011-05-25 15:16:29 -070027 int interface_index)
28 : Device(control_interface,
29 dispatcher,
30 manager,
31 link_name,
Chris Masone626719f2011-08-18 16:58:48 -070032 address,
Chris Masonea82b7112011-05-25 15:16:29 -070033 interface_index) {
34 ON_CALL(*this, TechnologyIs(_)).WillByDefault(Return(false));
35}
36
37MockDevice::~MockDevice() {}
38
39} // namespace shill