mirror of https://github.com/status-im/evmc.git
24 lines
636 B
C++
24 lines
636 B
C++
// EVMC: Ethereum Client-VM Connector API
|
|
// Copyright 2018-2019 The EVMC Authors.
|
|
// Licensed under the Apache License, Version 2.0.
|
|
#pragma once
|
|
|
|
#include <evmc/evmc.hpp>
|
|
#include <gtest/gtest.h>
|
|
|
|
class evmc_vm_test : public ::testing::Test
|
|
{
|
|
public:
|
|
static void init_vm(evmc_vm* owned_vm) noexcept;
|
|
|
|
protected:
|
|
/// The raw pointer to the loaded VM instance.
|
|
/// The C API is used to allow more sophisticated unit tests.
|
|
static evmc_vm* vm;
|
|
|
|
/// The C++ RAII wrapper of the loaded VM instance.
|
|
static evmc::VM owned_vm;
|
|
|
|
void SetUp() override { ASSERT_TRUE(vm != nullptr) << "VM instance not loaded"; }
|
|
};
|