blob: fa7502db3fc1f557f156597f12e8a10fb78e7b31 [file] [log] [blame]
mukesh agrawal241727d2014-08-08 13:55:11 -07001// Copyright (c) 2014 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_MAC80211_MONITOR_H_
6#define SHILL_MOCK_MAC80211_MONITOR_H_
7
8#include <string>
9
10#include <gmock/gmock.h>
11
12#include "shill/mac80211_monitor.h"
13
14namespace shill {
15
16class MockMac80211Monitor : public Mac80211Monitor {
17 public:
18 MockMac80211Monitor(EventDispatcher *dispatcher,
19 const std::string &link_name,
20 size_t queue_length_limit,
21 const base::Closure &on_repair_callback,
22 Metrics *metrics);
Ben Chan5ea763b2014-08-13 11:07:54 -070023 ~MockMac80211Monitor() override;
mukesh agrawal241727d2014-08-08 13:55:11 -070024
25 MOCK_METHOD1(Start, void(const std::string &phy_name));
26 MOCK_METHOD0(Stop, void());
27 MOCK_METHOD1(UpdateConnectedState, void(bool new_state));
28
29 private:
30 DISALLOW_COPY_AND_ASSIGN(MockMac80211Monitor);
31};
32
33} // namespace shill
34
35#endif // SHILL_MOCK_MAC80211_MONITOR_H_