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
23 (const AztecAddress& address,
24 const AztecAddress& msg_sender,
25 const FF& transaction_fee,
26 ContextInterface& parent_context,
27 MemoryAddress cd_offset_address,
28 uint32_t cd_size,
29 bool is_static,
30 const Gas& gas_limit,
31 TransactionPhase phase),
32 (override));
33
36 (const AztecAddress& address,
37 const AztecAddress& msg_sender,
38 const FF& transaction_fee,
40 const FF& calldata_hash,
41 bool is_static,
42 const Gas& gas_limit,
43 const Gas& gas_used,
44 TransactionPhase phase),
45 (override));
46
47 MOCK_METHOD(uint32_t, get_next_context_id, (), (const, override));
48};
49
50} // namespace bb::avm2::simulation
virtual std::unique_ptr< ContextInterface > make_nested_context(const AztecAddress &address, const AztecAddress &msg_sender, const FF &transaction_fee, ContextInterface &parent_context, MemoryAddress cd_offset_address, uint32_t cd_size, bool is_static, const Gas &gas_limit, TransactionPhase phase)=0
virtual uint32_t get_next_context_id() const =0
virtual std::unique_ptr< ContextInterface > make_enqueued_context(const AztecAddress &address, const AztecAddress &msg_sender, const FF &transaction_fee, std::span< const FF > calldata, const FF &calldata_hash, bool is_static, const Gas &gas_limit, const Gas &gas_used, TransactionPhase phase)=0
MOCK_METHOD(std::unique_ptr< ContextInterface >, make_enqueued_context,(const AztecAddress &address, const AztecAddress &msg_sender, const FF &transaction_fee, std::span< const FF > calldata, const FF &calldata_hash, bool is_static, const Gas &gas_limit, const Gas &gas_used, TransactionPhase phase),(override))
MOCK_METHOD(uint32_t, get_next_context_id,(),(const, override))
MOCK_METHOD(std::unique_ptr< ContextInterface >, make_nested_context,(const AztecAddress &address, const AztecAddress &msg_sender, const FF &transaction_fee, ContextInterface &parent_context, MemoryAddress cd_offset_address, uint32_t cd_size, bool is_static, const Gas &gas_limit, 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