Darin Petkov | a9b1fed | 2012-02-29 11:49:05 +0100 | [diff] [blame] | 1 | // Copyright (c) 2012 The Chromium OS Authors. All rights reserved. |
mukesh agrawal | dc42bb3 | 2011-07-28 10:40:26 -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 | |
| 5 | #include "shill/nice_mock_control.h" |
| 6 | |
| 7 | #include <gmock/gmock.h> |
| 8 | |
| 9 | #include "shill/mock_adaptors.h" |
| 10 | |
| 11 | using ::testing::NiceMock; |
| 12 | |
| 13 | namespace shill { |
| 14 | |
| 15 | NiceMockControl::NiceMockControl() {} |
| 16 | |
| 17 | NiceMockControl::~NiceMockControl() {} |
| 18 | |
mukesh agrawal | 1830fa1 | 2011-09-26 14:31:40 -0700 | [diff] [blame] | 19 | DeviceAdaptorInterface *NiceMockControl::CreateDeviceAdaptor( |
| 20 | Device */*device*/) { |
mukesh agrawal | dc42bb3 | 2011-07-28 10:40:26 -0700 | [diff] [blame] | 21 | return new NiceMock<DeviceMockAdaptor>(); |
| 22 | } |
| 23 | |
| 24 | IPConfigAdaptorInterface *NiceMockControl::CreateIPConfigAdaptor( |
mukesh agrawal | 1830fa1 | 2011-09-26 14:31:40 -0700 | [diff] [blame] | 25 | IPConfig */*config*/) { |
mukesh agrawal | dc42bb3 | 2011-07-28 10:40:26 -0700 | [diff] [blame] | 26 | return new NiceMock<IPConfigMockAdaptor>(); |
| 27 | } |
| 28 | |
| 29 | ManagerAdaptorInterface *NiceMockControl::CreateManagerAdaptor( |
mukesh agrawal | 1830fa1 | 2011-09-26 14:31:40 -0700 | [diff] [blame] | 30 | Manager */*manager*/) { |
mukesh agrawal | dc42bb3 | 2011-07-28 10:40:26 -0700 | [diff] [blame] | 31 | return new NiceMock<ManagerMockAdaptor>(); |
| 32 | } |
| 33 | |
| 34 | ProfileAdaptorInterface *NiceMockControl::CreateProfileAdaptor( |
mukesh agrawal | 1830fa1 | 2011-09-26 14:31:40 -0700 | [diff] [blame] | 35 | Profile */*profile*/) { |
mukesh agrawal | dc42bb3 | 2011-07-28 10:40:26 -0700 | [diff] [blame] | 36 | return new NiceMock<ProfileMockAdaptor>(); |
| 37 | } |
| 38 | |
Darin Petkov | a9b1fed | 2012-02-29 11:49:05 +0100 | [diff] [blame] | 39 | RPCTaskAdaptorInterface *NiceMockControl::CreateRPCTaskAdaptor( |
| 40 | RPCTask */*task*/) { |
| 41 | return new NiceMock<RPCTaskMockAdaptor>(); |
| 42 | } |
| 43 | |
mukesh agrawal | dc42bb3 | 2011-07-28 10:40:26 -0700 | [diff] [blame] | 44 | ServiceAdaptorInterface *NiceMockControl::CreateServiceAdaptor( |
mukesh agrawal | 1830fa1 | 2011-09-26 14:31:40 -0700 | [diff] [blame] | 45 | Service */*service*/) { |
mukesh agrawal | dc42bb3 | 2011-07-28 10:40:26 -0700 | [diff] [blame] | 46 | return new NiceMock<ServiceMockAdaptor>(); |
| 47 | } |
| 48 | |
| 49 | } // namespace shill |