Chris Masone | 6515aab | 2011-10-12 16:19:09 -0700 | [diff] [blame^] | 1 | // Copyright (c) 2011 The Chromium OS Authors. All rights reserved. |
| 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; |
| 15 | |
| 16 | // This is a simple Service subclass with all the pure-virutal methods stubbed |
| 17 | class ServiceUnderTest : public Service { |
| 18 | public: |
| 19 | static const char kRpcId[]; |
| 20 | static const char kStorageId[]; |
| 21 | |
| 22 | ServiceUnderTest(ControlInterface *control_interface, |
| 23 | EventDispatcher *dispatcher, |
| 24 | Manager *manager); |
| 25 | virtual ~ServiceUnderTest(); |
| 26 | |
| 27 | virtual void Connect(Error */*error*/); |
| 28 | virtual void Disconnect(); |
| 29 | virtual std::string CalculateState(); |
| 30 | virtual std::string GetRpcIdentifier() const; |
| 31 | virtual std::string GetDeviceRpcId(); |
| 32 | virtual std::string GetStorageIdentifier() const; |
| 33 | |
| 34 | private: |
| 35 | DISALLOW_COPY_AND_ASSIGN(ServiceUnderTest); |
| 36 | }; |
| 37 | |
| 38 | } // namespace shill |