blob: d4d638e24a02f8d9d30d71fa229891c2702872fa [file] [log] [blame]
Darin Petkova9b1fed2012-02-29 11:49:05 +01001// Copyright (c) 2012 The Chromium OS Authors. All rights reserved.
Chris Masoned7732e42011-05-20 11:08:56 -07002// 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
Darin Petkova9b1fed2012-02-29 11:49:05 +010034RPCTaskAdaptorInterface *MockControl::CreateRPCTaskAdaptor(RPCTask */*task*/) {
35 return new RPCTaskMockAdaptor();
36}
37
mukesh agrawal1830fa12011-09-26 14:31:40 -070038ServiceAdaptorInterface *MockControl::CreateServiceAdaptor(
39 Service */*service*/) {
Chris Masonec6c6c132011-06-30 11:29:52 -070040 return new ServiceMockAdaptor();
41}
42
Chris Masoned7732e42011-05-20 11:08:56 -070043} // namespace shill