Alex Vakulenko | 57123b2 | 2014-10-28 13:50:16 -0700 | [diff] [blame] | 1 | // Copyright 2014 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 BUFFET_STATES_MOCK_STATE_CHANGE_QUEUE_INTERFACE_H_ |
| 6 | #define BUFFET_STATES_MOCK_STATE_CHANGE_QUEUE_INTERFACE_H_ |
| 7 | |
| 8 | #include <vector> |
| 9 | |
| 10 | #include <gmock/gmock.h> |
| 11 | |
| 12 | #include "buffet/states/state_change_queue_interface.h" |
| 13 | |
| 14 | namespace buffet { |
| 15 | |
| 16 | class MockStateChangeQueueInterface : public StateChangeQueueInterface { |
| 17 | public: |
| 18 | MOCK_CONST_METHOD0(IsEmpty, bool()); |
| 19 | MOCK_METHOD1(NotifyPropertiesUpdated, bool(const StateChange&)); |
| 20 | MOCK_METHOD0(GetAndClearRecordedStateChanges, std::vector<StateChange>()); |
| 21 | }; |
| 22 | |
| 23 | } // namespace buffet |
| 24 | |
| 25 | #endif // BUFFET_STATES_MOCK_STATE_CHANGE_QUEUE_INTERFACE_H_ |