blob: b578617fee1f98947beb6a15aed954ecc6ebce40 [file] [log] [blame]
Ben Chanc07362b2012-05-12 10:54:11 -07001// 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
5#ifndef SHILL_MOCK_WIMAX_H_
6#define SHILL_MOCK_WIMAX_H_
7
8#include <string>
9
10#include <gmock/gmock.h>
11
12#include "shill/wimax.h"
13
14namespace shill {
15
16class ControlInterface;
17class Error;
18class EventDispatcher;
19
20class MockWiMax : public WiMax {
21 public:
22 MockWiMax(ControlInterface *control,
23 EventDispatcher *dispatcher,
24 Metrics *metrics,
25 Manager *manager,
26 const std::string &link_name,
Ben Chan4e64d2d2012-05-16 00:02:25 -070027 const std::string &address,
Darin Petkovb72b62e2012-05-15 16:55:36 +020028 int interface_index,
29 const RpcIdentifier &path);
Ben Chanc07362b2012-05-12 10:54:11 -070030 virtual ~MockWiMax();
31
32 MOCK_METHOD2(Start, void(Error *error,
33 const EnabledStateChangedCallback &callback));
34 MOCK_METHOD2(Stop, void(Error *error,
35 const EnabledStateChangedCallback &callback));
Darin Petkov9893d9c2012-05-17 15:27:31 -070036 MOCK_METHOD2(ConnectTo, void(const WiMaxServiceRefPtr &service,
37 Error *error));
38 MOCK_METHOD2(DisconnectFrom, void(const WiMaxServiceRefPtr &service,
39 Error *error));
Ben Chanc07362b2012-05-12 10:54:11 -070040
41 private:
42 DISALLOW_COPY_AND_ASSIGN(MockWiMax);
43};
44
45} // namespace shill
46
47#endif // SHILL_MOCK_WIMAX_H_