blob: f945cc65140805cd18c4c7f045d300116ce743f9 [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";
Paul Stewart99dc9f32013-06-27 07:39:25 -070017const char ServiceUnderTest::kStringsProperty[] = "strings";
Chris Masone6515aab2011-10-12 16:19:09 -070018const 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) {
Paul Stewart99dc9f32013-06-27 07:39:25 -070026 this->mutable_store()->RegisterStrings(kStringsProperty, &strings_);
Chris Masone6515aab2011-10-12 16:19:09 -070027}
28
29ServiceUnderTest::~ServiceUnderTest() {}
30
Chris Masone6515aab2011-10-12 16:19:09 -070031string ServiceUnderTest::GetRpcIdentifier() const {
32 return ServiceMockAdaptor::kRpcId;
33}
34
Gaurav Shah1b7a6162011-11-09 11:41:01 -080035string ServiceUnderTest::GetDeviceRpcId(Error */*error*/) { return kRpcId; }
Chris Masone6515aab2011-10-12 16:19:09 -070036
37string ServiceUnderTest::GetStorageIdentifier() const { return kStorageId; }
38
39} // namespace shill