blob: 26d0af4b69e4a710aaff2ca84642f95e81fba993 [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
mukesh agrawal1830fa12011-09-26 14:31:40 -070019DeviceAdaptorInterface *NiceMockControl::CreateDeviceAdaptor(
20 Device */*device*/) {
mukesh agrawaldc42bb32011-07-28 10:40:26 -070021 return new NiceMock<DeviceMockAdaptor>();
22}
23
24IPConfigAdaptorInterface *NiceMockControl::CreateIPConfigAdaptor(
mukesh agrawal1830fa12011-09-26 14:31:40 -070025 IPConfig */*config*/) {
mukesh agrawaldc42bb32011-07-28 10:40:26 -070026 return new NiceMock<IPConfigMockAdaptor>();
27}
28
29ManagerAdaptorInterface *NiceMockControl::CreateManagerAdaptor(
mukesh agrawal1830fa12011-09-26 14:31:40 -070030 Manager */*manager*/) {
mukesh agrawaldc42bb32011-07-28 10:40:26 -070031 return new NiceMock<ManagerMockAdaptor>();
32}
33
34ProfileAdaptorInterface *NiceMockControl::CreateProfileAdaptor(
mukesh agrawal1830fa12011-09-26 14:31:40 -070035 Profile */*profile*/) {
mukesh agrawaldc42bb32011-07-28 10:40:26 -070036 return new NiceMock<ProfileMockAdaptor>();
37}
38
39ServiceAdaptorInterface *NiceMockControl::CreateServiceAdaptor(
mukesh agrawal1830fa12011-09-26 14:31:40 -070040 Service */*service*/) {
mukesh agrawaldc42bb32011-07-28 10:40:26 -070041 return new NiceMock<ServiceMockAdaptor>();
42}
43
44} // namespace shill