Barretenberg
The ZK-SNARK library at the core of Aztec
Loading...
Searching...
No Matches
mock_context_provider.hpp
Go to the documentation of this file.
1#pragma once
2
3#include <cstdint>
4#include <memory>
5
6#include <gmock/gmock.h>
7
12
13namespace bb::avm2::simulation {
14
16 public:
17 // https://google.github.io/googletest/gmock_cook_book.html#making-the-compilation-faster
20
24 AztecAddress msg_sender,
25 FF transaction_fee,
26 ContextInterface& parent_context,
27 MemoryAddress cd_offset_addr,
28 MemoryAddress cd_size_addr,
29 bool is_static,
30 Gas gas_limit,
31 TransactionPhase phase),
32 (override));
33
37 AztecAddress msg_sender,
38 FF transaction_fee,
40 bool is_static,
41 Gas gas_limit,
42 Gas gas_used,
43 TransactionPhase phase),
44 (override));
45
46 MOCK_METHOD(uint32_t, get_next_context_id, (), (const, override));
47};
48
49} // namespace bb::avm2::simulation
virtual uint32_t get_next_context_id() const =0
virtual std::unique_ptr< ContextInterface > make_nested_context(AztecAddress address, AztecAddress msg_sender, FF transaction_fee, ContextInterface &parent_context, MemoryAddress cd_offset_address, uint32_t cd_size, bool is_static, Gas gas_limit, TransactionPhase phase)=0
virtual std::unique_ptr< ContextInterface > make_enqueued_context(AztecAddress address, AztecAddress msg_sender, FF transaction_fee, std::span< const FF > calldata, bool is_static, Gas gas_limit, Gas gas_used, TransactionPhase phase)=0
MOCK_METHOD(uint32_t, get_next_context_id,(),(const, override))
MOCK_METHOD(std::unique_ptr< ContextInterface >, make_nested_context,(AztecAddress address, AztecAddress msg_sender, FF transaction_fee, ContextInterface &parent_context, MemoryAddress cd_offset_addr, MemoryAddress cd_size_addr, bool is_static, Gas gas_limit, TransactionPhase phase),(override))
MOCK_METHOD(std::unique_ptr< ContextInterface >, make_enqueued_context,(AztecAddress address, AztecAddress msg_sender, FF transaction_fee, std::span< const FF > calldata, bool is_static, Gas gas_limit, Gas gas_used, TransactionPhase phase),(override))
uint32_t MemoryAddress
AvmFlavorSettings::FF FF
Definition field.hpp:10
constexpr decltype(auto) get(::tuplet::tuple< T... > &&t) noexcept
Definition tuple.hpp:13