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 "shill/service_under_test.h" |
| 6 | |
| 7 | #include <string> |
| 8 | |
| 9 | #include "shill/mock_adaptors.h" |
| 10 | |
| 11 | using std::string; |
| 12 | |
| 13 | namespace shill { |
| 14 | |
| 15 | // static |
| 16 | const char ServiceUnderTest::kRpcId[] = "mock-device-rpc"; |
| 17 | // static |
| 18 | const char ServiceUnderTest::kStorageId[] = "service"; |
| 19 | |
| 20 | ServiceUnderTest::ServiceUnderTest(ControlInterface *control_interface, |
| 21 | EventDispatcher *dispatcher, |
| 22 | Manager *manager) |
Gaurav Shah | 435de2c | 2011-11-17 19:01:07 -0800 | [diff] [blame] | 23 | : Service(control_interface, dispatcher, manager, Technology::kUnknown) { |
Chris Masone | 6515aab | 2011-10-12 16:19:09 -0700 | [diff] [blame] | 24 | } |
| 25 | |
| 26 | ServiceUnderTest::~ServiceUnderTest() {} |
| 27 | |
| 28 | void ServiceUnderTest::Connect(Error */*error*/) {} |
| 29 | |
mukesh agrawal | 0ed0f2e | 2011-12-05 20:36:17 +0000 | [diff] [blame] | 30 | void ServiceUnderTest::Disconnect(Error */*error*/) {} |
Chris Masone | 6515aab | 2011-10-12 16:19:09 -0700 | [diff] [blame] | 31 | |
Gaurav Shah | 1b7a616 | 2011-11-09 11:41:01 -0800 | [diff] [blame] | 32 | string ServiceUnderTest::CalculateState(Error */*error*/) { return ""; } |
Chris Masone | 6515aab | 2011-10-12 16:19:09 -0700 | [diff] [blame] | 33 | |
| 34 | string ServiceUnderTest::GetRpcIdentifier() const { |
| 35 | return ServiceMockAdaptor::kRpcId; |
| 36 | } |
| 37 | |
Gaurav Shah | 1b7a616 | 2011-11-09 11:41:01 -0800 | [diff] [blame] | 38 | string ServiceUnderTest::GetDeviceRpcId(Error */*error*/) { return kRpcId; } |
Chris Masone | 6515aab | 2011-10-12 16:19:09 -0700 | [diff] [blame] | 39 | |
| 40 | string ServiceUnderTest::GetStorageIdentifier() const { return kStorageId; } |
| 41 | |
| 42 | } // namespace shill |