blob: 915f1b11923ee8f43a1c050923c00b1110fe9755 [file] [log] [blame]
Darin Petkovbec79a22011-08-01 14:47:17 -07001// 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#ifndef SHILL_MOCK_MODEM_CDMA_PROXY_H_
6#define SHILL_MOCK_MODEM_CDMA_PROXY_H_
7
Hristo Stefanoved2c28c2011-11-29 15:37:30 -08008#include <string>
9
Darin Petkovef34f182011-08-26 14:14:40 -070010#include <base/basictypes.h>
Darin Petkovbec79a22011-08-01 14:47:17 -070011#include <gmock/gmock.h>
12
13#include "shill/modem_cdma_proxy_interface.h"
14
15namespace shill {
16
17class MockModemCDMAProxy : public ModemCDMAProxyInterface {
18 public:
Darin Petkovef34f182011-08-26 14:14:40 -070019 MockModemCDMAProxy();
20 virtual ~MockModemCDMAProxy();
21
Eric Shienbrood9a245532012-03-07 14:20:39 -050022 MOCK_METHOD4(Activate, void(const std::string &carrier, Error *error,
23 const ActivationResultCallback &callback,
24 int timeout));
25 MOCK_METHOD3(GetRegistrationState,
26 void(Error *error, const RegistrationStateCallback &callback,
27 int timeout));
28 MOCK_METHOD3(GetSignalQuality, void(Error *error,
29 const SignalQualityCallback &callback,
30 int timeout));
Darin Petkov975b5e72011-08-30 11:48:08 -070031 MOCK_METHOD0(MEID, const std::string());
Eric Shienbrood9a245532012-03-07 14:20:39 -050032 MOCK_METHOD1(set_activation_state_callback,
33 void(const ActivationStateSignalCallback &callback));
34 MOCK_METHOD1(set_signal_quality_callback,
35 void(const SignalQualitySignalCallback &callback));
36 MOCK_METHOD1(set_registration_state_callback,
37 void(const RegistrationStateSignalCallback &callback));
Darin Petkovef34f182011-08-26 14:14:40 -070038
39 private:
40 DISALLOW_COPY_AND_ASSIGN(MockModemCDMAProxy);
Darin Petkovbec79a22011-08-01 14:47:17 -070041};
42
43} // namespace shill
44
45#endif // SHILL_MOCK_MODEM_CDMA_PROXY_H_