Barretenberg
The ZK-SNARK library at the core of Aztec
Loading...
Searching...
No Matches
mock_memory.hpp
Go to the documentation of this file.
1#pragma once
2
3#include <gmock/gmock.h>
4
7
8namespace bb::avm2::simulation {
9
11 public:
12 // https://google.github.io/googletest/gmock_cook_book.html#making-the-compilation-faster
14 ~MockMemory() override;
15
16 MOCK_METHOD(void, set, (MemoryAddress index, MemoryValue value), (override));
17 MOCK_METHOD(const MemoryValue&, get, (MemoryAddress index), (const, override));
18 MOCK_METHOD(uint32_t, get_space_id, (), (const, override));
19};
20
21} // namespace bb::avm2::simulation
virtual void set(MemoryAddress index, MemoryValue value)=0
virtual const MemoryValue & get(MemoryAddress index) const =0
virtual uint32_t get_space_id() const =0
MOCK_METHOD(void, set,(MemoryAddress index, MemoryValue value),(override))
MOCK_METHOD(uint32_t, get_space_id,(),(const, override))
MOCK_METHOD(const MemoryValue &, get,(MemoryAddress index),(const, override))
uint32_t MemoryAddress