| // Copyright 2020 PDFium Authors. All rights reserved. |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| #include "testing/embedder_test_environment.h" |
| #include "core/fxcrt/fx_system.h" |
| #include "public/fpdfview.h" |
| #include "testing/v8_test_environment.h" |
| EmbedderTestEnvironment* g_environment = nullptr; |
| EmbedderTestEnvironment::EmbedderTestEnvironment() { |
| EmbedderTestEnvironment::~EmbedderTestEnvironment() { |
| EmbedderTestEnvironment* EmbedderTestEnvironment::GetInstance() { |
| void EmbedderTestEnvironment::SetUp() { |
| FPDF_LIBRARY_CONFIG config; |
| config.m_pUserFontPaths = nullptr; |
| config.m_v8EmbedderSlot = 0; |
| config.m_pPlatform = nullptr; |
| config.m_pIsolate = V8TestEnvironment::GetInstance()->isolate(); |
| config.m_pPlatform = V8TestEnvironment::GetInstance()->platform(); |
| config.m_pIsolate = nullptr; |
| config.m_pPlatform = nullptr; |
| FPDF_InitLibraryWithConfig(&config); |
| void EmbedderTestEnvironment::TearDown() { |