blob: 3b7fee34c8b32067abb28d6511c984451e4f2b6f [file] [log] [blame]
Jason Glasgowef965562012-04-10 16:12:35 -04001// 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
Ben Chanc54afe52014-11-05 10:28:08 -08005#ifndef SHILL_CELLULAR_MOCK_MM1_SIM_PROXY_H_
6#define SHILL_CELLULAR_MOCK_MM1_SIM_PROXY_H_
Jason Glasgowef965562012-04-10 16:12:35 -04007
8#include <string>
9
Ben Chancc67c522014-09-03 07:19:18 -070010#include <base/macros.h>
Jason Glasgowef965562012-04-10 16:12:35 -040011#include <gmock/gmock.h>
12
Ben Chanc54afe52014-11-05 10:28:08 -080013#include "shill/cellular/mm1_sim_proxy_interface.h"
Jason Glasgowef965562012-04-10 16:12:35 -040014
15namespace shill {
16namespace mm1 {
17
18class MockSimProxy : public SimProxyInterface {
19 public:
20 MockSimProxy();
Ben Chan5ea763b2014-08-13 11:07:54 -070021 ~MockSimProxy() override;
Jason Glasgowef965562012-04-10 16:12:35 -040022
Paul Stewart2f6c7892015-06-16 13:13:10 -070023 MOCK_METHOD4(SendPin, void(const std::string& pin,
24 Error* error,
25 const ResultCallback& callback,
Jason Glasgowef965562012-04-10 16:12:35 -040026 int timeout));
Paul Stewart2f6c7892015-06-16 13:13:10 -070027 MOCK_METHOD5(SendPuk, void(const std::string& puk,
28 const std::string& pin,
29 Error* error,
30 const ResultCallback& callback,
Jason Glasgowef965562012-04-10 16:12:35 -040031 int timeout));
Paul Stewart2f6c7892015-06-16 13:13:10 -070032 MOCK_METHOD5(EnablePin, void(const std::string& pin,
Jason Glasgowef965562012-04-10 16:12:35 -040033 const bool enabled,
Paul Stewart2f6c7892015-06-16 13:13:10 -070034 Error* error,
35 const ResultCallback& callback,
Jason Glasgowef965562012-04-10 16:12:35 -040036 int timeout));
Paul Stewart2f6c7892015-06-16 13:13:10 -070037 MOCK_METHOD5(ChangePin, void(const std::string& old_pin,
38 const std::string& new_pin,
39 Error* error,
40 const ResultCallback& callback,
Jason Glasgowef965562012-04-10 16:12:35 -040041 int timeout));
42
Alex Vakulenko8a532292014-06-16 17:18:44 -070043 private:
Jason Glasgowef965562012-04-10 16:12:35 -040044 DISALLOW_COPY_AND_ASSIGN(MockSimProxy);
45};
46
47} // namespace mm1
48} // namespace shill
49
Ben Chanc54afe52014-11-05 10:28:08 -080050#endif // SHILL_CELLULAR_MOCK_MM1_SIM_PROXY_H_