blob: 55d206a4652e3781105bfa7e5efcee9bf8fcf873 [file] [log] [blame]
Darin Petkova9b1fed2012-02-29 11:49:05 +01001// Copyright (c) 2012 The Chromium OS Authors. All rights reserved.
mukesh agrawaldc42bb32011-07-28 10:40:26 -07002// 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
Darin Petkova9b1fed2012-02-29 11:49:05 +010039RPCTaskAdaptorInterface *NiceMockControl::CreateRPCTaskAdaptor(
40 RPCTask */*task*/) {
41 return new NiceMock<RPCTaskMockAdaptor>();
42}
43
mukesh agrawaldc42bb32011-07-28 10:40:26 -070044ServiceAdaptorInterface *NiceMockControl::CreateServiceAdaptor(
mukesh agrawal1830fa12011-09-26 14:31:40 -070045 Service */*service*/) {
mukesh agrawaldc42bb32011-07-28 10:40:26 -070046 return new NiceMock<ServiceMockAdaptor>();
47}
48
Prabhu Kaliamoorthi127b3412014-10-16 13:00:25 +020049#ifndef DISABLE_VPN
50ThirdPartyVpnAdaptorInterface *NiceMockControl::CreateThirdPartyVpnAdaptor(
51 ThirdPartyVpnDriver */*driver*/) {
52 return new NiceMock<ThirdPartyVpnMockAdaptor>();
53}
54#endif
55
mukesh agrawaldc42bb32011-07-28 10:40:26 -070056} // namespace shill