blob: d57f226dd57aee0f7b968c7c647eb85662fea535 [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));
Darin Petkovc63dcf02012-05-24 11:51:43 +020038 MOCK_METHOD2(DisconnectFrom, void(const ServiceRefPtr &service,
Darin Petkov9893d9c2012-05-17 15:27:31 -070039 Error *error));
Darin Petkovc63dcf02012-05-24 11:51:43 +020040 MOCK_METHOD1(OnServiceStopped, void(const WiMaxServiceRefPtr &service));
Darin Petkovb96a4512012-06-04 11:02:49 +020041 MOCK_METHOD0(OnDeviceVanished, void());
Darin Petkovd1cd7972012-05-22 15:26:15 +020042
Ben Chanc07362b2012-05-12 10:54:11 -070043 private:
44 DISALLOW_COPY_AND_ASSIGN(MockWiMax);
45};
46
47} // namespace shill
48
49#endif // SHILL_MOCK_WIMAX_H_