blob: 8ad52ea11e796744b8d77d57a5dfd68f04e58907 [file] [log] [blame]
Darin Petkov096b3472012-05-15 10:26:22 +02001// 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
Darin Petkov9893d9c2012-05-17 15:27:31 -07005#ifndef SHILL_MOCK_WIMAX_DEVICE_PROXY_H_
6#define SHILL_MOCK_WIMAX_DEVICE_PROXY_H_
Darin Petkov096b3472012-05-15 10:26:22 +02007
8#include <base/basictypes.h>
9#include <gmock/gmock.h>
10
11#include "shill/wimax_device_proxy_interface.h"
12
13namespace shill {
14
15class MockWiMaxDeviceProxy : public WiMaxDeviceProxyInterface {
16 public:
17 MockWiMaxDeviceProxy();
18 virtual ~MockWiMaxDeviceProxy();
19
20 MOCK_METHOD3(Enable, void(Error *error,
21 const ResultCallback &callback,
22 int timeout));
23 MOCK_METHOD3(Disable, void(Error *error,
24 const ResultCallback &callback,
25 int timeout));
Darin Petkov9893d9c2012-05-17 15:27:31 -070026 MOCK_METHOD3(ScanNetworks, void(Error *error,
27 const ResultCallback &callback,
28 int timeout));
Darin Petkov25665aa2012-05-21 14:08:12 +020029 MOCK_METHOD5(Connect, void(const RpcIdentifier &network,
30 const KeyValueStore &parameters,
Ben Chan4e5c1312012-05-18 18:45:38 -070031 Error *error,
Darin Petkov096b3472012-05-15 10:26:22 +020032 const ResultCallback &callback,
33 int timeout));
34 MOCK_METHOD3(Disconnect, void(Error *error,
35 const ResultCallback &callback,
36 int timeout));
Darin Petkov9893d9c2012-05-17 15:27:31 -070037 MOCK_METHOD1(set_networks_changed_callback,
38 void(const NetworksChangedCallback &callback));
Darin Petkov8ea0eaf2012-05-29 11:21:33 +020039 MOCK_METHOD1(set_status_changed_callback,
40 void(const StatusChangedCallback &callback));
Darin Petkov096b3472012-05-15 10:26:22 +020041 MOCK_METHOD1(Index, uint8(Error *error));
42 MOCK_METHOD1(Name, std::string(Error *error));
Darin Petkov59f2d692012-06-07 15:57:46 +020043 MOCK_METHOD1(Networks, RpcIdentifiers(Error *error));
Darin Petkov096b3472012-05-15 10:26:22 +020044
45 DISALLOW_COPY_AND_ASSIGN(MockWiMaxDeviceProxy);
46};
47
48} // namespace shill
49
Darin Petkov9893d9c2012-05-17 15:27:31 -070050#endif // SHILL_MOCK_WIMAX_DEVICE_PROXY_H_