Paul Stewart | ced3ad7 | 2013-04-03 13:39:25 -0700 | [diff] [blame] | 1 | // Copyright (c) 2013 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_EAP_LISTENER_H_ |
| 6 | #define SHILL_MOCK_EAP_LISTENER_H_ |
| 7 | |
| 8 | #include "shill/eap_listener.h" |
| 9 | |
| 10 | #include <gmock/gmock.h> |
| 11 | |
| 12 | namespace shill { |
| 13 | |
| 14 | class MockEapListener : public EapListener { |
| 15 | public: |
| 16 | MockEapListener(); |
| 17 | virtual ~MockEapListener(); |
| 18 | |
| 19 | MOCK_METHOD0(Start, bool()); |
| 20 | MOCK_METHOD0(Stop, void()); |
| 21 | MOCK_METHOD1(set_request_received_callback, void( |
| 22 | const EapListener::EapRequestReceivedCallback &callback)); |
| 23 | |
| 24 | private: |
| 25 | DISALLOW_COPY_AND_ASSIGN(MockEapListener); |
| 26 | }; |
| 27 | |
| 28 | } // namespace shill |
| 29 | |
| 30 | #endif // SHILL_MOCK_EAP_LISTENER_H_ |