Barretenberg
The ZK-SNARK library at the core of Aztec
Loading...
Searching...
No Matches
mock_addressing.hpp
Go to the documentation of this file.
1
#pragma once
2
3
#include <gmock/gmock.h>
4
5
#include <cstddef>
6
#include <memory>
7
#include <span>
8
#include <vector>
9
10
#include "
barretenberg/vm2/common/memory_types.hpp
"
11
#include "
barretenberg/vm2/simulation/addressing.hpp
"
12
#include "
barretenberg/vm2/simulation/lib/serialization.hpp
"
13
#include "
barretenberg/vm2/simulation/memory.hpp
"
14
15
namespace
bb::avm2::simulation
{
16
17
class
MockAddressing
:
public
AddressingInterface
{
18
public
:
19
// https://google.github.io/googletest/gmock_cook_book.html#making-the-compilation-faster
20
MockAddressing
();
21
~MockAddressing
()
override
;
22
23
MOCK_METHOD
(
std::vector<Operand>
,
resolve
, (
const
Instruction
&,
MemoryInterface
&
memory
), (
override
));
24
};
25
26
}
// namespace bb::avm2::simulation
bb::avm2::memory
Definition
memory.hpp:34
bb::avm2::simulation::AddressingInterface
Definition
addressing.hpp:18
bb::avm2::simulation::AddressingInterface::resolve
virtual std::vector< Operand > resolve(const Instruction &instruction, MemoryInterface &memory)=0
bb::avm2::simulation::MemoryInterface
Definition
memory.hpp:14
bb::avm2::simulation::MockAddressing
Definition
mock_addressing.hpp:17
bb::avm2::simulation::MockAddressing::MockAddressing
MockAddressing()
bb::avm2::simulation::MockAddressing::MOCK_METHOD
MOCK_METHOD(std::vector< Operand >, resolve,(const Instruction &, MemoryInterface &memory),(override))
bb::avm2::simulation::MockAddressing::~MockAddressing
~MockAddressing() override
memory_types.hpp
bb::avm2::simulation
Definition
address_derivation.cpp:8
std::get
constexpr decltype(auto) get(::tuplet::tuple< T... > &&t) noexcept
Definition
tuple.hpp:13
serialization.hpp
addressing.hpp
memory.hpp
bb::avm2::simulation::Instruction
Definition
serialization.hpp:30
src
barretenberg
vm2
simulation
testing
mock_addressing.hpp
Generated by
1.9.8