blob: 93c0593ff7dada05c78e61d343e78867ded402fc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
// Copyright (c) 2012 The Chromium OS Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "shill/service_under_test.h"
#include <string>
#include "shill/mock_adaptors.h"
using std::string;
namespace shill {
// static
const char ServiceUnderTest::kRpcId[] = "/mock_device_rpc";
const char ServiceUnderTest::kStringsProperty[] = "strings";
const char ServiceUnderTest::kStorageId[] = "service";
ServiceUnderTest::ServiceUnderTest(ControlInterface *control_interface,
EventDispatcher *dispatcher,
Metrics *metrics,
Manager *manager)
: Service(control_interface, dispatcher, metrics, manager,
Technology::kUnknown) {
this->mutable_store()->RegisterStrings(kStringsProperty, &strings_);
}
ServiceUnderTest::~ServiceUnderTest() {}
string ServiceUnderTest::GetRpcIdentifier() const {
return ServiceMockAdaptor::kRpcId;
}
string ServiceUnderTest::GetDeviceRpcId(Error */*error*/) const {
return kRpcId;
}
string ServiceUnderTest::GetStorageIdentifier() const { return kStorageId; }
} // namespace shill
|