Thieu Le | 3426c8f | 2012-01-11 17:35:11 -0800 | [diff] [blame] | 1 | // Copyright (c) 2012 The Chromium OS Authors. All rights reserved. |
Chris Masone | 6515aab | 2011-10-12 16:19:09 -0700 | [diff] [blame] | 2 | // 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 | |
| 9 | namespace shill { |
| 10 | |
| 11 | class ControlInterface; |
| 12 | class Error; |
| 13 | class EventDispatcher; |
| 14 | class Manager; |
Thieu Le | 3426c8f | 2012-01-11 17:35:11 -0800 | [diff] [blame] | 15 | class Metrics; |
Chris Masone | 6515aab | 2011-10-12 16:19:09 -0700 | [diff] [blame] | 16 | |
mukesh agrawal | cf24a24 | 2012-05-21 16:46:11 -0700 | [diff] [blame] | 17 | // This is a simple Service subclass with all the pure-virutal methods stubbed. |
Chris Masone | 6515aab | 2011-10-12 16:19:09 -0700 | [diff] [blame] | 18 | class 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 Le | 3426c8f | 2012-01-11 17:35:11 -0800 | [diff] [blame] | 25 | Metrics *metrics, |
Chris Masone | 6515aab | 2011-10-12 16:19:09 -0700 | [diff] [blame] | 26 | Manager *manager); |
| 27 | virtual ~ServiceUnderTest(); |
| 28 | |
Chris Masone | 6515aab | 2011-10-12 16:19:09 -0700 | [diff] [blame] | 29 | virtual std::string GetRpcIdentifier() const; |
Hristo Stefanov | ed2c28c | 2011-11-29 15:37:30 -0800 | [diff] [blame] | 30 | virtual std::string GetDeviceRpcId(Error *error); |
Chris Masone | 6515aab | 2011-10-12 16:19:09 -0700 | [diff] [blame] | 31 | virtual std::string GetStorageIdentifier() const; |
| 32 | |
| 33 | private: |
| 34 | DISALLOW_COPY_AND_ASSIGN(ServiceUnderTest); |
| 35 | }; |
| 36 | |
| 37 | } // namespace shill |