blob: e1969400e0e8573206e36c729391895c4f969602 [file] [log] [blame]
Thieu Le3426c8f2012-01-11 17:35:11 -08001// Copyright (c) 2012 The Chromium OS Authors. All rights reserved.
Chris Masone6515aab2011-10-12 16:19:09 -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/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
Jason Glasgowacdc11f2012-03-30 14:12:22 -040016const char ServiceUnderTest::kRpcId[] = "/mock_device_rpc";
Chris Masone6515aab2011-10-12 16:19:09 -070017// static
18const char ServiceUnderTest::kStorageId[] = "service";
19
20ServiceUnderTest::ServiceUnderTest(ControlInterface *control_interface,
21 EventDispatcher *dispatcher,
Thieu Le3426c8f2012-01-11 17:35:11 -080022 Metrics *metrics,
Chris Masone6515aab2011-10-12 16:19:09 -070023 Manager *manager)
Thieu Le3426c8f2012-01-11 17:35:11 -080024 : Service(control_interface, dispatcher, metrics, manager,
25 Technology::kUnknown) {
Chris Masone6515aab2011-10-12 16:19:09 -070026}
27
28ServiceUnderTest::~ServiceUnderTest() {}
29
Gaurav Shah1b7a6162011-11-09 11:41:01 -080030string ServiceUnderTest::CalculateState(Error */*error*/) { return ""; }
Chris Masone6515aab2011-10-12 16:19:09 -070031
32string ServiceUnderTest::GetRpcIdentifier() const {
33 return ServiceMockAdaptor::kRpcId;
34}
35
Gaurav Shah1b7a6162011-11-09 11:41:01 -080036string ServiceUnderTest::GetDeviceRpcId(Error */*error*/) { return kRpcId; }
Chris Masone6515aab2011-10-12 16:19:09 -070037
38string ServiceUnderTest::GetStorageIdentifier() const { return kStorageId; }
39
40} // namespace shill