| // Copyright (c) 2011 The Chromium OS Authors. All rights reserved. |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| |
| #include "shill/nice_mock_control.h" |
| |
| #include <gmock/gmock.h> |
| |
| #include "shill/mock_adaptors.h" |
| |
| using ::testing::NiceMock; |
| |
| namespace shill { |
| |
| NiceMockControl::NiceMockControl() {} |
| |
| NiceMockControl::~NiceMockControl() {} |
| |
| DeviceAdaptorInterface *NiceMockControl::CreateDeviceAdaptor(Device *device) { |
| return new NiceMock<DeviceMockAdaptor>(); |
| } |
| |
| IPConfigAdaptorInterface *NiceMockControl::CreateIPConfigAdaptor( |
| IPConfig *config) { |
| return new NiceMock<IPConfigMockAdaptor>(); |
| } |
| |
| ManagerAdaptorInterface *NiceMockControl::CreateManagerAdaptor( |
| Manager *manager) { |
| return new NiceMock<ManagerMockAdaptor>(); |
| } |
| |
| ProfileAdaptorInterface *NiceMockControl::CreateProfileAdaptor( |
| Profile *profile) { |
| return new NiceMock<ProfileMockAdaptor>(); |
| } |
| |
| ServiceAdaptorInterface *NiceMockControl::CreateServiceAdaptor( |
| Service *service) { |
| return new NiceMock<ServiceMockAdaptor>(); |
| } |
| |
| } // namespace shill |