Barretenberg
The ZK-SNARK library at the core of Aztec
Loading...
Searching...
No Matches
mock_gas_tracker.hpp
Go to the documentation of this file.
1#pragma once
2
3#include <array>
4#include <gmock/gmock.h>
5
7
8namespace bb::avm2::simulation {
9
11 public:
13 ~MockGasTracker() override;
14
15 MOCK_METHOD(void, consume_gas, (const Gas& dynamic_gas_factor), (override));
16 MOCK_METHOD(Gas, compute_gas_limit_for_call, (const Gas& allocated_gas), (override));
17};
18
19} // namespace bb::avm2::simulation
virtual void consume_gas(const Gas &dynamic_gas_factor={ 0, 0 })=0
virtual Gas compute_gas_limit_for_call(const Gas &allocated_gas)=0
MOCK_METHOD(Gas, compute_gas_limit_for_call,(const Gas &allocated_gas),(override))
MOCK_METHOD(void, consume_gas,(const Gas &dynamic_gas_factor),(override))