Darin Petkov | f42cc1c | 2010-09-01 09:03:02 -0700 | [diff] [blame] | 1 | // Copyright (c) 2010 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 | |
Gilad Arnold | cf175a0 | 2014-07-10 16:48:47 -0700 | [diff] [blame] | 5 | #ifndef UPDATE_ENGINE_ACTION_MOCK_H_ |
| 6 | #define UPDATE_ENGINE_ACTION_MOCK_H_ |
Darin Petkov | f42cc1c | 2010-09-01 09:03:02 -0700 | [diff] [blame] | 7 | |
Alex Vakulenko | d2779df | 2014-06-16 13:19:00 -0700 | [diff] [blame] | 8 | #include <string> |
| 9 | |
Darin Petkov | f42cc1c | 2010-09-01 09:03:02 -0700 | [diff] [blame] | 10 | #include <gmock/gmock.h> |
| 11 | |
| 12 | #include "update_engine/action.h" |
| 13 | |
| 14 | namespace chromeos_update_engine { |
| 15 | |
| 16 | class ActionMock; |
| 17 | |
| 18 | template<> |
| 19 | class ActionTraits<ActionMock> { |
| 20 | public: |
| 21 | typedef NoneType OutputObjectType; |
| 22 | typedef NoneType InputObjectType; |
| 23 | }; |
| 24 | |
| 25 | class ActionMock : public Action<ActionMock> { |
| 26 | public: |
| 27 | MOCK_METHOD0(PerformAction, void()); |
| 28 | MOCK_CONST_METHOD0(Type, std::string()); |
| 29 | }; |
| 30 | |
| 31 | } // namespace chromeos_update_engine |
| 32 | |
Gilad Arnold | cf175a0 | 2014-07-10 16:48:47 -0700 | [diff] [blame] | 33 | #endif // UPDATE_ENGINE_ACTION_MOCK_H_ |