Jay Srinivasan | 08fce04 | 2012-06-07 16:31:01 -0700 | [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_SYSTEM_STATE_H__ |
| 6 | #define CHROMEOS_PLATFORM_UPDATE_ENGINE_MOCK_SYSTEM_STATE_H__ |
| 7 | |
| 8 | #include <gmock/gmock.h> |
| 9 | |
| 10 | #include "update_engine/utils.h" |
| 11 | |
| 12 | namespace chromeos_update_engine { |
| 13 | |
| 14 | // Mock the SystemStateInterface so that we could lie that |
| 15 | // OOBE is completed even when there's no such marker file, etc. |
| 16 | class MockSystemState : public SystemState { |
| 17 | public: |
| 18 | MOCK_METHOD0(IsOOBEComplete, bool()); |
| 19 | }; |
| 20 | |
| 21 | } // namespeace chromeos_update_engine |
| 22 | |
| 23 | #endif // CHROMEOS_PLATFORM_UPDATE_ENGINE_MOCK_SYSTEM_STATE_H__ |