5#ifndef TESTING_V8_TEST_ENVIRONMENT_H_
6#define TESTING_V8_TEST_ENVIRONMENT_H_
9#error "V8 must be enabled"
14#include "fxjs/cfx_v8.h"
15#include "fxjs/cfx_v8_array_buffer_allocator.h"
16#include "testing/gtest/include/gtest/gtest.h"
40 v8::Platform*
platform()
const {
return platform_.get(); }
41 v8::Isolate*
isolate()
const {
return isolate_.get(); }
44 const char*
const exe_path_;
45 std::unique_ptr<v8::StartupData> startup_data_;
46 std::unique_ptr<v8::Platform> platform_;
47 std::unique_ptr<CFX_V8ArrayBufferAllocator> array_buffer_allocator_;
cppgc::Heap * heap() const
GCedTreeNodeMixinUnitTest()=default
void AddClutterToBack(ObservableGCedTreeNodeMixinForTest *parent)
~GCedTreeNodeMixinUnitTest() override=default
ObservableGCedTreeNodeMixinForTest * root() const
ObservableGCedTreeNodeMixinForTest * CreateNode()
void AddClutterToFront(ObservableGCedTreeNodeMixinForTest *parent)
v8::Platform * platform() const
v8::Isolate * isolate() const
V8TestEnvironment(const char *exe_path)
~V8TestEnvironment() override
static void PumpPlatformMessageLoop(v8::Isolate *pIsolate)
static V8TestEnvironment * GetInstance()
TEST_F(GCedTreeNodeMixinUnitTest, OneRefence)
#define CONSTRUCT_VIA_MAKE_GARBAGE_COLLECTED