blob: 1fb3904cde6f3d04b8fa36c189843aeb1ddc4dc1 [file] [log] [blame]
// Copyright (c) 2012 The Chromium OS Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "shill/mock_device.h"
#include <string>
#include <base/memory/ref_counted.h>
#include <base/strings/stringprintf.h>
#include <gmock/gmock.h>
namespace shill {
class ControlInterface;
class EventDispatcher;
using ::testing::_;
using ::testing::DefaultValue;
using ::testing::ReturnRef;
using std::string;
MockDevice::MockDevice(ControlInterface* control_interface,
EventDispatcher* dispatcher,
Metrics* metrics,
Manager* manager,
const string& link_name,
const string& address,
int interface_index)
: Device(control_interface,
dispatcher,
metrics,
manager,
link_name,
address,
interface_index,
Technology::kUnknown) {
DefaultValue<Technology::Identifier>::Set(Technology::kUnknown);
ON_CALL(*this, connection())
.WillByDefault(testing::ReturnRef(Device::connection()));
}
MockDevice::~MockDevice() {}
} // namespace shill