mukesh agrawal | 241727d | 2014-08-08 13:55:11 -0700 | [diff] [blame] | 1 | // 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 | |
| 14 | namespace shill { |
| 15 | |
| 16 | class 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 Chan | 5ea763b | 2014-08-13 11:07:54 -0700 | [diff] [blame] | 23 | ~MockMac80211Monitor() override; |
mukesh agrawal | 241727d | 2014-08-08 13:55:11 -0700 | [diff] [blame] | 24 | |
| 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_ |