blob: cb72fb719b00f0bb720096fc036afa5dc55f6410 [file] [log] [blame]
Chris Masoned7732e42011-05-20 11:08:56 -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
Chris Masoned7732e42011-05-20 11:08:56 -07005#include "shill/mock_control.h"
6
mukesh agrawaldc42bb32011-07-28 10:40:26 -07007#include "shill/mock_adaptors.h"
8
Chris Masoned7732e42011-05-20 11:08:56 -07009namespace shill {
10
Chris Masone95207da2011-06-29 16:50:49 -070011MockControl::MockControl() {}
12
13MockControl::~MockControl() {}
14
mukesh agrawal1830fa12011-09-26 14:31:40 -070015DeviceAdaptorInterface *MockControl::CreateDeviceAdaptor(Device */*device*/) {
Chris Masoned7732e42011-05-20 11:08:56 -070016 return new DeviceMockAdaptor();
17}
18
mukesh agrawal1830fa12011-09-26 14:31:40 -070019IPConfigAdaptorInterface *MockControl::CreateIPConfigAdaptor(
20 IPConfig */*config*/) {
Chris Masonec6c6c132011-06-30 11:29:52 -070021 return new IPConfigMockAdaptor();
22}
23
mukesh agrawal1830fa12011-09-26 14:31:40 -070024ManagerAdaptorInterface *MockControl::CreateManagerAdaptor(
25 Manager */*manager*/) {
Chris Masonec6c6c132011-06-30 11:29:52 -070026 return new ManagerMockAdaptor();
27}
28
mukesh agrawal1830fa12011-09-26 14:31:40 -070029ProfileAdaptorInterface *MockControl::CreateProfileAdaptor(
30 Profile */*profile*/) {
Chris Masone52cd19b2011-06-29 17:23:04 -070031 return new ProfileMockAdaptor();
32}
33
mukesh agrawal1830fa12011-09-26 14:31:40 -070034ServiceAdaptorInterface *MockControl::CreateServiceAdaptor(
35 Service */*service*/) {
Chris Masonec6c6c132011-06-30 11:29:52 -070036 return new ServiceMockAdaptor();
37}
38
Chris Masoned7732e42011-05-20 11:08:56 -070039} // namespace shill