Barretenberg
The ZK-SNARK library at the core of Aztec
Loading...
Searching...
No Matches
mock_cd_hasher.hpp
Go to the documentation of this file.
1
#pragma once
2
3
#include <gmock/gmock.h>
4
5
#include "
barretenberg/vm2/simulation/calldata_hashing.hpp
"
6
7
namespace
bb::avm2::simulation
{
8
9
class
MockCalldataHasher
:
public
CalldataHashingInterface
{
10
public
:
11
MockCalldataHasher
();
12
~MockCalldataHasher
()
override
;
13
14
MOCK_METHOD
(
FF
,
compute_calldata_hash
, (
const
std::span<const FF>
calldata
), (
override
));
15
};
16
}
// namespace bb::avm2::simulation
bb::avm2::calldata
Definition
calldata.hpp:33
bb::avm2::simulation::CalldataHashingInterface
Definition
calldata_hashing.hpp:12
bb::avm2::simulation::CalldataHashingInterface::compute_calldata_hash
virtual FF compute_calldata_hash(std::span< const FF > calldata)=0
bb::avm2::simulation::MockCalldataHasher
Definition
mock_cd_hasher.hpp:9
bb::avm2::simulation::MockCalldataHasher::MOCK_METHOD
MOCK_METHOD(FF, compute_calldata_hash,(const std::span< const FF > calldata),(override))
bb::avm2::simulation::MockCalldataHasher::MockCalldataHasher
MockCalldataHasher()
bb::avm2::simulation::MockCalldataHasher::~MockCalldataHasher
~MockCalldataHasher() override
bb::avm2::simulation
Definition
address_derivation.cpp:8
bb::avm2::FF
AvmFlavorSettings::FF FF
Definition
field.hpp:10
std::get
constexpr decltype(auto) get(::tuplet::tuple< T... > &&t) noexcept
Definition
tuple.hpp:13
calldata_hashing.hpp
src
barretenberg
vm2
simulation
testing
mock_cd_hasher.hpp
Generated by
1.9.8