blob: 70d99e40c1f482f6174dea2cd6bb680cbe2a8d6c [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 Petkov63138a92012-02-06 14:09:15 +010036 MOCK_METHOD0(EnabledFacilityLocks, uint32());
Darin Petkove42e1012011-08-31 12:35:04 -070037
Darin Petkov975b5e72011-08-30 11:48:08 -070038 private:
39 DISALLOW_COPY_AND_ASSIGN(MockModemGSMCardProxy);
40};
41
42} // namespace shill
43
44#endif // SHILL_MOCK_MODEM_GSM_CARD_PROXY_H_