Barretenberg
The ZK-SNARK library at the core of Aztec
Loading...
Searching...
No Matches
mock_sha256.hpp
Go to the documentation of this file.
1
#pragma once
2
3
#include <gmock/gmock.h>
4
5
#include "
barretenberg/vm2/common/memory_types.hpp
"
6
#include "
barretenberg/vm2/simulation/memory.hpp
"
7
#include "
barretenberg/vm2/simulation/sha256.hpp
"
8
9
namespace
bb::avm2::simulation
{
10
11
class
MockSha256
:
public
Sha256Interface
{
12
public
:
13
MockSha256
();
14
~MockSha256
()
override
;
15
16
MOCK_METHOD
(
void
,
17
compression
,
18
(
MemoryInterface
&,
MemoryAddress
state_addr,
MemoryAddress
input_addr,
MemoryAddress
output_addr),
19
(
override
));
20
};
21
22
}
// namespace bb::avm2::simulation
bb::avm2::simulation::MemoryInterface
Definition
memory.hpp:14
bb::avm2::simulation::MockSha256
Definition
mock_sha256.hpp:11
bb::avm2::simulation::MockSha256::~MockSha256
~MockSha256() override
bb::avm2::simulation::MockSha256::MOCK_METHOD
MOCK_METHOD(void, compression,(MemoryInterface &, MemoryAddress state_addr, MemoryAddress input_addr, MemoryAddress output_addr),(override))
bb::avm2::simulation::MockSha256::MockSha256
MockSha256()
bb::avm2::simulation::Sha256Interface
Definition
sha256.hpp:16
bb::avm2::simulation::Sha256Interface::compression
virtual void compression(MemoryInterface &, MemoryAddress state_addr, MemoryAddress input_addr, MemoryAddress output_addr)=0
memory_types.hpp
bb::avm2::simulation
Definition
address_derivation.cpp:8
bb::avm2::MemoryAddress
uint32_t MemoryAddress
Definition
memory_types.hpp:11
memory.hpp
sha256.hpp
src
barretenberg
vm2
simulation
testing
mock_sha256.hpp
Generated by
1.9.8