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 "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 |
Jason Glasgow | acdc11f | 2012-03-30 14:12:22 -0400 | [diff] [blame] | 16 | const char ServiceUnderTest::kRpcId[] = "/mock_device_rpc"; |
Chris Masone | 6515aab | 2011-10-12 16:19:09 -0700 | [diff] [blame] | 17 | // static |
| 18 | const char ServiceUnderTest::kStorageId[] = "service"; |
| 19 | |
| 20 | ServiceUnderTest::ServiceUnderTest(ControlInterface *control_interface, |
| 21 | EventDispatcher *dispatcher, |
Thieu Le | 3426c8f | 2012-01-11 17:35:11 -0800 | [diff] [blame] | 22 | Metrics *metrics, |
Chris Masone | 6515aab | 2011-10-12 16:19:09 -0700 | [diff] [blame] | 23 | Manager *manager) |
Thieu Le | 3426c8f | 2012-01-11 17:35:11 -0800 | [diff] [blame] | 24 | : Service(control_interface, dispatcher, metrics, manager, |
| 25 | Technology::kUnknown) { |
Chris Masone | 6515aab | 2011-10-12 16:19:09 -0700 | [diff] [blame] | 26 | } |
| 27 | |
| 28 | ServiceUnderTest::~ServiceUnderTest() {} |
| 29 | |
Gaurav Shah | 1b7a616 | 2011-11-09 11:41:01 -0800 | [diff] [blame] | 30 | string ServiceUnderTest::CalculateState(Error */*error*/) { return ""; } |
Chris Masone | 6515aab | 2011-10-12 16:19:09 -0700 | [diff] [blame] | 31 | |
| 32 | string ServiceUnderTest::GetRpcIdentifier() const { |
| 33 | return ServiceMockAdaptor::kRpcId; |
| 34 | } |
| 35 | |
Gaurav Shah | 1b7a616 | 2011-11-09 11:41:01 -0800 | [diff] [blame] | 36 | string ServiceUnderTest::GetDeviceRpcId(Error */*error*/) { return kRpcId; } |
Chris Masone | 6515aab | 2011-10-12 16:19:09 -0700 | [diff] [blame] | 37 | |
| 38 | string ServiceUnderTest::GetStorageIdentifier() const { return kStorageId; } |
| 39 | |
| 40 | } // namespace shill |