blob: 67fda61d189655d0599dce455447fa89e0ad806d [file] [log] [blame]
Eric Shienbrood5de44ab2011-12-05 10:46:27 -05001// Copyright (c) 2012 The Chromium OS Authors. All rights reserved.
Darin Petkov975b5e72011-08-30 11:48:08 -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_GSM_CARD_PROXY_H_
6#define SHILL_MOCK_MODEM_GSM_CARD_PROXY_H_
7
Hristo Stefanoved2c28c2011-11-29 15:37:30 -08008#include <string>
9
Darin Petkov975b5e72011-08-30 11:48:08 -070010#include <base/basictypes.h>
11#include <gmock/gmock.h>
12
13#include "shill/modem_gsm_card_proxy_interface.h"
14
15namespace shill {
16
17class MockModemGSMCardProxy : public ModemGSMCardProxyInterface {
18 public:
19 MockModemGSMCardProxy();
20 virtual ~MockModemGSMCardProxy();
21
Eric Shienbrood5de44ab2011-12-05 10:46:27 -050022 MOCK_METHOD2(GetIMEI, void(AsyncCallHandler *call_handler, int timeout));
23 MOCK_METHOD2(GetIMSI, void(AsyncCallHandler *call_handler, int timeout));
24 MOCK_METHOD2(GetSPN, void(AsyncCallHandler *call_handler, int timeout));
25 MOCK_METHOD2(GetMSISDN, void(AsyncCallHandler *call_handler, int timeout));
Darin Petkov975b5e72011-08-30 11:48:08 -070026
Eric Shienbrood5de44ab2011-12-05 10:46:27 -050027 MOCK_METHOD4(EnablePIN, void(const std::string &pin, bool enabled,
28 AsyncCallHandler *call_handler, int timeout));
29 MOCK_METHOD3(SendPIN, void(const std::string &pin,
30 AsyncCallHandler *call_handler, int timeout));
31 MOCK_METHOD4(SendPUK, void(const std::string &puk, const std::string &pin,
32 AsyncCallHandler *call_handler, int timeout));
33 MOCK_METHOD4(ChangePIN, void(const std::string &old_pin,
34 const std::string &new_pin,
35 AsyncCallHandler *call_handler, int timeout));
Darin Petkove42e1012011-08-31 12:35:04 -070036
Darin Petkov975b5e72011-08-30 11:48:08 -070037 private:
38 DISALLOW_COPY_AND_ASSIGN(MockModemGSMCardProxy);
39};
40
41} // namespace shill
42
43#endif // SHILL_MOCK_MODEM_GSM_CARD_PROXY_H_