From 574d4408a5174bb410cf4ec3db24283671bcce79 Mon Sep 17 00:00:00 2001 From: Dan Sinclair Date: Mon, 28 Aug 2017 10:11:24 -0400 Subject: Add a global font loader in XFA tests This CL creates a global font loader for use in XFA tests. This is needed because the CFGAS_FontMangaer takes a linearly increasing amount of time to load fonts each time it's loaded. This can get excessively slow for test suites which run a lot of tests. Change-Id: Ie389844b56598ce414f4f761654fa4ed465955fd Reviewed-on: https://pdfium-review.googlesource.com/12090 Reviewed-by: Henrique Nakashima Reviewed-by: Ryan Harrison Commit-Queue: dsinclair --- fpdfsdk/fpdfview_unittest.cpp | 20 -------------------- 1 file changed, 20 deletions(-) delete mode 100644 fpdfsdk/fpdfview_unittest.cpp (limited to 'fpdfsdk') diff --git a/fpdfsdk/fpdfview_unittest.cpp b/fpdfsdk/fpdfview_unittest.cpp deleted file mode 100644 index 27680b3d4e..0000000000 --- a/fpdfsdk/fpdfview_unittest.cpp +++ /dev/null @@ -1,20 +0,0 @@ -// Copyright 2016 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 "public/fpdfview.h" - -#include "testing/gtest/include/gtest/gtest.h" -#include "testing/test_support.h" - -TEST(FPDFView, DoubleInit) { - FPDF_InitLibrary(); - FPDF_InitLibrary(); - FPDF_DestroyLibrary(); -} - -TEST(FPDFView, DoubleDestroy) { - FPDF_InitLibrary(); - FPDF_DestroyLibrary(); - FPDF_DestroyLibrary(); -} -- cgit v1.2.3