blob: 93c0593ff7dada05c78e61d343e78867ded402fc [file] [log] [blame]
// 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