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
external_engine_embedder_test.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/external_engine_embedder_test.h"
6
7#include <memory>
8
9#include "fxjs/cfxjs_engine.h"
10#include "testing/v8_test_environment.h"
11#include "v8/include/v8-context.h"
12#include "v8/include/v8-isolate.h"
13#include "v8/include/v8-local-handle.h"
14
16
18
21
22 v8::Isolate::Scope isolate_scope(isolate());
23 v8::HandleScope handle_scope(isolate());
25 m_Engine = std::make_unique<CFXJS_Engine>(isolate());
26 m_Engine->InitializeEngine();
27}
28
30 m_Engine->ReleaseEngine();
31 m_Engine.reset();
33}
34
36 return m_Engine->GetV8Context();
37}
void SetUp() override
void TearDown() override
~ExternalEngineEmbedderTest() override
v8::Isolate * isolate() const