Tom Sepez | 2281853 | 2020-07-22 20:40:56 +0000 | [diff] [blame] | 1 | // Copyright 2020 PDFium Authors. All rights reserved. |
| 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/pdf_test_environment.h" |
| 6 | |
| 7 | #include "core/fxge/cfx_gemodule.h" |
| 8 | |
| 9 | PDFTestEnvironment::PDFTestEnvironment() = default; |
| 10 | |
| 11 | PDFTestEnvironment::~PDFTestEnvironment() = default; |
| 12 | |
| 13 | // testing::Environment: |
| 14 | void PDFTestEnvironment::SetUp() { |
Tom Anderson | d4fe5f7 | 2021-12-03 20:52:52 +0000 | [diff] [blame] | 15 | CFX_GEModule::Create(test_fonts_.font_paths()); |
Tom Sepez | 2281853 | 2020-07-22 20:40:56 +0000 | [diff] [blame] | 16 | } |
| 17 | |
| 18 | void PDFTestEnvironment::TearDown() { |
| 19 | CFX_GEModule::Destroy(); |
| 20 | } |