Files
rk35xx-android14/external/pdfium/testing/fuzzers/xfa_process_state.h
T
hmz007 36ed224bac Rockchip Anroid14_SDK 20240628-rkr5 (2556df1a)
Signed-off-by: hmz007 <hmz007@gmail.com>
Change-Id: Ib87fdbe7a0be7dc961af3500fe9ea4589a127f9f
2024-10-29 18:12:02 +08:00

34 lines
710 B
C++

// Copyright 2020 The PDFium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef TESTING_FUZZERS_XFA_PROCESS_STATE_H_
#define TESTING_FUZZERS_XFA_PROCESS_STATE_H_
#if !defined(PDF_ENABLE_XFA)
#error "XFA only"
#endif
#include "fxjs/gc/heap.h"
namespace v8 {
class Isolate;
class Platform;
} // namespace v8
class XFAProcessState {
public:
XFAProcessState(v8::Platform* platform, v8::Isolate* isolate);
~XFAProcessState();
cppgc::Heap* GetHeap() const;
void ForceGCAndPump();
private:
v8::Platform* const platform_;
v8::Isolate* const isolate_;
FXGCScopedHeap heap_;
};
#endif // TESTING_FUZZERS_XFA_PROCESS_STATE_H_