blob: 67826f0049a4aa9e6226696809c54c63b2505823 [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 <string>
6
7#include "shill/service.h"
8
9namespace shill {
10
11class ControlInterface;
12class Error;
13class EventDispatcher;
14class Manager;
Thieu Le3426c8f2012-01-11 17:35:11 -080015class Metrics;
Chris Masone6515aab2011-10-12 16:19:09 -070016
mukesh agrawalcf24a242012-05-21 16:46:11 -070017// This is a simple Service subclass with all the pure-virutal methods stubbed.
Chris Masone6515aab2011-10-12 16:19:09 -070018class ServiceUnderTest : public Service {
19 public:
20 static const char kRpcId[];
21 static const char kStorageId[];
22
23 ServiceUnderTest(ControlInterface *control_interface,
24 EventDispatcher *dispatcher,
Thieu Le3426c8f2012-01-11 17:35:11 -080025 Metrics *metrics,
Chris Masone6515aab2011-10-12 16:19:09 -070026 Manager *manager);
27 virtual ~ServiceUnderTest();
28
Chris Masone6515aab2011-10-12 16:19:09 -070029 virtual std::string GetRpcIdentifier() const;
Hristo Stefanoved2c28c2011-11-29 15:37:30 -080030 virtual std::string GetDeviceRpcId(Error *error);
Chris Masone6515aab2011-10-12 16:19:09 -070031 virtual std::string GetStorageIdentifier() const;
32
33 private:
34 DISALLOW_COPY_AND_ASSIGN(ServiceUnderTest);
35};
36
37} // namespace shill