Jason Glasgow | 1452187 | 2012-05-07 19:12:15 -0400 | [diff] [blame] | 1 | // Copyright (c) 2012 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/mock_cellular_service.h" |
| 6 | |
Thieu Le | 247416e | 2014-02-25 18:19:53 -0800 | [diff] [blame] | 7 | #include <chromeos/dbus/service_constants.h> |
| 8 | |
| 9 | using testing::ReturnRef; |
| 10 | |
Jason Glasgow | 1452187 | 2012-05-07 19:12:15 -0400 | [diff] [blame] | 11 | namespace shill { |
| 12 | |
Prathmesh Prabhu | 0d36b4f | 2013-04-01 11:45:54 -0700 | [diff] [blame] | 13 | MockCellularService::MockCellularService(ModemInfo *modem_info, |
Jason Glasgow | 1452187 | 2012-05-07 19:12:15 -0400 | [diff] [blame] | 14 | const CellularRefPtr &device) |
Thieu Le | 247416e | 2014-02-25 18:19:53 -0800 | [diff] [blame] | 15 | : CellularService(modem_info, device), |
| 16 | default_activation_state_(kActivationStateUnknown) { |
| 17 | ON_CALL(*this, activation_state()) |
| 18 | .WillByDefault(ReturnRef(default_activation_state_)); |
| 19 | } |
Jason Glasgow | 1452187 | 2012-05-07 19:12:15 -0400 | [diff] [blame] | 20 | |
| 21 | MockCellularService::~MockCellularService() {} |
| 22 | |
| 23 | } // namespace shill |