Jay Srinivasan | 6f6ea00 | 2012-12-14 11:26:28 -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 CHROMEOS_PLATFORM_UPDATE_ENGINE_MOCK_PAYLOAD_STATE_H__ |
| 6 | #define CHROMEOS_PLATFORM_UPDATE_ENGINE_MOCK_PAYLOAD_STATE_H__ |
| 7 | |
| 8 | #include "gmock/gmock.h" |
| 9 | #include "update_engine/payload_state.h" |
| 10 | |
| 11 | namespace chromeos_update_engine { |
| 12 | |
| 13 | class MockPayloadState: public PayloadState { |
| 14 | public: |
| 15 | MOCK_METHOD1(UpdateFailed, void(ActionExitCode error)); |
| 16 | }; |
| 17 | |
| 18 | } // namespace chromeos_update_engine |
| 19 | |
| 20 | #endif // CHROMEOS_PLATFORM_UPDATE_ENGINE_MOCK_PAYLOAD_STATE_H__ |