| // Copyright 2016 The Weave Authors. All rights reserved. | |
| // Use of this source code is governed by a BSD-style license that can be | |
| // found in the LICENSE file. | |
| #ifndef LIBWEAVE_SRC_MOCK_ACCESS_REVOCATION_MANAGER_H_ | |
| #define LIBWEAVE_SRC_MOCK_ACCESS_REVOCATION_MANAGER_H_ | |
| #include <gmock/gmock.h> | |
| #include "src/access_revocation_manager.h" | |
| namespace weave { | |
| namespace test { | |
| class MockAccessRevocationManager : public AccessRevocationManager { | |
| public: | |
| MOCK_METHOD1(AddEntryAddedCallback, void(const base::Closure&)); | |
| MOCK_METHOD2(Block, void(const Entry&, const DoneCallback&)); | |
| MOCK_CONST_METHOD3(IsBlocked, | |
| bool(const std::vector<uint8_t>&, | |
| const std::vector<uint8_t>&, | |
| base::Time)); | |
| MOCK_CONST_METHOD0(GetEntries, std::vector<Entry>()); | |
| MOCK_CONST_METHOD0(GetSize, size_t()); | |
| MOCK_CONST_METHOD0(GetCapacity, size_t()); | |
| }; | |
| } // namespace test | |
| } // namespace weave | |
| #endif // LIBWEAVE_SRC_MOCK_ACCESS_REVOCATION_MANAGER_H_ |