Darin Petkov | a9b1fed | 2012-02-29 11:49:05 +0100 | [diff] [blame] | 1 | // Copyright (c) 2012 The Chromium OS Authors. All rights reserved. |
Chris Masone | d7732e4 | 2011-05-20 11:08:56 -0700 | [diff] [blame] | 2 | // Use of this source code is governed by a BSD-style license that can be |
| 3 | // found in the LICENSE file. |
| 4 | |
Chris Masone | d7732e4 | 2011-05-20 11:08:56 -0700 | [diff] [blame] | 5 | #include "shill/mock_control.h" |
| 6 | |
mukesh agrawal | dc42bb3 | 2011-07-28 10:40:26 -0700 | [diff] [blame] | 7 | #include "shill/mock_adaptors.h" |
| 8 | |
Chris Masone | d7732e4 | 2011-05-20 11:08:56 -0700 | [diff] [blame] | 9 | namespace shill { |
| 10 | |
Chris Masone | 95207da | 2011-06-29 16:50:49 -0700 | [diff] [blame] | 11 | MockControl::MockControl() {} |
| 12 | |
| 13 | MockControl::~MockControl() {} |
| 14 | |
mukesh agrawal | 1830fa1 | 2011-09-26 14:31:40 -0700 | [diff] [blame] | 15 | DeviceAdaptorInterface *MockControl::CreateDeviceAdaptor(Device */*device*/) { |
Chris Masone | d7732e4 | 2011-05-20 11:08:56 -0700 | [diff] [blame] | 16 | return new DeviceMockAdaptor(); |
| 17 | } |
| 18 | |
mukesh agrawal | 1830fa1 | 2011-09-26 14:31:40 -0700 | [diff] [blame] | 19 | IPConfigAdaptorInterface *MockControl::CreateIPConfigAdaptor( |
| 20 | IPConfig */*config*/) { |
Chris Masone | c6c6c13 | 2011-06-30 11:29:52 -0700 | [diff] [blame] | 21 | return new IPConfigMockAdaptor(); |
| 22 | } |
| 23 | |
mukesh agrawal | 1830fa1 | 2011-09-26 14:31:40 -0700 | [diff] [blame] | 24 | ManagerAdaptorInterface *MockControl::CreateManagerAdaptor( |
| 25 | Manager */*manager*/) { |
Chris Masone | c6c6c13 | 2011-06-30 11:29:52 -0700 | [diff] [blame] | 26 | return new ManagerMockAdaptor(); |
| 27 | } |
| 28 | |
mukesh agrawal | 1830fa1 | 2011-09-26 14:31:40 -0700 | [diff] [blame] | 29 | ProfileAdaptorInterface *MockControl::CreateProfileAdaptor( |
| 30 | Profile */*profile*/) { |
Chris Masone | 52cd19b | 2011-06-29 17:23:04 -0700 | [diff] [blame] | 31 | return new ProfileMockAdaptor(); |
| 32 | } |
| 33 | |
Darin Petkov | a9b1fed | 2012-02-29 11:49:05 +0100 | [diff] [blame] | 34 | RPCTaskAdaptorInterface *MockControl::CreateRPCTaskAdaptor(RPCTask */*task*/) { |
| 35 | return new RPCTaskMockAdaptor(); |
| 36 | } |
| 37 | |
mukesh agrawal | 1830fa1 | 2011-09-26 14:31:40 -0700 | [diff] [blame] | 38 | ServiceAdaptorInterface *MockControl::CreateServiceAdaptor( |
| 39 | Service */*service*/) { |
Chris Masone | c6c6c13 | 2011-06-30 11:29:52 -0700 | [diff] [blame] | 40 | return new ServiceMockAdaptor(); |
| 41 | } |
| 42 | |
Chris Masone | d7732e4 | 2011-05-20 11:08:56 -0700 | [diff] [blame] | 43 | } // namespace shill |