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