mirror of
https://github.com/nodejs/node.git
synced 2024-11-30 23:43:09 +01:00
c64e130913
This commit add SetUpTestCase and TearDownTestCase functions that will be called once per test case. Currently we only have SetUp/TearDown which are called for each test. This commit moves the initialization and configuration of Node and V8 to be done on a per test case basis, but gives each test a new Isolate. PR-URL: https://github.com/nodejs/node/pull/18558 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
8 lines
335 B
C++
8 lines
335 B
C++
#include "node_test_fixture.h"
|
|
|
|
uv_loop_t NodeTestFixture::current_loop;
|
|
std::unique_ptr<node::NodePlatform> NodeTestFixture::platform;
|
|
std::unique_ptr<v8::ArrayBuffer::Allocator> NodeTestFixture::allocator;
|
|
std::unique_ptr<v8::TracingController> NodeTestFixture::tracing_controller;
|
|
v8::Isolate::CreateParams NodeTestFixture::params;
|