blob: 04b88971ee9dfa8831b0305a34650f6652effcfe [file] [log] [blame]
Chris Masone6515aab2011-10-12 16:19:09 -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/service_under_test.h"
6
7#include <string>
8
9#include "shill/mock_adaptors.h"
10
11using std::string;
12
13namespace shill {
14
15// static
16const char ServiceUnderTest::kRpcId[] = "mock-device-rpc";
17// static
18const char ServiceUnderTest::kStorageId[] = "service";
19
20ServiceUnderTest::ServiceUnderTest(ControlInterface *control_interface,
21 EventDispatcher *dispatcher,
22 Manager *manager)
Gaurav Shah435de2c2011-11-17 19:01:07 -080023 : Service(control_interface, dispatcher, manager, Technology::kUnknown) {
Chris Masone6515aab2011-10-12 16:19:09 -070024}
25
26ServiceUnderTest::~ServiceUnderTest() {}
27
28void ServiceUnderTest::Connect(Error */*error*/) {}
29
mukesh agrawal0ed0f2e2011-12-05 20:36:17 +000030void ServiceUnderTest::Disconnect(Error */*error*/) {}
Chris Masone6515aab2011-10-12 16:19:09 -070031
Gaurav Shah1b7a6162011-11-09 11:41:01 -080032string ServiceUnderTest::CalculateState(Error */*error*/) { return ""; }
Chris Masone6515aab2011-10-12 16:19:09 -070033
34string ServiceUnderTest::GetRpcIdentifier() const {
35 return ServiceMockAdaptor::kRpcId;
36}
37
Gaurav Shah1b7a6162011-11-09 11:41:01 -080038string ServiceUnderTest::GetDeviceRpcId(Error */*error*/) { return kRpcId; }
Chris Masone6515aab2011-10-12 16:19:09 -070039
40string ServiceUnderTest::GetStorageIdentifier() const { return kStorageId; }
41
42} // namespace shill