blob: 09e191792defaa165348588695da6c5a0ba7556c [file] [log] [blame]
mukesh agrawaldc42bb32011-07-28 10:40:26 -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/nice_mock_control.h"
6
7#include <gmock/gmock.h>
8
9#include "shill/mock_adaptors.h"
10
11using ::testing::NiceMock;
12
13namespace shill {
14
15NiceMockControl::NiceMockControl() {}
16
17NiceMockControl::~NiceMockControl() {}
18
19DeviceAdaptorInterface *NiceMockControl::CreateDeviceAdaptor(Device *device) {
20 return new NiceMock<DeviceMockAdaptor>();
21}
22
23IPConfigAdaptorInterface *NiceMockControl::CreateIPConfigAdaptor(
24 IPConfig *config) {
25 return new NiceMock<IPConfigMockAdaptor>();
26}
27
28ManagerAdaptorInterface *NiceMockControl::CreateManagerAdaptor(
29 Manager *manager) {
30 return new NiceMock<ManagerMockAdaptor>();
31}
32
33ProfileAdaptorInterface *NiceMockControl::CreateProfileAdaptor(
34 Profile *profile) {
35 return new NiceMock<ProfileMockAdaptor>();
36}
37
38ServiceAdaptorInterface *NiceMockControl::CreateServiceAdaptor(
39 Service *service) {
40 return new NiceMock<ServiceMockAdaptor>();
41}
42
43} // namespace shill