Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
fxgc_unittest.cpp
Go to the documentation of this file.
1// Copyright 2020 The PDFium Authors
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5#include "testing/fxgc_unittest.h"
6
7#include "fxjs/gc/heap.h"
8#include "testing/gtest/include/gtest/gtest.h"
9#include "testing/v8_test_environment.h"
10#include "v8/include/libplatform/libplatform.h"
11
12FXGCUnitTest::FXGCUnitTest() = default;
13
14FXGCUnitTest::~FXGCUnitTest() = default;
15
17 ::testing::Test::SetUp();
20 heap_ = FXGC_CreateHeap();
21 ASSERT_TRUE(heap_);
22}
23
26 heap_.reset();
28 ::testing::Test::TearDown();
29}
30
32 FXGC_ForceGarbageCollection(heap_.get());
33 Pump();
34}
35
void SetUp() override
void ForceGCAndPump()
void TearDown() override
~FXGCUnitTest() override
v8::Platform * platform() const
v8::Isolate * isolate() const
static void PumpPlatformMessageLoop(v8::Isolate *pIsolate)
static V8TestEnvironment * GetInstance()
void FXGC_Release()
Definition heap.cpp:59
void FXGC_Initialize(v8::Platform *platform, v8::Isolate *isolate)
Definition heap.cpp:51