blob: fa7502db3fc1f557f156597f12e8a10fb78e7b31 [file] [log] [blame]
// Copyright (c) 2014 The Chromium OS Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef SHILL_MOCK_MAC80211_MONITOR_H_
#define SHILL_MOCK_MAC80211_MONITOR_H_
#include <string>
#include <gmock/gmock.h>
#include "shill/mac80211_monitor.h"
namespace shill {
class MockMac80211Monitor : public Mac80211Monitor {
public:
MockMac80211Monitor(EventDispatcher *dispatcher,
const std::string &link_name,
size_t queue_length_limit,
const base::Closure &on_repair_callback,
Metrics *metrics);
~MockMac80211Monitor() override;
MOCK_METHOD1(Start, void(const std::string &phy_name));
MOCK_METHOD0(Stop, void());
MOCK_METHOD1(UpdateConnectedState, void(bool new_state));
private:
DISALLOW_COPY_AND_ASSIGN(MockMac80211Monitor);
};
} // namespace shill
#endif // SHILL_MOCK_MAC80211_MONITOR_H_