blob: d052e45a6bc746760f0f0b112564807dbccd8e3b [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
Chris Masone6515aab2011-10-12 16:19:09 -070030string ServiceUnderTest::GetRpcIdentifier() const {
31 return ServiceMockAdaptor::kRpcId;
32}
33
Gaurav Shah1b7a6162011-11-09 11:41:01 -080034string ServiceUnderTest::GetDeviceRpcId(Error */*error*/) { return kRpcId; }
Chris Masone6515aab2011-10-12 16:19:09 -070035
36string ServiceUnderTest::GetStorageIdentifier() const { return kStorageId; }
37
38} // namespace shill