mukesh agrawal | 186af05 | 2012-01-11 15:07:34 -0800 | [diff] [blame] | 1 | // 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_CALLBACK_ |
| 6 | #define SHILL_MOCK_CALLBACK_ |
| 7 | |
| 8 | #include <base/basictypes.h> |
| 9 | #include <base/callback_old.h> |
| 10 | #include <gmock/gmock.h> |
| 11 | |
| 12 | namespace shill { |
| 13 | |
| 14 | class EmptyClass {}; |
| 15 | |
| 16 | class MockCallback |
| 17 | : public CallbackWithReturnValueImpl< |
| 18 | EmptyClass, bool (EmptyClass::*)(), bool> { |
| 19 | public: |
| 20 | MockCallback(); |
| 21 | virtual ~MockCallback(); |
| 22 | |
| 23 | MOCK_METHOD0(Run, bool()); |
| 24 | |
| 25 | private: |
| 26 | DISALLOW_COPY_AND_ASSIGN(MockCallback); |
| 27 | }; |
| 28 | |
| 29 | } // namespace shill |
| 30 | |
| 31 | #endif // SHILL_MOCK_CALLBACK_ |