blob: 5d3829099f6e900a5443de068415c02dfa90f394 [file] [log] [blame]
Darin Petkovfb0625e2012-01-16 13:05:56 +01001// Copyright (c) 2012 The Chromium OS Authors. All rights reserved.
Darin Petkove9d12e02011-07-27 15:09:37 -07002// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5#ifndef SHILL_MOCK_MODEM_PROXY_H_
6#define SHILL_MOCK_MODEM_PROXY_H_
7
Darin Petkovef34f182011-08-26 14:14:40 -07008#include <base/basictypes.h>
Darin Petkove9d12e02011-07-27 15:09:37 -07009#include <gmock/gmock.h>
10
11#include "shill/modem_proxy_interface.h"
12
13namespace shill {
14
15class MockModemProxy : public ModemProxyInterface {
16 public:
Darin Petkovef34f182011-08-26 14:14:40 -070017 MockModemProxy();
18 virtual ~MockModemProxy();
19
Eric Shienbrood9a245532012-03-07 14:20:39 -050020 MOCK_METHOD4(Enable, void(bool enable, Error *error,
21 const ResultCallback &callback, int timeout));
22 MOCK_METHOD3(Disconnect, void(Error *error, const ResultCallback &callback,
23 int timeout));
24 MOCK_METHOD3(GetModemInfo, void(Error *error,
25 const ModemInfoCallback &callback,
26 int timeout));
27 MOCK_METHOD1(set_state_changed_callback,
28 void(const ModemStateChangedSignalCallback &callback));
Darin Petkovef34f182011-08-26 14:14:40 -070029
30 private:
31 DISALLOW_COPY_AND_ASSIGN(MockModemProxy);
Darin Petkove9d12e02011-07-27 15:09:37 -070032};
33
34} // namespace shill
35
36#endif // SHILL_MOCK_MODEM_PROXY_H_