blob: bf3772331bde3b261366512077da02c996f061fb [file] [log] [blame]
Thieu Le3426c8f2012-01-11 17:35:11 -08001// Copyright (c) 2012 The Chromium OS Authors. All rights reserved.
Chris Masonea82b7112011-05-25 15:16:29 -07002// 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::_;
Gaurav Shah435de2c2011-11-17 19:01:07 -080019using ::testing::DefaultValue;
Chris Masonea82b7112011-05-25 15:16:29 -070020using ::testing::Return;
21using std::string;
22
23MockDevice::MockDevice(ControlInterface *control_interface,
24 EventDispatcher *dispatcher,
Thieu Le3426c8f2012-01-11 17:35:11 -080025 Metrics *metrics,
Chris Masonea82b7112011-05-25 15:16:29 -070026 Manager *manager,
27 const std::string &link_name,
Chris Masone626719f2011-08-18 16:58:48 -070028 const std::string &address,
Chris Masonea82b7112011-05-25 15:16:29 -070029 int interface_index)
30 : Device(control_interface,
31 dispatcher,
Thieu Le3426c8f2012-01-11 17:35:11 -080032 metrics,
Chris Masonea82b7112011-05-25 15:16:29 -070033 manager,
34 link_name,
Chris Masone626719f2011-08-18 16:58:48 -070035 address,
Gaurav Shah435de2c2011-11-17 19:01:07 -080036 interface_index,
37 Technology::kUnknown) {
Gaurav Shah435de2c2011-11-17 19:01:07 -080038 DefaultValue<Technology::Identifier>::Set(Technology::kUnknown);
Chris Masonea82b7112011-05-25 15:16:29 -070039}
40
41MockDevice::~MockDevice() {}
42
43} // namespace shill