blob: 108d9751f2f7ad76c1ab10be1f08785eaf0a1540 [file] [log] [blame]
Peter Qiuc0beca52015-09-03 11:25:46 -07001//
2// Copyright (C) 2012 The Android Open Source Project
3//
4// Licensed under the Apache License, Version 2.0 (the "License");
5// you may not use this file except in compliance with the License.
6// You may obtain a copy of the License at
7//
8// http://www.apache.org/licenses/LICENSE-2.0
9//
10// Unless required by applicable law or agreed to in writing, software
11// distributed under the License is distributed on an "AS IS" BASIS,
12// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13// See the License for the specific language governing permissions and
14// limitations under the License.
15//
Jason Glasgowef965562012-04-10 16:12:35 -040016
Ben Chanc54afe52014-11-05 10:28:08 -080017#ifndef SHILL_CELLULAR_MOCK_MM1_MODEM_SIMPLE_PROXY_H_
18#define SHILL_CELLULAR_MOCK_MM1_MODEM_SIMPLE_PROXY_H_
Jason Glasgowef965562012-04-10 16:12:35 -040019
20#include <string>
21
Ben Chancc67c522014-09-03 07:19:18 -070022#include <base/macros.h>
Jason Glasgowef965562012-04-10 16:12:35 -040023#include <gmock/gmock.h>
24
Ben Chanc54afe52014-11-05 10:28:08 -080025#include "shill/cellular/mm1_modem_simple_proxy_interface.h"
Jason Glasgowef965562012-04-10 16:12:35 -040026
27namespace shill {
28namespace mm1 {
29
30class MockModemSimpleProxy : public ModemSimpleProxyInterface {
31 public:
32 MockModemSimpleProxy();
Ben Chan5ea763b2014-08-13 11:07:54 -070033 ~MockModemSimpleProxy() override;
Jason Glasgowef965562012-04-10 16:12:35 -040034
Peter Qiu05d87e32015-08-14 23:46:21 -070035 MOCK_METHOD4(Connect, void(const KeyValueStore& properties,
Paul Stewart2f6c7892015-06-16 13:13:10 -070036 Error* error,
Peter Qiu05d87e32015-08-14 23:46:21 -070037 const RpcIdentifierCallback& callback,
Jason Glasgowef965562012-04-10 16:12:35 -040038 int timeout));
Peter Qiu05d87e32015-08-14 23:46:21 -070039 MOCK_METHOD4(Disconnect, void(const std::string& bearer,
Paul Stewart2f6c7892015-06-16 13:13:10 -070040 Error* error,
41 const ResultCallback& callback,
Jason Glasgowef965562012-04-10 16:12:35 -040042 int timeout));
Paul Stewart2f6c7892015-06-16 13:13:10 -070043 MOCK_METHOD3(GetStatus, void(Error* error,
Peter Qiu05d87e32015-08-14 23:46:21 -070044 const KeyValueStoreCallback& callback,
Jason Glasgowef965562012-04-10 16:12:35 -040045 int timeout));
46 private:
47 DISALLOW_COPY_AND_ASSIGN(MockModemSimpleProxy);
48};
49
50} // namespace mm1
51} // namespace shill
52
Ben Chanc54afe52014-11-05 10:28:08 -080053#endif // SHILL_CELLULAR_MOCK_MM1_MODEM_SIMPLE_PROXY_H_