mukesh agrawal | dc42bb3 | 2011-07-28 10:40:26 -0700 | [diff] [blame] | 1 | // 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/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 | |
| 39 | ServiceAdaptorInterface *NiceMockControl::CreateServiceAdaptor( |
mukesh agrawal | 1830fa1 | 2011-09-26 14:31:40 -0700 | [diff] [blame] | 40 | Service */*service*/) { |
mukesh agrawal | dc42bb3 | 2011-07-28 10:40:26 -0700 | [diff] [blame] | 41 | return new NiceMock<ServiceMockAdaptor>(); |
| 42 | } |
| 43 | |
| 44 | } // namespace shill |