Jason Glasgow | ef96556 | 2012-04-10 16:12:35 -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_mm1_modem_simple_proxy.h" |
| 6 | |
Prathmesh Prabhu | 303f653 | 2014-08-29 20:17:16 -0700 | [diff] [blame] | 7 | #include "shill/testing.h" |
| 8 | |
| 9 | using testing::_; |
| 10 | |
Jason Glasgow | ef96556 | 2012-04-10 16:12:35 -0400 | [diff] [blame] | 11 | namespace shill { |
| 12 | namespace mm1 { |
| 13 | |
Prathmesh Prabhu | 303f653 | 2014-08-29 20:17:16 -0700 | [diff] [blame] | 14 | MockModemSimpleProxy::MockModemSimpleProxy() { |
| 15 | ON_CALL(*this, Connect(_, _, _, _)) |
| 16 | .WillByDefault(SetOperationFailedInArgumentAndWarn<1>()); |
| 17 | ON_CALL(*this, Disconnect(_, _, _, _)) |
| 18 | .WillByDefault(SetOperationFailedInArgumentAndWarn<1>()); |
| 19 | ON_CALL(*this, GetStatus(_, _, _)) |
| 20 | .WillByDefault(SetOperationFailedInArgumentAndWarn<0>()); |
| 21 | } |
Jason Glasgow | ef96556 | 2012-04-10 16:12:35 -0400 | [diff] [blame] | 22 | |
| 23 | MockModemSimpleProxy::~MockModemSimpleProxy() {} |
| 24 | |
| 25 | } // namespace mm1 |
| 26 | } // namespace shill |