blob: 4358cecfe4a50631c26e19a6af40288a0027a0b3 [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
5#include "shill/mock_adaptors.h"
6#include "shill/mock_control.h"
7
8namespace shill {
9
Chris Masone95207da2011-06-29 16:50:49 -070010MockControl::MockControl() {}
11
12MockControl::~MockControl() {}
13
Chris Masoned7732e42011-05-20 11:08:56 -070014DeviceAdaptorInterface *MockControl::CreateDeviceAdaptor(Device *device) {
15 return new DeviceMockAdaptor();
16}
17
Chris Masonec6c6c132011-06-30 11:29:52 -070018IPConfigAdaptorInterface *MockControl::CreateIPConfigAdaptor(IPConfig *config) {
19 return new IPConfigMockAdaptor();
20}
21
22ManagerAdaptorInterface *MockControl::CreateManagerAdaptor(Manager *manager) {
23 return new ManagerMockAdaptor();
24}
25
Chris Masone52cd19b2011-06-29 17:23:04 -070026ProfileAdaptorInterface *MockControl::CreateProfileAdaptor(Profile *profile) {
27 return new ProfileMockAdaptor();
28}
29
Chris Masonec6c6c132011-06-30 11:29:52 -070030ServiceAdaptorInterface *MockControl::CreateServiceAdaptor(Service *service) {
31 return new ServiceMockAdaptor();
32}
33
Chris Masoned7732e42011-05-20 11:08:56 -070034} // namespace shill